@yuku123/z-cognition-component 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist-lib/BaseInput-rxw05EpT.js +1096 -0
  2. package/dist-lib/ClockCircleOutlined-DqK04lTb.js +12 -0
  3. package/dist-lib/Collapse-D9XOithE.js +523 -0
  4. package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
  5. package/dist-lib/DeleteOutlined-DnGmqa7C.js +12 -0
  6. package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
  7. package/dist-lib/EllipsisOutlined-VzQrhleP.js +1109 -0
  8. package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
  9. package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CIFgRd6d.js} +4 -4
  10. package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
  11. package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-Be44-JWT.js} +1 -1
  12. package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
  13. package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
  14. package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
  15. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
  16. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
  17. package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
  18. package/dist-lib/Pagination-BuFXTevS.js +1112 -0
  19. package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
  20. package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
  21. package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
  22. package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
  23. package/dist-lib/Skeleton-CxFsInYI.js +671 -0
  24. package/dist-lib/Table-Civ838nE.js +20514 -0
  25. package/dist-lib/{Table-CDagah-g.js → Table-D1RvQXGM.js} +414 -414
  26. package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
  27. package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
  28. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
  29. package/dist-lib/accessAk-DlxcvD0O.js +64 -0
  30. package/dist-lib/{agents-CvgRLQw2.js → agents-CabJdV6W.js} +46 -46
  31. package/dist-lib/{ai-DYDhijtn.js → ai-DZ6fqUyK.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-CYSU7UlK.js} +13 -14
  33. package/dist-lib/ak-manage-MTp2UyyK.js +805 -0
  34. package/dist-lib/{approval-3IbhY8Lp.js → approval-F9OYS1Ov.js} +25 -26
  35. package/dist-lib/{approvals-Cd6CVzz4.js → approvals-DDEl02-L.js} +42 -43
  36. package/dist-lib/{assistant-cIXgilaE.js → assistant-CcC1rvys.js} +48 -49
  37. package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-fmy8IsJL.js} +5 -5
  38. package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-kuK5-mku.js} +1 -1
  39. package/dist-lib/{audit-CxuJ5unU.js → audit-C0GYByqU.js} +1 -1
  40. package/dist-lib/{bios-BplnCOF4.js → bios-_axkM_DR.js} +128 -130
  41. package/dist-lib/callSuper-CuPJalb0.js +7 -0
  42. package/dist-lib/callSuper-CwIeyYoc.js +7 -0
  43. package/dist-lib/category-BPLw60Ia.js +76 -0
  44. package/dist-lib/causal-CcWolsb5.js +789 -0
  45. package/dist-lib/{changelog-BoGqt_81.js → changelog-BQdmpq5H.js} +2 -2
  46. package/dist-lib/changelog-DC6nlUDh.js +103 -0
  47. package/dist-lib/chat-panel-CgpP4Xf5.js +1543 -0
  48. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
  49. package/dist-lib/code-space-CZ3CzVcA.js +1070 -0
  50. package/dist-lib/{colors-sdAcAcU3.js → colors-BsFEfaVs.js} +1 -1
  51. package/dist-lib/community-D9mD_Tq1.js +217 -0
  52. package/dist-lib/community-ESJc4qtl.js +70 -0
  53. package/dist-lib/community-material-page-Ct5uMwhv.js +747 -0
  54. package/dist-lib/connections-DrxmCfe3.js +1065 -0
  55. package/dist-lib/context-T27uno74.js +54 -0
  56. package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
  57. package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
  58. package/dist-lib/{detail-Cx5c4KJH.js → detail-DXOJf57e.js} +39 -40
  59. package/dist-lib/detail-kPAVlzm3.js +84 -0
  60. package/dist-lib/{detail-BaX7WiWV.js → detail-lGslEB8s.js} +5847 -7224
  61. package/dist-lib/development-aLXXcLcF.js +167 -0
  62. package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
  63. package/dist-lib/{downloads-C3Oz04OW.js → downloads-DFOEFvX6.js} +3 -4
  64. package/dist-lib/{edit-Cbn2eJaJ.js → edit-BbtVK23D.js} +200 -204
  65. package/dist-lib/{editor-mtaJBQXz.js → editor-DbLQFOUf.js} +25 -26
  66. package/dist-lib/editor-page-B_H0fRAI.js +1169 -0
  67. package/dist-lib/embed-BUaR8PAn.js +51816 -0
  68. package/dist-lib/embed.css +2 -2
  69. package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-8Tx-3UQh.js} +14 -15
  70. package/dist-lib/execution-Dz5dBEFl.js +159 -0
  71. package/dist-lib/focus-set-lt52maBX.js +38 -0
  72. package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
  73. package/dist-lib/graph-BllA9bmL.js +44 -0
  74. package/dist-lib/graph-DacHEbKr.js +640 -0
  75. package/dist-lib/index-4tbtbcAt.js +550 -0
  76. package/dist-lib/index-B6G8CZ1v.js +915 -0
  77. package/dist-lib/index-BDWjubAD.js +390 -0
  78. package/dist-lib/{index-BEjXaDfk.js → index-BI-rknta.js} +53 -54
  79. package/dist-lib/index-BLGPH51v.js +251 -0
  80. package/dist-lib/index-BMv3kGDG.js +236 -0
  81. package/dist-lib/{index-CHBNrCMy.js → index-BOB3j3H_.js} +29 -29
  82. package/dist-lib/index-BU2GXuww.js +413 -0
  83. package/dist-lib/index-BVgdmf6r.js +2487 -0
  84. package/dist-lib/index-BWmgE7bB.js +2075 -0
  85. package/dist-lib/{index-B57Fj7Y0.js → index-Be_iqVpx.js} +50 -52
  86. package/dist-lib/{index-y7jVGGI0.js → index-Bf8IQq4A.js} +21 -23
  87. package/dist-lib/{index-DsuUGhTA.js → index-Bi7O9pQv.js} +177 -179
  88. package/dist-lib/index-Bs4MevzC.js +16075 -0
  89. package/dist-lib/{index-DBlG9uXV.js → index-Bt9F-2Fl.js} +520 -597
  90. package/dist-lib/{index-Cj4DDWyj.js → index-BtW_nQBU.js} +10 -11
  91. package/dist-lib/{index-CyKWCYMK.js → index-BuGHtvxH.js} +81 -84
  92. package/dist-lib/{index-Bc-Vin3j.js → index-CDxeB8C4.js} +47 -49
  93. package/dist-lib/index-CNBwau86.js +1166 -0
  94. package/dist-lib/{index-9aQ4BzIK.js → index-CS6H40rM.js} +24 -25
  95. package/dist-lib/index-CSnvcFg-.js +543 -0
  96. package/dist-lib/{index-o65vKUwa.js → index-CSoMwNHq.js} +82 -83
  97. package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
  98. package/dist-lib/index-CdNxm2We.js +1987 -0
  99. package/dist-lib/{index-DMTPsTna.js → index-CjFA5T3K.js} +3 -4
  100. package/dist-lib/{index-Bm1sK-VN.js → index-D23tZfhi.js} +10 -10
  101. package/dist-lib/index-D35Ry0PG.js +1162 -0
  102. package/dist-lib/index-D7nLwQye.js +5012 -0
  103. package/dist-lib/index-DQ16Zb7x.js +546 -0
  104. package/dist-lib/{index-BwVZgt5s.js → index-DR9LGJpi.js} +46 -48
  105. package/dist-lib/index-DRcTwC17.js +418 -0
  106. package/dist-lib/index-DTgboCiF.js +566 -0
  107. package/dist-lib/index-Dd9pPAT3.js +2192 -0
  108. package/dist-lib/{index-Vu6sPBci.js → index-Ddx6XQu5.js} +285 -280
  109. package/dist-lib/index-Di2bQwQn.js +242 -0
  110. package/dist-lib/{index-Cy9i4Kx7.js → index-DlqhOJnd.js} +101 -105
  111. package/dist-lib/index-DxzorPvG.js +13960 -0
  112. package/dist-lib/{index-CLTfICbf.js → index-GQGXGr9M.js} +6 -6
  113. package/dist-lib/{index-nQSVLWfW.js → index-IB3GOib9.js} +81 -83
  114. package/dist-lib/index-If4xc1-H.js +559 -0
  115. package/dist-lib/index-Pcxp_AYe.js +1719 -0
  116. package/dist-lib/{index-ounfql2z.js → index-QkktEus5.js} +25 -27
  117. package/dist-lib/{index-B22_2Dzh.js → index-fVCVIu8I.js} +2 -2
  118. package/dist-lib/{index-D3GHtSlM.js → index-jHh-ITBK.js} +28 -29
  119. package/dist-lib/index-keRQ37lH.js +853 -0
  120. package/dist-lib/index-mUlorJxp.js +3279 -0
  121. package/dist-lib/{index-BSlCGnzo.js → index-n6hK1r_G.js} +12 -12
  122. package/dist-lib/index-qYfXuLnZ.js +34 -0
  123. package/dist-lib/index-yPMzsLHL.js +77 -0
  124. package/dist-lib/index.js +3 -4
  125. package/dist-lib/json-field-Bu-gFb6c.js +196 -0
  126. package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
  127. package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-DsXpXfNT.js} +64 -63
  128. package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-D8hsAHI5.js} +3 -3
  129. package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-D2XMD7iI.js} +111 -111
  130. package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-BoBR8-j-.js} +52 -53
  131. package/dist-lib/login-B4C374Y_.js +36 -0
  132. package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-ROKlyMXg.js} +156 -160
  133. package/dist-lib/material-CqtPqoZj.js +204 -0
  134. package/dist-lib/material-draft-markdown-BKlKt3pc.js +443 -0
  135. package/dist-lib/material-original-preview-pzANkVK5.js +214 -0
  136. package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
  137. package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  138. package/dist-lib/material-workspace-model-BUpogooV.js +328 -0
  139. package/dist-lib/{member-DKDx77PD.js → member-CCTFfLDC.js} +1 -1
  140. package/dist-lib/memory-reorganization-CBTDCRhV.js +8 -0
  141. package/dist-lib/memory-spaces-CZGIBlz2.js +2340 -0
  142. package/dist-lib/{message-BrooQ3Q7.js → message-Chq3cAdy.js} +24 -25
  143. package/dist-lib/{message-Dievi8Jw.js → message-Rz7LvGMk.js} +1 -1
  144. package/dist-lib/{messages-xTNmTS9g.js → messages-DciGawgR.js} +15 -16
  145. package/dist-lib/meta-BWgVxZgd.js +708 -0
  146. package/dist-lib/{metrics-DiHYqBKB.js → metrics-iWreq4IL.js} +2 -2
  147. package/dist-lib/mobile-CNrK04Ak.js +2413 -0
  148. package/dist-lib/{monitor-BBCu3zRe.js → monitor-BpUJZCht.js} +8 -8
  149. package/dist-lib/{monitor-BXsdMJSV.js → monitor-CaTKbDI1.js} +4 -4
  150. package/dist-lib/{my-access-CEGErUgv.js → my-access-ZH5CWVGF.js} +120 -132
  151. package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-edhi0lav.js} +22 -23
  152. package/dist-lib/navigation-2WdPUP2T.js +102 -0
  153. package/dist-lib/{new-BevAuTe5.js → new-Dq6mvU2w.js} +14 -15
  154. package/dist-lib/{ontology-DXGSJC-y.js → ontology-BX6X1X2J.js} +50 -52
  155. package/dist-lib/ontology-dataprep-BjMnFRBG.js +322 -0
  156. package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-B7AuwW8S.js} +100 -103
  157. package/dist-lib/ontology-extract-FpJ6K8z6.js +295 -0
  158. package/dist-lib/ontology-extract-wbvBwGZO.js +3199 -0
  159. package/dist-lib/ontology-flow-CJsIvS35.js +456 -0
  160. package/dist-lib/ontology-flow-Cgi8Fk-i.js +154 -0
  161. package/dist-lib/ontology-modeling-C_6GvHBT.js +15136 -0
  162. package/dist-lib/ontology-modeling-CeDS1-FE.js +510 -0
  163. package/dist-lib/ontology-scenarios-4Ar7Y8Kt.js +675 -0
  164. package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-BaYN82pv.js} +1289 -1305
  165. package/dist-lib/ontology-task-config-CDt7NdIq.js +122 -0
  166. package/dist-lib/ontology-terms-CnFarWZX.js +66 -0
  167. package/dist-lib/ontology-terms-CxTp2Dcq.js +1195 -0
  168. package/dist-lib/pages-CticGC6S.js +512 -0
  169. package/dist-lib/pages.js +3 -3
  170. package/dist-lib/{permission-BUXo69Ne.js → permission-CNqwhyF3.js} +41 -41
  171. package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
  172. package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
  173. package/dist-lib/preset-Bp_mvsJm.js +56827 -0
  174. package/dist-lib/{preset-gh5SGoYT.js → preset-CfByvcqu.js} +8 -8
  175. package/dist-lib/progress-ImhDvynO.js +778 -0
  176. package/dist-lib/{quota-D31cXjul.js → quota-B38BWyPo.js} +4 -3
  177. package/dist-lib/row-DeVE0t_N.js +154 -0
  178. package/dist-lib/runs-ILSUwEOv.js +565 -0
  179. package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-C5BbV45B.js} +2 -2
  180. package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-7v1SRE7V.js} +43 -45
  181. package/dist-lib/scenario-simple-form-mFm6f2ho.js +989 -0
  182. package/dist-lib/{schedule-BktxwX3S.js → schedule-DzB9rZrm.js} +8 -8
  183. package/dist-lib/script-CKdVDsYh.js +2709 -0
  184. package/dist-lib/{settings-dsB3H65I.js → settings-CaihqQtz.js} +121 -121
  185. package/dist-lib/{shared-CTCzvhyE.js → shared-B51Q5536.js} +1 -1
  186. package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-Ck5sql2m.js} +2 -2
  187. package/dist-lib/{skills-CHPlMsgO.js → skills-By3A0Dc1.js} +39 -40
  188. package/dist-lib/{source-selection-tXqc855k.js → source-selection-sIKyG7xR.js} +16 -16
  189. package/dist-lib/sources-DvIMColY.js +279 -0
  190. package/dist-lib/style-BHQZmWlH.js +191 -0
  191. package/dist-lib/{task-config-BiTOiZj0.js → task-config-CoPFj_FN.js} +4 -4
  192. package/dist-lib/{tech-BKlGPkV0.js → tech-BJgEEFrT.js} +3 -4
  193. package/dist-lib/templates-CODaf2QI.js +58 -0
  194. package/dist-lib/tenant-login-DmN4qfah.js +338 -0
  195. package/dist-lib/{tools-CouQ4FWk.js → tools-CyRz1Ofg.js} +14 -14
  196. package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
  197. package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-BuD99GTw.js} +15 -15
  198. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-C5h9frJM.js} +1 -1
  199. package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-Cbd3Jggb.js} +48 -50
  200. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  201. package/dist-lib/useBreakpoint-B8dF3ifo.js +87 -0
  202. package/dist-lib/{useForm-Byp1LopG.js → useForm-BZkiMeaN.js} +9 -9
  203. package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-HdMlbpbO.js} +26 -27
  204. package/dist-lib/{version-management-B4kIbdVc.js → version-management-BYoxw4GV.js} +6 -7
  205. package/dist-lib/{welcome-F5iZoFB1.js → welcome-CMNXQf8J.js} +3 -4
  206. package/package.json +1 -1
  207. package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
  208. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
  209. package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
  210. package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
  211. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
  212. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
  213. package/dist-lib/Pagination-Dxslodkq.js +0 -1344
  214. package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
  215. package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
  216. package/dist-lib/Skeleton-DXcERb5r.js +0 -557
  217. package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
  218. package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
  219. package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
  220. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
  221. package/dist-lib/callSuper-DZEfdkXG.js +0 -7
  222. package/dist-lib/changelog-Cn81Dvgk.js +0 -69
  223. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
  224. package/dist-lib/context-Buz0ggsK.js +0 -710
  225. package/dist-lib/context-DpmyNOn3.js +0 -21
  226. package/dist-lib/embed-CR8XVkMy.js +0 -31148
  227. package/dist-lib/focus-set-h0YtOUB2.js +0 -427
  228. package/dist-lib/index-CaXylbQR.js +0 -3419
  229. package/dist-lib/index-Cfu1W1H6.js +0 -535
  230. package/dist-lib/index-CrMcNEAZ.js +0 -9656
  231. package/dist-lib/index-DBtGE89a.js +0 -168
  232. package/dist-lib/index-DjFPRXl5.js +0 -1484
  233. package/dist-lib/index-DvWHYX81.js +0 -450
  234. package/dist-lib/index-PBT9GksC.js +0 -340
  235. package/dist-lib/index-bOY1cBol.js +0 -4890
  236. package/dist-lib/meta-BD_qYTZu.js +0 -540
  237. package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
  238. package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
  239. package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
  240. package/dist-lib/pages-CsexFuEz.js +0 -73
  241. package/dist-lib/row-B5MnGm9M.js +0 -156
  242. package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
  243. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -0,0 +1,1162 @@
1
+ import * as s from "react";
2
+ import { useRef as Rt, useEffect as It, useMemo as Ke, isValidElement as Ot } from "react";
3
+ import { f as Dt, H as Mt, a_ as Lt, bs as Xe, bC as Ht, o as Z, m as _t, aN as Bt, ax as Wt, Y as At, a5 as Ge, aB as Pt, j as Je, G as ee, v as zt, ad as Vt, E as kt, aq as Ft, aj as Ye, _ as ie, ap as J, g as Ut, F as Qe, aT as Pe, aV as jt, z as qt, l as Kt, y as Ce } from "./index-DxzorPvG.js";
4
+ import { I as Ne, c as k } from "./pages-CticGC6S.js";
5
+ import "react-dom/client";
6
+ import "react-dom";
7
+ import { K as ze, T as $e, R as Xt } from "./Table-Civ838nE.js";
8
+ var Gt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" };
9
+ function xe() {
10
+ return xe = Object.assign ? Object.assign.bind() : function(e) {
11
+ for (var t = 1; t < arguments.length; t++) {
12
+ var n = arguments[t];
13
+ for (var r in n)
14
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
15
+ }
16
+ return e;
17
+ }, xe.apply(this, arguments);
18
+ }
19
+ const Jt = (e, t) => /* @__PURE__ */ s.createElement(Ne, xe({}, e, {
20
+ ref: t,
21
+ icon: Gt
22
+ })), Ze = /* @__PURE__ */ s.forwardRef(Jt);
23
+ process.env.NODE_ENV !== "production" && (Ze.displayName = "CopyOutlined");
24
+ var Yt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" };
25
+ function Se() {
26
+ return Se = Object.assign ? Object.assign.bind() : function(e) {
27
+ for (var t = 1; t < arguments.length; t++) {
28
+ var n = arguments[t];
29
+ for (var r in n)
30
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
31
+ }
32
+ return e;
33
+ }, Se.apply(this, arguments);
34
+ }
35
+ const Qt = (e, t) => /* @__PURE__ */ s.createElement(Ne, Se({}, e, {
36
+ ref: t,
37
+ icon: Yt
38
+ })), et = /* @__PURE__ */ s.forwardRef(Qt);
39
+ process.env.NODE_ENV !== "production" && (et.displayName = "EditOutlined");
40
+ var Zt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" };
41
+ function ve() {
42
+ return ve = Object.assign ? Object.assign.bind() : function(e) {
43
+ for (var t = 1; t < arguments.length; t++) {
44
+ var n = arguments[t];
45
+ for (var r in n)
46
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
47
+ }
48
+ return e;
49
+ }, ve.apply(this, arguments);
50
+ }
51
+ const en = (e, t) => /* @__PURE__ */ s.createElement(Ne, ve({}, e, {
52
+ ref: t,
53
+ icon: Zt
54
+ })), tt = /* @__PURE__ */ s.forwardRef(en);
55
+ process.env.NODE_ENV !== "production" && (tt.displayName = "EnterOutlined");
56
+ const tn = (e) => {
57
+ if (Dt() && window.document.documentElement) {
58
+ const t = Array.isArray(e) ? e : [e], {
59
+ documentElement: n
60
+ } = window.document;
61
+ return t.some((r) => r in n.style);
62
+ }
63
+ return !1;
64
+ };
65
+ function Ve(e, t) {
66
+ return tn(e);
67
+ }
68
+ const nt = (e, t = {}) => !Mt(e) && (t != null && t.skipEmpty) ? [] : Array.isArray(e) ? e : [e], nn = (e, t, n, r) => {
69
+ const {
70
+ titleMarginBottom: o,
71
+ fontWeightStrong: l
72
+ } = r;
73
+ return {
74
+ marginBottom: o,
75
+ color: n,
76
+ fontWeight: l,
77
+ fontSize: e,
78
+ lineHeight: t
79
+ };
80
+ }, sn = (e) => {
81
+ const t = [1, 2, 3, 4, 5], n = {};
82
+ return t.forEach((r) => {
83
+ n[`
84
+ h${r}&,
85
+ div&-h${r},
86
+ div&-h${r} > textarea,
87
+ h${r}
88
+ `] = nn(e[`fontSizeHeading${r}`], e[`lineHeightHeading${r}`], e.colorTextHeading, e);
89
+ }), n;
90
+ }, rn = (e) => {
91
+ const {
92
+ componentCls: t
93
+ } = e;
94
+ return {
95
+ [`&${`${t}-link`}`]: {
96
+ ...Xe(e),
97
+ userSelect: "text",
98
+ [`&[disabled], &${t}-disabled`]: {
99
+ color: e.colorTextDisabled,
100
+ cursor: "not-allowed",
101
+ "&:active, &:hover": {
102
+ color: e.colorTextDisabled
103
+ },
104
+ "&:active": {
105
+ pointerEvents: "none",
106
+ // Action buttons (copy, edit, expand) must remain interactive even when
107
+ // the disabled link is being clicked, otherwise their click events get
108
+ // swallowed by the parent's pointer-events: none during :active.
109
+ [`${t}-actions`]: {
110
+ pointerEvents: "auto"
111
+ }
112
+ }
113
+ }
114
+ }
115
+ };
116
+ }, on = (e) => ({
117
+ code: {
118
+ margin: "0 0.2em",
119
+ paddingInline: "0.4em",
120
+ paddingBlock: "0.2em 0.1em",
121
+ fontSize: "85%",
122
+ fontFamily: e.fontFamilyCode,
123
+ background: "rgba(150, 150, 150, 0.1)",
124
+ border: `${Z(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,
125
+ borderRadius: 3
126
+ },
127
+ kbd: {
128
+ margin: "0 0.2em",
129
+ paddingInline: "0.4em",
130
+ paddingBlock: "0.15em 0.1em",
131
+ fontSize: "90%",
132
+ fontFamily: e.fontFamilyCode,
133
+ background: "rgba(150, 150, 150, 0.06)",
134
+ border: `${Z(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,
135
+ borderBottomWidth: 2,
136
+ borderRadius: 3
137
+ },
138
+ mark: {
139
+ padding: 0,
140
+ // FIXME hardcode in v4
141
+ backgroundColor: Ht[2]
142
+ },
143
+ "u, ins": {
144
+ textDecoration: "underline",
145
+ textDecorationSkipInk: "auto"
146
+ },
147
+ "s, del": {
148
+ textDecoration: "line-through"
149
+ },
150
+ strong: {
151
+ fontWeight: e.fontWeightStrong
152
+ },
153
+ // list
154
+ "ul, ol": {
155
+ marginInline: 0,
156
+ marginBlock: "0 1em",
157
+ padding: 0,
158
+ li: {
159
+ marginInline: "20px 0",
160
+ marginBlock: 0,
161
+ paddingInline: "4px 0",
162
+ paddingBlock: 0
163
+ }
164
+ },
165
+ ul: {
166
+ listStyleType: "circle",
167
+ ul: {
168
+ listStyleType: "disc"
169
+ }
170
+ },
171
+ ol: {
172
+ listStyleType: "decimal"
173
+ },
174
+ // pre & block
175
+ "pre, blockquote": {
176
+ margin: "1em 0"
177
+ },
178
+ pre: {
179
+ padding: "0.4em 0.6em",
180
+ whiteSpace: "pre-wrap",
181
+ wordWrap: "break-word",
182
+ background: "rgba(150, 150, 150, 0.1)",
183
+ border: `${Z(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,
184
+ borderRadius: 3,
185
+ fontFamily: e.fontFamilyCode,
186
+ // Compatible for marked
187
+ code: {
188
+ display: "inline",
189
+ margin: 0,
190
+ padding: 0,
191
+ fontSize: "inherit",
192
+ fontFamily: "inherit",
193
+ background: "transparent",
194
+ border: 0
195
+ }
196
+ },
197
+ blockquote: {
198
+ paddingInline: "0.6em 0",
199
+ paddingBlock: 0,
200
+ borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)",
201
+ opacity: 0.85
202
+ },
203
+ // table - Follow Table component default style
204
+ table: {
205
+ width: "100%",
206
+ textAlign: "start",
207
+ borderCollapse: "separate",
208
+ borderSpacing: 0,
209
+ marginBlock: "1em",
210
+ "th, td": {
211
+ padding: Z(e.padding),
212
+ overflowWrap: "break-word",
213
+ borderBottom: `${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`
214
+ },
215
+ "thead > tr:first-child > th:first-child": {
216
+ borderStartStartRadius: e.borderRadiusLG
217
+ },
218
+ "thead > tr:first-child > th:last-child": {
219
+ borderStartEndRadius: e.borderRadiusLG
220
+ },
221
+ "thead > tr > th": {
222
+ textAlign: "start",
223
+ position: "relative",
224
+ color: e.colorTextHeading,
225
+ fontWeight: e.fontWeightStrong,
226
+ backgroundColor: e.colorFillAlter,
227
+ transition: `background-color ${e.motionDurationMid} ease`,
228
+ "&:not(:last-child)::before": {
229
+ position: "absolute",
230
+ top: "50%",
231
+ insetInlineEnd: 0,
232
+ width: 1,
233
+ height: "1.6em",
234
+ backgroundColor: e.colorSplit,
235
+ transform: "translateY(-50%)",
236
+ content: '""'
237
+ }
238
+ },
239
+ "tbody > tr": {
240
+ "> th, > td": {
241
+ transition: `background-color ${e.motionDurationMid} ease`
242
+ },
243
+ "&:hover > th, &:hover > td": {
244
+ backgroundColor: e.colorFillAlter
245
+ }
246
+ }
247
+ }
248
+ }), an = (e) => {
249
+ const {
250
+ componentCls: t,
251
+ paddingSM: n
252
+ } = e, r = n;
253
+ return {
254
+ "&-edit-content": {
255
+ position: "relative",
256
+ "div&": {
257
+ insetInlineStart: e.calc(e.paddingSM).mul(-1).equal(),
258
+ insetBlockStart: e.calc(r).div(-2).add(1).equal(),
259
+ marginBottom: e.calc(r).div(2).sub(2).equal()
260
+ },
261
+ [`${t}-edit-content-confirm`]: {
262
+ position: "absolute",
263
+ insetInlineEnd: e.calc(e.marginXS).add(2).equal(),
264
+ insetBlockEnd: e.marginXS,
265
+ color: e.colorIcon,
266
+ // default style
267
+ fontWeight: 400,
268
+ fontSize: e.fontSize,
269
+ fontStyle: "normal",
270
+ pointerEvents: "none"
271
+ },
272
+ // Double the `-edit-content` class to raise this selector's specificity
273
+ // above Input's own `textarea.ant-input { line-height: token.lineHeight }`
274
+ // rule. Both otherwise share the same (0,1,1) specificity and Input is
275
+ // injected after Typography, so on the raw TextArea path the Input rule
276
+ // would win the cascade and the inherited font props below (notably
277
+ // `line-height`) would not apply.
278
+ [`&${t}-edit-content textarea`]: {
279
+ margin: "0!important",
280
+ // Inherit the edited element's typography so the editing textarea
281
+ // matches the rendered text (including customized heading tokens such
282
+ // as `fontSizeHeading1` and the strong heading weight), keeping editing
283
+ // WYSIWYG. Browsers do not inherit font properties for form controls by
284
+ // default, so they are set explicitly here.
285
+ fontSize: "inherit",
286
+ lineHeight: "inherit",
287
+ fontFamily: "inherit",
288
+ fontWeight: "inherit",
289
+ // Fix Editable Textarea flash in Firefox
290
+ MozTransition: "none",
291
+ height: "1em"
292
+ }
293
+ }
294
+ };
295
+ }, ln = (e) => ({
296
+ [`${e.componentCls}-copy-success`]: {
297
+ "&, &:hover, &:focus": {
298
+ color: e.colorSuccess
299
+ }
300
+ },
301
+ [`${e.componentCls}-copy-icon-only`]: {
302
+ marginInlineStart: 0
303
+ }
304
+ }), cn = () => ({
305
+ "a&-ellipsis, span&-ellipsis": {
306
+ display: "inline-block",
307
+ maxWidth: "100%"
308
+ },
309
+ "&-ellipsis-single-line": {
310
+ ...Lt,
311
+ // https://blog.csdn.net/iefreer/article/details/50421025
312
+ "a&, span&": {
313
+ verticalAlign: "bottom"
314
+ },
315
+ "> code": {
316
+ paddingBlock: 0,
317
+ maxWidth: "calc(100% - 1.2em)",
318
+ display: "inline-block",
319
+ overflow: "hidden",
320
+ textOverflow: "ellipsis",
321
+ verticalAlign: "bottom",
322
+ // https://github.com/ant-design/ant-design/issues/45953
323
+ boxSizing: "content-box"
324
+ }
325
+ },
326
+ "&-ellipsis-multiple-line": {
327
+ display: "-webkit-box",
328
+ overflow: "hidden",
329
+ WebkitLineClamp: 3,
330
+ WebkitBoxOrient: "vertical"
331
+ }
332
+ }), dn = (e) => {
333
+ const {
334
+ componentCls: t,
335
+ titleMarginTop: n
336
+ } = e;
337
+ return {
338
+ [t]: {
339
+ color: e.colorText,
340
+ wordBreak: "break-word",
341
+ lineHeight: e.lineHeight,
342
+ [`&${t}-secondary, &${t}-link${t}-secondary`]: {
343
+ color: e.colorTextDescription
344
+ },
345
+ [`&${t}-success, &${t}-link${t}-success`]: {
346
+ color: e.colorSuccessText
347
+ },
348
+ [`&${t}-warning, &${t}-link${t}-warning`]: {
349
+ color: e.colorWarningText
350
+ },
351
+ [`&${t}-danger, &${t}-link${t}-danger`]: {
352
+ color: e.colorErrorText,
353
+ [`&${t}-link:active, &${t}-link:focus`]: {
354
+ color: e.colorErrorTextActive
355
+ },
356
+ [`&${t}-link:hover`]: {
357
+ color: e.colorErrorTextHover
358
+ }
359
+ },
360
+ [`&${t}-disabled`]: {
361
+ color: e.colorTextDisabled,
362
+ cursor: "not-allowed",
363
+ userSelect: "none"
364
+ },
365
+ "div&, p": {
366
+ marginBottom: "1em"
367
+ },
368
+ ...sn(e),
369
+ [`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]: {
370
+ marginTop: n
371
+ },
372
+ "div, ul, li, p, h1, h2, h3, h4, h5": {
373
+ "+ h1, + h2, + h3, + h4, + h5": {
374
+ marginTop: n
375
+ }
376
+ },
377
+ ...on(e),
378
+ ...rn(e),
379
+ // Operation
380
+ [`${t}-actions`]: {
381
+ display: "inline"
382
+ },
383
+ [`
384
+ ${t}-expand,
385
+ ${t}-collapse,
386
+ ${t}-edit,
387
+ ${t}-copy
388
+ `]: {
389
+ ...Xe(e),
390
+ marginInlineStart: e.marginXXS
391
+ },
392
+ [`${t}-actions-start`]: {
393
+ [`
394
+ ${t}-expand,
395
+ ${t}-collapse,
396
+ ${t}-edit,
397
+ ${t}-copy:not(${t}-copy-icon-only)
398
+ `]: {
399
+ marginInlineStart: 0,
400
+ marginInlineEnd: e.marginXXS
401
+ }
402
+ },
403
+ ...an(e),
404
+ ...ln(e),
405
+ ...cn(),
406
+ "&-rtl": {
407
+ direction: "rtl"
408
+ }
409
+ }
410
+ };
411
+ }, pn = () => ({
412
+ titleMarginTop: "1.2em",
413
+ titleMarginBottom: "0.5em"
414
+ }), st = _t("Typography", dn, pn), un = (e) => {
415
+ const {
416
+ prefixCls: t,
417
+ "aria-label": n,
418
+ className: r,
419
+ style: o,
420
+ classNames: l,
421
+ styles: p,
422
+ direction: f,
423
+ maxLength: d,
424
+ autoSize: u = !0,
425
+ value: c,
426
+ onSave: b,
427
+ onCancel: N,
428
+ onEnd: g,
429
+ component: R,
430
+ enterIcon: $ = /* @__PURE__ */ s.createElement(tt, null)
431
+ } = e, C = s.useRef(null), h = s.useRef(!1), M = s.useRef(null), [_, j] = s.useState(c);
432
+ s.useEffect(() => {
433
+ j(c);
434
+ }, [c]), s.useEffect(() => {
435
+ var y;
436
+ if ((y = C.current) != null && y.resizableTextArea) {
437
+ const {
438
+ textArea: T
439
+ } = C.current.resizableTextArea;
440
+ T.focus();
441
+ const {
442
+ length: I
443
+ } = T.value;
444
+ T.setSelectionRange(I, I);
445
+ }
446
+ }, []);
447
+ const E = ({
448
+ target: y
449
+ }) => {
450
+ j(y.value.replace(/[\n\r]/g, ""));
451
+ }, w = () => {
452
+ h.current = !0;
453
+ }, B = () => {
454
+ h.current = !1;
455
+ }, H = ({
456
+ keyCode: y
457
+ }) => {
458
+ h.current || (M.current = y);
459
+ }, L = () => {
460
+ b(_.trim());
461
+ }, x = ({
462
+ keyCode: y,
463
+ ctrlKey: T,
464
+ altKey: I,
465
+ metaKey: W,
466
+ shiftKey: O
467
+ }) => {
468
+ M.current !== y || h.current || T || I || W || O || (y === ze.ENTER ? (L(), g == null || g()) : y === ze.ESC && N());
469
+ }, q = () => {
470
+ L();
471
+ }, [F, P] = st(t), m = k(t, `${t}-edit-content`, {
472
+ [`${t}-rtl`]: f === "rtl",
473
+ [`${t}-${R}`]: !!R
474
+ }, r, l.root, F, P);
475
+ return /* @__PURE__ */ s.createElement("div", {
476
+ className: m,
477
+ style: {
478
+ ...p.root,
479
+ ...o
480
+ }
481
+ }, /* @__PURE__ */ s.createElement(Bt, {
482
+ ref: C,
483
+ maxLength: d,
484
+ value: _,
485
+ onChange: E,
486
+ onKeyDown: H,
487
+ onKeyUp: x,
488
+ onCompositionStart: w,
489
+ onCompositionEnd: B,
490
+ onBlur: q,
491
+ "aria-label": n,
492
+ rows: 1,
493
+ autoSize: u,
494
+ className: l.textarea,
495
+ style: p.textarea
496
+ }), $ !== null ? Wt($, {
497
+ className: `${t}-edit-content-confirm`
498
+ }) : null);
499
+ }, mn = (e, t) => {
500
+ let n = !1;
501
+ const r = (o) => {
502
+ var l, p, f;
503
+ o.stopPropagation(), o.preventDefault(), (l = o.clipboardData) == null || l.clearData(), (p = o.clipboardData) == null || p.setData("text/plain", e), t && ((f = o.clipboardData) == null || f.setData("text/html", e)), n = !0;
504
+ };
505
+ try {
506
+ return document.addEventListener("copy", r, {
507
+ capture: !0
508
+ }), document.execCommand("copy"), n;
509
+ } catch {
510
+ return !1;
511
+ } finally {
512
+ document.removeEventListener("copy", r, {
513
+ capture: !0
514
+ });
515
+ }
516
+ }, fn = async (e, t) => {
517
+ try {
518
+ return t ? await navigator.clipboard.write([new ClipboardItem({
519
+ "text/html": new Blob([e], {
520
+ type: "text/html"
521
+ }),
522
+ "text/plain": new Blob([e], {
523
+ type: "text/plain"
524
+ })
525
+ })]) : await navigator.clipboard.writeText(e), !0;
526
+ } catch {
527
+ return !1;
528
+ }
529
+ };
530
+ async function gn(e, t) {
531
+ if (typeof e != "string")
532
+ return process.env.NODE_ENV !== "production" && At(!1, "The clipboard content must be of string type", ""), !1;
533
+ const n = (t == null ? void 0 : t.format) === "text/html";
534
+ return !!(await fn(e, n) || mn(e, n));
535
+ }
536
+ const yn = ({
537
+ copyConfig: e,
538
+ children: t
539
+ }) => {
540
+ const [n, r] = Ge(!1), [o, l] = s.useState(!1), p = {};
541
+ e.format && (p.format = e.format);
542
+ const f = Pt(async (d) => {
543
+ var u;
544
+ d == null || d.preventDefault(), d == null || d.stopPropagation(), l(!0);
545
+ try {
546
+ const c = Je(e.text) ? await e.text() : e.text;
547
+ await gn(c || nt(t, {
548
+ skipEmpty: !0
549
+ }).join("") || "", p), l(!1), r(!0, !0), r(!1, {
550
+ ms: 3e3
551
+ }), (u = e.onCopy) == null || u.call(e, d);
552
+ } catch (c) {
553
+ throw l(!1), c;
554
+ }
555
+ });
556
+ return {
557
+ copied: n,
558
+ copyLoading: o,
559
+ onClick: f
560
+ };
561
+ }, fe = (e, t) => {
562
+ const n = !!e;
563
+ return s.useMemo(() => {
564
+ const r = {
565
+ ...t,
566
+ ...n && ee(e) ? e : null
567
+ };
568
+ return [n, r];
569
+ }, [n, e, t]);
570
+ }, En = (e) => {
571
+ const t = Rt(void 0);
572
+ return It(() => {
573
+ t.current = e;
574
+ }), t.current;
575
+ }, hn = (e, t, n) => Ke(() => e === !0 ? {
576
+ title: t ?? n
577
+ } : /* @__PURE__ */ Ot(e) ? {
578
+ title: e
579
+ } : ee(e) ? {
580
+ title: t ?? n,
581
+ ...e
582
+ } : {
583
+ title: e
584
+ }, [e, t, n]), rt = (e, t, n, r, o) => {
585
+ const {
586
+ getPrefixCls: l,
587
+ direction: p,
588
+ className: f,
589
+ style: d,
590
+ classNames: u,
591
+ styles: c
592
+ } = zt("typography"), b = r ?? p, N = l("typography", e), g = {
593
+ ...o,
594
+ prefixCls: N,
595
+ direction: b
596
+ }, R = Ke(() => ({
597
+ root: f
598
+ }), [f]), $ = Vt(d), [C, h] = kt([R, u, t], [c, $, n], {
599
+ props: g
600
+ });
601
+ return [C, h, N, b];
602
+ }, we = /* @__PURE__ */ s.forwardRef((e, t) => {
603
+ const {
604
+ component: n = "article",
605
+ className: r,
606
+ rootClassName: o,
607
+ children: l,
608
+ direction: p,
609
+ style: f,
610
+ classNames: d,
611
+ styles: u,
612
+ prefixCls: c,
613
+ ...b
614
+ } = e, [N, g] = st(c), R = k(c, {
615
+ [`${c}-rtl`]: p === "rtl"
616
+ }, r, o, N, g, d == null ? void 0 : d.root), $ = {
617
+ ...u == null ? void 0 : u.root,
618
+ ...f
619
+ };
620
+ return /* @__PURE__ */ s.createElement(n, {
621
+ ...b,
622
+ className: R,
623
+ style: $,
624
+ ref: t
625
+ }, l);
626
+ });
627
+ process.env.NODE_ENV !== "production" && (we.displayName = "InternalTypography");
628
+ const ot = /* @__PURE__ */ s.forwardRef((e, t) => {
629
+ const {
630
+ prefixCls: n,
631
+ className: r,
632
+ rootClassName: o,
633
+ direction: l,
634
+ classNames: p,
635
+ styles: f,
636
+ ...d
637
+ } = e, [u, c, b, N] = rt(n, p, f, l, e);
638
+ return /* @__PURE__ */ s.createElement(we, {
639
+ ref: t,
640
+ className: k(r, o),
641
+ direction: N,
642
+ classNames: u,
643
+ styles: c,
644
+ prefixCls: b,
645
+ ...d
646
+ });
647
+ });
648
+ process.env.NODE_ENV !== "production" && (ot.displayName = "Typography");
649
+ const ke = (e) => e === !1 ? [!1, !1] : nt(e);
650
+ function ge(e, t, n) {
651
+ return e === !0 || e === void 0 ? t : e || n && t;
652
+ }
653
+ function bn(e) {
654
+ const t = document.createElement("em");
655
+ e.appendChild(t), process.env.NODE_ENV !== "production" && (t.className = "ant-typography-css-ellipsis-content-measure");
656
+ const n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
657
+ return e.removeChild(t), // Horizontal out of range
658
+ n.left > r.left || r.right > n.right || // Vertical out of range
659
+ n.top > r.top || r.bottom > n.bottom;
660
+ }
661
+ const Te = (e) => ["string", "number"].includes(typeof e), xn = (e) => {
662
+ const {
663
+ prefixCls: t,
664
+ copied: n,
665
+ locale: r,
666
+ iconOnly: o,
667
+ tooltips: l,
668
+ icon: p,
669
+ tabIndex: f,
670
+ onCopy: d,
671
+ loading: u,
672
+ className: c,
673
+ style: b
674
+ } = e, N = ke(l), g = ke(p), {
675
+ copied: R,
676
+ copy: $
677
+ } = r ?? {}, C = n ? R : $, h = ge(N[n ? 1 : 0], C), M = typeof h == "string" ? h : C;
678
+ return /* @__PURE__ */ s.createElement($e, {
679
+ title: h
680
+ }, /* @__PURE__ */ s.createElement("button", {
681
+ type: "button",
682
+ className: k(`${t}-copy`, c, {
683
+ [`${t}-copy-success`]: n,
684
+ [`${t}-copy-icon-only`]: o
685
+ }),
686
+ style: b,
687
+ onClick: d,
688
+ "aria-label": M,
689
+ tabIndex: f
690
+ }, n ? ge(g[1], /* @__PURE__ */ s.createElement(Xt, null), !0) : ge(g[0], u ? /* @__PURE__ */ s.createElement(Ft, null) : /* @__PURE__ */ s.createElement(Ze, null), !0)));
691
+ }, re = /* @__PURE__ */ s.forwardRef(({
692
+ style: e,
693
+ children: t
694
+ }, n) => {
695
+ const r = s.useRef(null);
696
+ return s.useImperativeHandle(n, () => ({
697
+ isExceed: () => {
698
+ const o = r.current;
699
+ return o.scrollHeight > o.clientHeight;
700
+ },
701
+ getHeight: () => r.current.clientHeight
702
+ })), /* @__PURE__ */ s.createElement("span", {
703
+ "aria-hidden": !0,
704
+ ref: r,
705
+ style: {
706
+ position: "fixed",
707
+ display: "block",
708
+ left: 0,
709
+ top: 0,
710
+ pointerEvents: "none",
711
+ backgroundColor: "rgba(255, 0, 0, 0.65)",
712
+ ...e
713
+ }
714
+ }, t);
715
+ }), Sn = (e) => e.reduce((t, n) => t + (Te(n) ? String(n).length : 1), 0);
716
+ function Fe(e, t) {
717
+ let n = 0;
718
+ const r = [];
719
+ for (let o = 0; o < e.length; o += 1) {
720
+ if (n === t)
721
+ return r;
722
+ const l = e[o], f = Te(l) ? String(l).length : 1, d = n + f;
723
+ if (d > t) {
724
+ const u = t - n;
725
+ return r.push(String(l).slice(0, u)), r;
726
+ }
727
+ r.push(l), n = d;
728
+ }
729
+ return e;
730
+ }
731
+ const ye = 0, Ee = 1, he = 2, be = 3, Ue = 4, oe = {
732
+ display: "-webkit-box",
733
+ overflow: "hidden",
734
+ WebkitBoxOrient: "vertical"
735
+ };
736
+ function vn(e) {
737
+ const {
738
+ enableMeasure: t,
739
+ width: n,
740
+ text: r,
741
+ children: o,
742
+ rows: l,
743
+ expanded: p,
744
+ measureDeps: f,
745
+ miscDeps: d,
746
+ onEllipsis: u
747
+ } = e, c = s.useMemo(() => Ye(r), [r]), b = s.useMemo(() => Sn(c), [r]), N = s.useMemo(() => o(c, !1), [r].concat(ie(f))), [g, R] = s.useState(null), $ = s.useRef(null), C = s.useRef(null), h = s.useRef(null), M = s.useRef(null), _ = s.useRef(null), [j, E] = s.useState(!1), [w, B] = s.useState(ye), [H, L] = s.useState(0), [x, q] = s.useState(null);
748
+ J(() => {
749
+ B(t && n && b ? Ee : ye);
750
+ }, [n, r, l, t, c].concat(ie(f))), J(() => {
751
+ var y, T, I, W;
752
+ if (w === Ee) {
753
+ B(he);
754
+ const O = C.current && getComputedStyle(C.current).whiteSpace;
755
+ q(O);
756
+ } else if (w === he) {
757
+ const O = !!((y = h.current) != null && y.isExceed());
758
+ B(O ? be : Ue), R(O ? [0, b] : null), E(O);
759
+ const z = ((T = h.current) == null ? void 0 : T.getHeight()) || 0, ce = l === 1 ? 0 : ((I = M.current) == null ? void 0 : I.getHeight()) || 0, de = ((W = _.current) == null ? void 0 : W.getHeight()) || 0, K = Math.max(
760
+ z,
761
+ // height of rows with ellipsis
762
+ ce + de
763
+ );
764
+ L(K + 1), u(O);
765
+ }
766
+ }, [w]);
767
+ const F = g ? Math.ceil((g[0] + g[1]) / 2) : 0;
768
+ J(() => {
769
+ var I;
770
+ const [y, T] = g || [0, 0];
771
+ if (y !== T) {
772
+ const O = (((I = $.current) == null ? void 0 : I.getHeight()) || 0) > H;
773
+ let z = F;
774
+ T - y === 1 && (z = O ? y : T), R(O ? [y, z] : [z, T]);
775
+ }
776
+ }, [g, F]);
777
+ const P = s.useMemo(() => {
778
+ if (!t)
779
+ return o(c, !1);
780
+ if (w !== be || !g || g[0] !== g[1]) {
781
+ const y = o(c, !1);
782
+ return [Ue, ye].includes(w) ? y : /* @__PURE__ */ s.createElement("span", {
783
+ style: {
784
+ ...oe,
785
+ WebkitLineClamp: l
786
+ }
787
+ }, y);
788
+ }
789
+ return o(p ? c : Fe(c, g[0]), j);
790
+ }, [p, w, g, c].concat(ie(d))), m = {
791
+ width: n,
792
+ margin: 0,
793
+ padding: 0,
794
+ whiteSpace: x === "nowrap" ? "normal" : "inherit"
795
+ };
796
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, P, w === he && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(re, {
797
+ style: {
798
+ ...m,
799
+ ...oe,
800
+ WebkitLineClamp: l
801
+ },
802
+ ref: h
803
+ }, N), /* @__PURE__ */ s.createElement(re, {
804
+ style: {
805
+ ...m,
806
+ ...oe,
807
+ WebkitLineClamp: l - 1
808
+ },
809
+ ref: M
810
+ }, N), /* @__PURE__ */ s.createElement(re, {
811
+ style: {
812
+ ...m,
813
+ ...oe,
814
+ WebkitLineClamp: 1
815
+ },
816
+ ref: _
817
+ }, o([], !0))), w === be && g && g[0] !== g[1] && /* @__PURE__ */ s.createElement(re, {
818
+ style: {
819
+ ...m,
820
+ top: 400
821
+ },
822
+ ref: $
823
+ }, o(Fe(c, F), !0)), w === Ee && /* @__PURE__ */ s.createElement("span", {
824
+ style: {
825
+ whiteSpace: "inherit"
826
+ },
827
+ ref: C
828
+ }));
829
+ }
830
+ const it = ({
831
+ enableEllipsis: e,
832
+ isEllipsis: t,
833
+ disabled: n,
834
+ children: r,
835
+ tooltipProps: o
836
+ }) => !(o != null && o.title) || !e ? r : /* @__PURE__ */ s.createElement($e, {
837
+ ...o,
838
+ disabled: !t || n
839
+ }, r);
840
+ process.env.NODE_ENV !== "production" && (it.displayName = "EllipsisTooltip");
841
+ function Cn({
842
+ mark: e,
843
+ code: t,
844
+ underline: n,
845
+ delete: r,
846
+ strong: o,
847
+ keyboard: l,
848
+ italic: p
849
+ }, f) {
850
+ let d = f;
851
+ function u(c, b) {
852
+ b && (d = /* @__PURE__ */ s.createElement(c, {}, d));
853
+ }
854
+ return u("strong", o), u("u", n), u("del", r), u("code", t), u("mark", e), u("kbd", l), u("i", p), d;
855
+ }
856
+ const Nn = "...", je = ["delete", "mark", "code", "underline", "strong", "keyboard", "italic"], ae = /* @__PURE__ */ s.forwardRef((e, t) => {
857
+ const {
858
+ prefixCls: n,
859
+ className: r,
860
+ style: o,
861
+ classNames: l,
862
+ styles: p,
863
+ direction: f,
864
+ type: d,
865
+ disabled: u,
866
+ children: c,
867
+ ellipsis: b,
868
+ editable: N,
869
+ copyable: g,
870
+ actions: R,
871
+ component: $,
872
+ title: C,
873
+ onClick: h,
874
+ onMouseEnter: M,
875
+ onMouseLeave: _,
876
+ ...j
877
+ } = e, [E] = Ut("Text"), w = s.useRef(null), B = s.useRef(null), [H, L, x, q] = rt(n, l, p, f, e), F = Qe(j, je), [P, m] = fe(N), [y, T] = Pe(!1, m.editing), {
878
+ triggerType: I = ["icon"]
879
+ } = m, W = (i) => {
880
+ var a;
881
+ i && ((a = m.onStart) == null || a.call(m)), T(i);
882
+ }, O = En(y);
883
+ J(() => {
884
+ var i;
885
+ !y && O && ((i = B.current) == null || i.focus());
886
+ }, [y]);
887
+ const z = (i) => {
888
+ i == null || i.preventDefault(), W(!0);
889
+ }, ce = (i) => {
890
+ var a;
891
+ (a = m.onChange) == null || a.call(m, i), W(!1);
892
+ }, de = () => {
893
+ var i;
894
+ (i = m.onCancel) == null || i.call(m), W(!1);
895
+ }, [K, Re] = fe(g), {
896
+ placement: Y = "end"
897
+ } = R ?? {}, {
898
+ copied: Ie,
899
+ copyLoading: Oe,
900
+ onClick: at
901
+ } = yn({
902
+ copyConfig: Re,
903
+ children: c
904
+ }), [De, lt] = s.useState(!1), [Me, ct] = s.useState(!1), [Le, dt] = s.useState(!1), [pt, ut] = s.useState(!1), [mt, ft] = s.useState(!0), [V, S] = fe(b, {
905
+ expandable: !1,
906
+ symbol: (i) => i ? E == null ? void 0 : E.collapse : E == null ? void 0 : E.expand
907
+ }), [A, gt] = Pe(S.defaultExpanded || !1, S.expanded), D = V && (!A || S.expandable === "collapsible"), {
908
+ rows: X = 1
909
+ } = S, te = s.useMemo(() => (
910
+ // Disable ellipsis
911
+ D && // Provide suffix
912
+ (S.suffix !== void 0 || S.onEllipsis || // Can't use css ellipsis since we need to provide the place for button
913
+ S.expandable || P || K)
914
+ ), [D, S, P, K]);
915
+ J(() => {
916
+ V && !te && (lt(Ve("webkitLineClamp")), ct(Ve("textOverflow")));
917
+ }, [te, V]);
918
+ const [U, yt] = s.useState(D), He = s.useMemo(() => te ? !1 : X === 1 ? Me : De, [te, X, De, Me]);
919
+ J(() => {
920
+ yt(He && D);
921
+ }, [He, D]);
922
+ const ne = hn(S.tooltip, m.text, c), Q = U && !!ne.title, _e = D && (U ? Q && pt : Le), Et = D && X === 1 && U, pe = D && X > 1 && U, ht = (i, a) => {
923
+ var v;
924
+ gt(a.expanded), (v = S.onExpand) == null || v.call(S, i, a);
925
+ }, [Be, bt] = s.useState(0), [xt, We] = Ge(!1), ue = s.useRef(!1), St = ({
926
+ offsetWidth: i
927
+ }) => {
928
+ bt(i);
929
+ }, vt = (i) => {
930
+ var a;
931
+ dt(i), Le !== i && ((a = S.onEllipsis) == null || a.call(S, i));
932
+ }, me = s.useCallback(() => {
933
+ const i = w.current;
934
+ if (V && Q && i) {
935
+ const a = bn(i);
936
+ ut((v) => v === a ? v : a);
937
+ }
938
+ }, [V, Q]);
939
+ s.useEffect(() => {
940
+ ue.current && me();
941
+ }, [me, c, pe, mt, Be]), s.useEffect(() => {
942
+ const i = w.current;
943
+ if (typeof IntersectionObserver > "u" || !i || !Q || !D)
944
+ return;
945
+ const a = new IntersectionObserver(() => {
946
+ ft(!!i.offsetParent);
947
+ });
948
+ return a.observe(i), () => {
949
+ a.disconnect();
950
+ };
951
+ }, [Q, D]);
952
+ const se = s.useMemo(() => {
953
+ if (!(!V || U))
954
+ return [m.text, c, C, ne.title].find(Te);
955
+ }, [V, U, C, ne.title, _e, m.text]);
956
+ if (y)
957
+ return /* @__PURE__ */ s.createElement(un, {
958
+ value: m.text ?? (typeof c == "string" ? c : ""),
959
+ onSave: ce,
960
+ onCancel: de,
961
+ onEnd: m.onEnd,
962
+ prefixCls: x,
963
+ className: r,
964
+ style: o,
965
+ direction: q,
966
+ component: $,
967
+ maxLength: m.maxLength,
968
+ autoSize: m.autoSize,
969
+ enterIcon: m.enterIcon,
970
+ classNames: H,
971
+ styles: L
972
+ });
973
+ const Ct = () => {
974
+ const {
975
+ expandable: i,
976
+ symbol: a
977
+ } = S;
978
+ return i ? /* @__PURE__ */ s.createElement("button", {
979
+ type: "button",
980
+ key: "expand",
981
+ className: k(`${x}-${A ? "collapse" : "expand"}`, H.action),
982
+ style: L.action,
983
+ onClick: (v) => ht(v, {
984
+ expanded: !A
985
+ }),
986
+ "aria-label": A ? E.collapse : E == null ? void 0 : E.expand
987
+ }, Je(a) ? a(A) : a) : null;
988
+ }, Nt = () => {
989
+ if (!P)
990
+ return;
991
+ const {
992
+ icon: i,
993
+ tooltip: a,
994
+ tabIndex: v
995
+ } = m, G = Ye(a)[0] || (E == null ? void 0 : E.edit), Tt = typeof G == "string" ? G : "";
996
+ return I.includes("icon") ? /* @__PURE__ */ s.createElement($e, {
997
+ key: "edit",
998
+ title: a === !1 ? "" : G
999
+ }, /* @__PURE__ */ s.createElement("button", {
1000
+ type: "button",
1001
+ ref: B,
1002
+ className: k(`${x}-edit`, H.action),
1003
+ style: L.action,
1004
+ onClick: z,
1005
+ "aria-label": Tt,
1006
+ tabIndex: v
1007
+ }, i || /* @__PURE__ */ s.createElement(et, null))) : null;
1008
+ }, $t = () => K ? /* @__PURE__ */ s.createElement(xn, {
1009
+ key: "copy",
1010
+ ...Re,
1011
+ prefixCls: x,
1012
+ copied: Ie,
1013
+ locale: E,
1014
+ onCopy: at,
1015
+ loading: Oe,
1016
+ iconOnly: !Kt(c),
1017
+ className: H.action,
1018
+ style: L.action
1019
+ }) : null, Ae = (i) => {
1020
+ const a = i && Ct(), v = Nt(), G = $t();
1021
+ return !a && !v && !G ? null : /* @__PURE__ */ s.createElement("span", {
1022
+ key: "operations",
1023
+ className: k(`${x}-actions`, H.actions, {
1024
+ [`${x}-actions-start`]: Y === "start"
1025
+ }),
1026
+ style: L.actions,
1027
+ onMouseEnter: () => We(!0, !0),
1028
+ onMouseLeave: () => We(!1, {
1029
+ // Delay 500ms for better user experience
1030
+ ms: 500
1031
+ })
1032
+ }, a, v, G);
1033
+ }, wt = (i) => [i && !A && /* @__PURE__ */ s.createElement("span", {
1034
+ "aria-hidden": !0,
1035
+ key: "ellipsis"
1036
+ }, Nn), S.suffix];
1037
+ return /* @__PURE__ */ s.createElement(jt, {
1038
+ onResize: St,
1039
+ disabled: !D
1040
+ }, (i) => /* @__PURE__ */ s.createElement(it, {
1041
+ tooltipProps: ne,
1042
+ enableEllipsis: D,
1043
+ isEllipsis: _e,
1044
+ disabled: xt
1045
+ }, /* @__PURE__ */ s.createElement(we, {
1046
+ onMouseEnter: (a) => {
1047
+ ue.current = !0, me(), M == null || M(a);
1048
+ },
1049
+ onMouseLeave: (a) => {
1050
+ ue.current = !1, _ == null || _(a);
1051
+ },
1052
+ className: k({
1053
+ [`${x}-${d}`]: d,
1054
+ [`${x}-disabled`]: u,
1055
+ [`${x}-ellipsis`]: V,
1056
+ [`${x}-ellipsis-single-line`]: Et,
1057
+ [`${x}-ellipsis-multiple-line`]: pe,
1058
+ [`${x}-link`]: $ === "a"
1059
+ }, r),
1060
+ classNames: H,
1061
+ styles: L,
1062
+ prefixCls: x,
1063
+ style: {
1064
+ ...o,
1065
+ WebkitLineClamp: pe ? X : void 0
1066
+ },
1067
+ component: $,
1068
+ ref: qt(i, w, t),
1069
+ direction: q,
1070
+ onClick: (a) => {
1071
+ I.includes("text") && z(a), h == null || h(a);
1072
+ },
1073
+ "aria-label": se == null ? void 0 : se.toString(),
1074
+ title: C,
1075
+ ...F
1076
+ }, /* @__PURE__ */ s.createElement(vn, {
1077
+ enableMeasure: D && !U,
1078
+ text: c,
1079
+ rows: X,
1080
+ width: Be,
1081
+ onEllipsis: vt,
1082
+ expanded: A,
1083
+ measureDeps: [Y],
1084
+ miscDeps: [Ie, A, Oe, P, K, Y, E].concat(ie(je.map((a) => e[a])))
1085
+ }, (a, v) => Cn(e, /* @__PURE__ */ s.createElement(s.Fragment, null, Y === "start" ? Ae(v) : null, a.length > 0 && v && !A && se ? /* @__PURE__ */ s.createElement("span", {
1086
+ key: "show-content",
1087
+ "aria-hidden": !0
1088
+ }, a) : a, wt(v), Y === "start" ? null : Ae(v)))))));
1089
+ }), $n = /* @__PURE__ */ s.forwardRef((e, t) => {
1090
+ const {
1091
+ ellipsis: n,
1092
+ rel: r,
1093
+ children: o,
1094
+ // @ts-expect-error: https://github.com/ant-design/ant-design/issues/26622
1095
+ navigate: l,
1096
+ ...p
1097
+ } = e;
1098
+ if (process.env.NODE_ENV !== "production") {
1099
+ const d = Ce("Typography.Link");
1100
+ process.env.NODE_ENV !== "production" && d(!ee(n), "usage", "`ellipsis` only supports boolean value.");
1101
+ }
1102
+ const f = {
1103
+ ...p,
1104
+ rel: r === void 0 && p.target === "_blank" ? "noopener noreferrer" : r
1105
+ };
1106
+ return /* @__PURE__ */ s.createElement(ae, {
1107
+ ...f,
1108
+ ref: t,
1109
+ ellipsis: !!n,
1110
+ component: "a"
1111
+ }, o);
1112
+ }), wn = /* @__PURE__ */ s.forwardRef((e, t) => {
1113
+ const {
1114
+ children: n,
1115
+ ...r
1116
+ } = e;
1117
+ return /* @__PURE__ */ s.createElement(ae, {
1118
+ ref: t,
1119
+ ...r,
1120
+ component: "div"
1121
+ }, n);
1122
+ }), Tn = /* @__PURE__ */ s.forwardRef((e, t) => {
1123
+ const {
1124
+ ellipsis: n,
1125
+ children: r,
1126
+ ...o
1127
+ } = e, l = s.useMemo(() => ee(n) ? Qe(n, ["expandable", "rows"]) : n, [n]);
1128
+ if (process.env.NODE_ENV !== "production") {
1129
+ const p = Ce("Typography.Text");
1130
+ process.env.NODE_ENV !== "production" && p(!ee(n) || !("expandable" in n) && !("rows" in n), "usage", "`ellipsis` do not support `expandable` or `rows` props.");
1131
+ }
1132
+ return /* @__PURE__ */ s.createElement(ae, {
1133
+ ref: t,
1134
+ ...o,
1135
+ ellipsis: l,
1136
+ component: "span"
1137
+ }, r);
1138
+ }), qe = [1, 2, 3, 4, 5], Rn = /* @__PURE__ */ s.forwardRef((e, t) => {
1139
+ const {
1140
+ level: n = 1,
1141
+ children: r,
1142
+ ...o
1143
+ } = e;
1144
+ if (process.env.NODE_ENV !== "production") {
1145
+ const p = Ce("Typography.Title");
1146
+ process.env.NODE_ENV !== "production" && p(qe.includes(n), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.");
1147
+ }
1148
+ const l = qe.includes(n) ? `h${n}` : "h1";
1149
+ return /* @__PURE__ */ s.createElement(ae, {
1150
+ ref: t,
1151
+ ...o,
1152
+ component: l
1153
+ }, r);
1154
+ }), le = ot;
1155
+ le.Text = Tn;
1156
+ le.Link = $n;
1157
+ le.Title = Rn;
1158
+ le.Paragraph = wn;
1159
+ export {
1160
+ et as R,
1161
+ le as T
1162
+ };