@yuku123/z-cognition-component 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist-lib/BaseInput-DHrGPDB9.js +1096 -0
  2. package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
  3. package/dist-lib/Collapse-B77SsmFh.js +523 -0
  4. package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
  5. package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
  6. package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
  7. package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
  8. package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
  9. package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
  10. package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
  11. package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.js} +1 -1
  12. package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
  13. package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
  14. package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
  15. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
  16. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
  17. package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
  18. package/dist-lib/Pagination-BJ8wnqAa.js +1112 -0
  19. package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
  20. package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
  21. package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
  22. package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-DqyspFCO.js} +1 -1
  23. package/dist-lib/Skeleton-CxFsInYI.js +671 -0
  24. package/dist-lib/Table-Civ838nE.js +20514 -0
  25. package/dist-lib/{Table-CDagah-g.js → Table-J_7eBbi7.js} +414 -414
  26. package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
  27. package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
  28. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
  29. package/dist-lib/accessAk-CA30m5eX.js +64 -0
  30. package/dist-lib/{agents-mAJW3cEN.js → agents-eZDKzePP.js} +41 -41
  31. package/dist-lib/{ai-BcYmZiRo.js → ai-CNSn3-sd.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DO7GXjG4.js → ai-chat-share-Yrqt_J6a.js} +13 -14
  33. package/dist-lib/ak-manage-DklVFT5I.js +805 -0
  34. package/dist-lib/{approval-RPDUKg9-.js → approval-B-bCSmfi.js} +25 -26
  35. package/dist-lib/{approvals-CNjxJUpR.js → approvals-B0ggYiyD.js} +42 -43
  36. package/dist-lib/{assistant-FIQQziCn.js → assistant-Of0mgMsM.js} +33 -34
  37. package/dist-lib/{assistant-history-DsEGBJnq.js → assistant-history-DcyDhUzJ.js} +5 -5
  38. package/dist-lib/{assistant-summary-B-f3k55y.js → assistant-summary-CjLaTyFz.js} +1 -1
  39. package/dist-lib/{audit-NwnH1hm5.js → audit-wDNCfmOy.js} +1 -1
  40. package/dist-lib/{bios-CRwKtcit.js → bios-CIwO1AUK.js} +128 -130
  41. package/dist-lib/callSuper-CpMOVGin.js +7 -0
  42. package/dist-lib/callSuper-CwIeyYoc.js +7 -0
  43. package/dist-lib/category-9gqNseEa.js +76 -0
  44. package/dist-lib/causal-CzAYukj9.js +789 -0
  45. package/dist-lib/{changelog-DlL5u9o4.js → changelog-CQfIMS51.js} +2 -2
  46. package/dist-lib/changelog-sKJMQrlV.js +103 -0
  47. package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
  48. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
  49. package/dist-lib/code-space-D_ZE966E.js +1070 -0
  50. package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
  51. package/dist-lib/community-9_7ExHcm.js +70 -0
  52. package/dist-lib/community-CfWXxujB.js +217 -0
  53. package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
  54. package/dist-lib/connections-Bcqsp11M.js +1065 -0
  55. package/dist-lib/context-T27uno74.js +54 -0
  56. package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
  57. package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
  58. package/dist-lib/detail-CV6xp_Jp.js +84 -0
  59. package/dist-lib/{detail-Cfb-zdr9.js → detail-DioaWKWj.js} +5847 -7224
  60. package/dist-lib/{detail-Dcfg3W8B.js → detail-EyLdjGpX.js} +71 -72
  61. package/dist-lib/development-CFcOIUKc.js +167 -0
  62. package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
  63. package/dist-lib/{downloads-MkyxiHxi.js → downloads-DtV5hOQv.js} +3 -4
  64. package/dist-lib/{edit-DLGAM-Vo.js → edit-NtXUNj5N.js} +262 -266
  65. package/dist-lib/{editor-BtiheUpe.js → editor-KZhj-rwT.js} +25 -26
  66. package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
  67. package/dist-lib/embed-mf8t3QXh.js +51841 -0
  68. package/dist-lib/embed.css +2 -2
  69. package/dist-lib/{evaluation-Dz9bUuhS.js → evaluation-CZTpC9v3.js} +14 -15
  70. package/dist-lib/execution-B6HmOA2_.js +159 -0
  71. package/dist-lib/focus-set-lt52maBX.js +38 -0
  72. package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
  73. package/dist-lib/graph-BllA9bmL.js +44 -0
  74. package/dist-lib/graph-DHV-rdiK.js +640 -0
  75. package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
  76. package/dist-lib/index-2SysmGHo.js +1166 -0
  77. package/dist-lib/{index-CJSTTgTM.js → index-3J47mTL1.js} +10 -10
  78. package/dist-lib/index-4tbtbcAt.js +550 -0
  79. package/dist-lib/index-B12ZggsE.js +77 -0
  80. package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
  81. package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
  82. package/dist-lib/index-BEO8itgt.js +566 -0
  83. package/dist-lib/index-BPbOPT2j.js +413 -0
  84. package/dist-lib/index-BVgdmf6r.js +2487 -0
  85. package/dist-lib/index-Bd7AGv4a.js +34 -0
  86. package/dist-lib/index-BkJjYgKD.js +5012 -0
  87. package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
  88. package/dist-lib/{index-BGB6NawZ.js → index-Bln3mJfp.js} +2 -2
  89. package/dist-lib/index-BoCtPJD4.js +915 -0
  90. package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
  91. package/dist-lib/index-Bs4MevzC.js +16075 -0
  92. package/dist-lib/index-BsoHetYT.js +236 -0
  93. package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
  94. package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
  95. package/dist-lib/index-C2CV4bte.js +242 -0
  96. package/dist-lib/{index-D_Qey9G8.js → index-CF0ucN_K.js} +12 -12
  97. package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
  98. package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
  99. package/dist-lib/index-CSnvcFg-.js +543 -0
  100. package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
  101. package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
  102. package/dist-lib/index-CgwK2maq.js +1987 -0
  103. package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
  104. package/dist-lib/index-CvxfA0ZK.js +215 -0
  105. package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
  106. package/dist-lib/index-D35Ry0PG.js +1162 -0
  107. package/dist-lib/{index-c2HokEFp.js → index-D6ns_Xmf.js} +10 -11
  108. package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
  109. package/dist-lib/index-DKAGVWMX.js +390 -0
  110. package/dist-lib/index-DQ16Zb7x.js +546 -0
  111. package/dist-lib/index-DRcTwC17.js +418 -0
  112. package/dist-lib/index-DU6bO95v.js +2075 -0
  113. package/dist-lib/index-DaMLYomP.js +853 -0
  114. package/dist-lib/index-Dd9pPAT3.js +2192 -0
  115. package/dist-lib/{index-DuI4K5e1.js → index-DgfIEgir.js} +29 -29
  116. package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
  117. package/dist-lib/index-DxzorPvG.js +13960 -0
  118. package/dist-lib/index-If4xc1-H.js +559 -0
  119. package/dist-lib/index-QZ9JPfVR.js +251 -0
  120. package/dist-lib/index-VeAMz0iC.js +1719 -0
  121. package/dist-lib/index-mUlorJxp.js +3279 -0
  122. package/dist-lib/{index-g16g7A4k.js → index-xQmDaKK3.js} +6 -6
  123. package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
  124. package/dist-lib/index.js +3 -4
  125. package/dist-lib/json-field-COcz5F2R.js +196 -0
  126. package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
  127. package/dist-lib/{kb-form-modal-BNoIhw6B.js → kb-form-modal-D9gnvXbE.js} +67 -67
  128. package/dist-lib/{kbTeam-EgcbWseM.js → kbTeam-CorrPJFr.js} +3 -3
  129. package/dist-lib/{knowledge-base-C023dnJ-.js → knowledge-base-DJkjMFHW.js} +103 -104
  130. package/dist-lib/{knowledge-hub-B4fGCn8m.js → knowledge-hub-DKiDlaZz.js} +54 -55
  131. package/dist-lib/login-56zv4aLO.js +36 -0
  132. package/dist-lib/{markdown-lite-EvJ9Fw7X.js → markdown-lite-p1tiuSZM.js} +198 -202
  133. package/dist-lib/material-DtPASeqq.js +204 -0
  134. package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
  135. package/dist-lib/material-original-preview-CPGjdmbe.js +214 -0
  136. package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
  137. package/dist-lib/{material-preview-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
  138. package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  139. package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
  140. package/dist-lib/{member-BUg2QYlE.js → member-Cz-OIdj9.js} +1 -1
  141. package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
  142. package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
  143. package/dist-lib/{message-GF-w8HuR.js → message-C9gfvpGg.js} +1 -1
  144. package/dist-lib/{message-Cwj8dO78.js → message-D6FhzB7J.js} +24 -25
  145. package/dist-lib/{messages-JID13L8-.js → messages-cctmEVcG.js} +15 -16
  146. package/dist-lib/meta-DT_O4zM9.js +708 -0
  147. package/dist-lib/{metrics-CT4eLzrq.js → metrics-BNeVcI8-.js} +2 -2
  148. package/dist-lib/mobile-D8kZjfQU.js +2413 -0
  149. package/dist-lib/{monitor-Bs9BfJOj.js → monitor-DTUyqumg.js} +4 -4
  150. package/dist-lib/{monitor-CmS65YSu.js → monitor-DexMYjzF.js} +8 -8
  151. package/dist-lib/{my-access-1Yj7UloI.js → my-access-DWBV6ohp.js} +120 -132
  152. package/dist-lib/{my-permissions-yQDHPLYI.js → my-permissions-B-gJZQYM.js} +22 -23
  153. package/dist-lib/navigation-DVlyWnpD.js +102 -0
  154. package/dist-lib/{new-BgkoBnZV.js → new-JmARyD88.js} +14 -15
  155. package/dist-lib/{ontology-BPrbXPor.js → ontology-B4rkO33J.js} +50 -52
  156. package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
  157. package/dist-lib/{ontology-domains-Cbqnm-po.js → ontology-domains-zxFrjn0v.js} +89 -92
  158. package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
  159. package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
  160. package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
  161. package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
  162. package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
  163. package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
  164. package/dist-lib/{ontology-scenarios-D3xy6IZL.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
  165. package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
  166. package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
  167. package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
  168. package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
  169. package/dist-lib/pages-CticGC6S.js +512 -0
  170. package/dist-lib/pages.js +3 -3
  171. package/dist-lib/{permission-fTfxpEhV.js → permission-Dq1-AOQw.js} +41 -41
  172. package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
  173. package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
  174. package/dist-lib/preset-Bp_mvsJm.js +56827 -0
  175. package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
  176. package/dist-lib/progress-CZxOOnIs.js +778 -0
  177. package/dist-lib/{quota-BlHnhkAT.js → quota-oICQRHFU.js} +4 -4
  178. package/dist-lib/row-By17TCiW.js +154 -0
  179. package/dist-lib/runs-DQTDpPaN.js +565 -0
  180. package/dist-lib/{save-blob-B-pzX8eT.js → save-blob-CwCZE1Dn.js} +2 -2
  181. package/dist-lib/{scenario-mapping-preview-DByQXh0y.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
  182. package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
  183. package/dist-lib/{schedule-H4_9KnRj.js → schedule-CwkPPSuT.js} +8 -8
  184. package/dist-lib/script-gYJAFobb.js +2709 -0
  185. package/dist-lib/{settings-C3PI8KYa.js → settings-CJd5Jj4y.js} +133 -134
  186. package/dist-lib/{shared-DqeN-Wbb.js → shared-DG5-VCDM.js} +1 -1
  187. package/dist-lib/{shared-utils-DN3zT9P-.js → shared-utils-CFHws1DA.js} +2 -2
  188. package/dist-lib/{skills-eGlCExr0.js → skills-lxpJ5Lzx.js} +39 -40
  189. package/dist-lib/{source-selection-BCvClzc-.js → source-selection-DJnQQckl.js} +16 -16
  190. package/dist-lib/sources-C83LpCcV.js +279 -0
  191. package/dist-lib/style-B5THvtDY.js +191 -0
  192. package/dist-lib/{task-config-DEJVJ7zK.js → task-config-BNYoOb79.js} +4 -4
  193. package/dist-lib/{tech-C-4uM9bS.js → tech-LuZvKDo6.js} +3 -4
  194. package/dist-lib/templates-a-kbCamr.js +58 -0
  195. package/dist-lib/tenant-login-COB-5h_2.js +338 -0
  196. package/dist-lib/{tools-le6miafZ.js → tools-CrA6GrY6.js} +14 -14
  197. package/dist-lib/{use-domain-access-B3pDp3s5.js → use-domain-access-ehGJBGvU.js} +15 -15
  198. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
  199. package/dist-lib/{use-graph-layers-Dmp7uMHO.js → use-graph-layers-CrhEeHfD.js} +48 -50
  200. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  201. package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
  202. package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
  203. package/dist-lib/{version-control-panel-WT1PobuV.js → version-control-panel-mWXkC-uB.js} +26 -27
  204. package/dist-lib/{version-management-DC0k1DRg.js → version-management-nPlG7wQO.js} +6 -7
  205. package/dist-lib/{welcome-VyWLrbth.js → welcome-Cqv1-rXT.js} +3 -4
  206. package/package.json +1 -1
  207. package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
  208. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
  209. package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
  210. package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
  211. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
  212. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
  213. package/dist-lib/Pagination-Dxslodkq.js +0 -1344
  214. package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
  215. package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
  216. package/dist-lib/Skeleton-DXcERb5r.js +0 -557
  217. package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
  218. package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
  219. package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
  220. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
  221. package/dist-lib/callSuper-DZEfdkXG.js +0 -7
  222. package/dist-lib/changelog-Dj_Pv2nc.js +0 -69
  223. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
  224. package/dist-lib/context-Buz0ggsK.js +0 -710
  225. package/dist-lib/context-DpmyNOn3.js +0 -21
  226. package/dist-lib/embed-DwLg9RDW.js +0 -31148
  227. package/dist-lib/focus-set-h0YtOUB2.js +0 -427
  228. package/dist-lib/index-CaXylbQR.js +0 -3419
  229. package/dist-lib/index-Cfu1W1H6.js +0 -535
  230. package/dist-lib/index-CrMcNEAZ.js +0 -9656
  231. package/dist-lib/index-CyKWCYMK.js +0 -218
  232. package/dist-lib/index-DBtGE89a.js +0 -168
  233. package/dist-lib/index-DjFPRXl5.js +0 -1484
  234. package/dist-lib/index-DvWHYX81.js +0 -450
  235. package/dist-lib/index-HieOUSwH.js +0 -340
  236. package/dist-lib/index-bOY1cBol.js +0 -4890
  237. package/dist-lib/meta-DPp5L3Uc.js +0 -540
  238. package/dist-lib/ontology-modeling-6k-m8fzr.js +0 -38946
  239. package/dist-lib/ontology-modeling-BT-EuDCs.js +0 -1039
  240. package/dist-lib/ontology-scenarios-DWYC2yxd.js +0 -660
  241. package/dist-lib/pages-CsexFuEz.js +0 -73
  242. package/dist-lib/row-B5MnGm9M.js +0 -156
  243. package/dist-lib/scenario-simple-form-Bw-6n9Kh.js +0 -2396
  244. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -0,0 +1,3279 @@
1
+ import { _ as U, u as At, B as it, c as Wt, i as Je, a as Jn, b as eo, p as jt, C as ct, w as Et, d as to, e as vt, P as no, f as oo, g as Xe, h as ce, j as J, D as qt, k as Gt, l as be, R as Xt, m as ke, n as dt, o as O, q as we, r as ro, s as so, t as ut, v as Te, x as he, y as mt, z as kt, A as ao, E as ft, F as He, G as le, H as Ie, I as Pe, J as lo, Z as io, K as _e, L as Oe, M as Kt, N as co, O as Ut, Q as Yt, T as uo, U as mo, V as fo, W as po, X as go, Y as Qt, $ as ho, a0 as Zt, a1 as Jt, a2 as Ae, a3 as Co, a4 as $o, a5 as bo, a6 as pt, a7 as de, a8 as St, a9 as Ke, aa as xo, ab as yo, ac as Eo, ad as We, ae as vo, af as So, ag as en, ah as No, ai as wo, aj as Io, ak as je, al as Nt, am as Po, an as wt, ao as Mo, ap as tn, aq as Ro, ar as Fo, as as nn, at as To, au as Oo, av as Vo, aw as Bo, ax as Lo, ay as Do, az as zo } from "./index-DxzorPvG.js";
2
+ import * as o from "react";
3
+ import V, { useContext as Ve, useRef as Ce, useMemo as Ho, useEffect as _o, createContext as Ao, isValidElement as Wo } from "react";
4
+ import { R as on, a as rn, b as jo, C as qo } from "./index-BVgdmf6r.js";
5
+ import "react-dom/client";
6
+ import "react-dom";
7
+ import { I as Go, c as F } from "./pages-CticGC6S.js";
8
+ import { i as Xo, a as ko, z as sn, g as Ko, u as an, T as Uo, b as ln, t as et, c as Yo, w as Qo } from "./Table-Civ838nE.js";
9
+ import { u as Zo, a as Jo, b as er, n as tr } from "./context-T27uno74.js";
10
+ import { S as nr } from "./Skeleton-CxFsInYI.js";
11
+ import { u as or, p as It } from "./index-4tbtbcAt.js";
12
+ var rr = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" };
13
+ function nt() {
14
+ return nt = Object.assign ? Object.assign.bind() : function(e) {
15
+ for (var t = 1; t < arguments.length; t++) {
16
+ var n = arguments[t];
17
+ for (var r in n)
18
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
19
+ }
20
+ return e;
21
+ }, nt.apply(this, arguments);
22
+ }
23
+ const sr = (e, t) => /* @__PURE__ */ o.createElement(Go, nt({}, e, {
24
+ ref: t,
25
+ icon: rr
26
+ })), cn = /* @__PURE__ */ o.forwardRef(sr);
27
+ process.env.NODE_ENV !== "production" && (cn.displayName = "QuestionCircleOutlined");
28
+ const ar = () => {
29
+ const [e, t] = o.useState([]), n = o.useCallback((r) => (t((s) => [].concat(U(s), [r])), () => {
30
+ t((s) => s.filter((i) => i !== r));
31
+ }), []);
32
+ return [e, n];
33
+ }, dn = (e) => {
34
+ const {
35
+ type: t,
36
+ children: n,
37
+ prefixCls: r,
38
+ buttonProps: s,
39
+ close: i,
40
+ autoFocus: d,
41
+ emitEvent: c,
42
+ isSilent: l,
43
+ quitOnNullishReturnValue: a,
44
+ actionFn: u
45
+ } = e, {
46
+ onClick: f,
47
+ ...b
48
+ } = s || {}, y = o.useRef(!1), E = o.useRef(null), [w, g] = At(!1), p = (...h) => {
49
+ i == null || i(...h);
50
+ };
51
+ o.useEffect(() => {
52
+ let h = null;
53
+ return d && (h = setTimeout(() => {
54
+ var v;
55
+ (v = E.current) == null || v.focus({
56
+ preventScroll: !0
57
+ });
58
+ })), () => {
59
+ h && clearTimeout(h);
60
+ };
61
+ }, [d]);
62
+ const x = (h) => {
63
+ Je(h) && (g(!0), h.then((...v) => {
64
+ g(!1, !0), p.apply(void 0, v), y.current = !1;
65
+ }, (v) => {
66
+ if (g(!1, !0), y.current = !1, !(l != null && l()))
67
+ return Promise.reject(v);
68
+ }));
69
+ }, m = (h) => {
70
+ if (y.current)
71
+ return;
72
+ if (y.current = !0, !u) {
73
+ p(), f == null || f(h);
74
+ return;
75
+ }
76
+ let v;
77
+ if (c) {
78
+ if (v = u(h), a && !Je(v)) {
79
+ y.current = !1, p(h), f == null || f(h);
80
+ return;
81
+ }
82
+ } else if (u.length)
83
+ v = u(i), y.current = !1;
84
+ else if (v = u(), !Je(v)) {
85
+ p(), f == null || f(h);
86
+ return;
87
+ }
88
+ f == null || f(h), x(v);
89
+ };
90
+ return /* @__PURE__ */ o.createElement(it, {
91
+ ...Wt(t),
92
+ onClick: m,
93
+ loading: w,
94
+ prefixCls: r,
95
+ ...b,
96
+ ref: E
97
+ }, n);
98
+ }, Be = /* @__PURE__ */ V.createContext({}), {
99
+ Provider: un
100
+ } = Be, Pt = () => {
101
+ const {
102
+ autoFocusButton: e,
103
+ cancelButtonProps: t,
104
+ cancelTextLocale: n,
105
+ isSilent: r,
106
+ mergedOkCancel: s,
107
+ rootPrefixCls: i,
108
+ close: d,
109
+ onCancel: c,
110
+ onConfirm: l,
111
+ onClose: a
112
+ } = Ve(Be);
113
+ return s ? /* @__PURE__ */ V.createElement(dn, {
114
+ isSilent: r,
115
+ actionFn: c,
116
+ close: (...u) => {
117
+ d == null || d(...u), l == null || l(!1), a == null || a();
118
+ },
119
+ autoFocus: e === "cancel",
120
+ buttonProps: t,
121
+ prefixCls: `${i}-btn`
122
+ }, n) : null;
123
+ }, Mt = () => {
124
+ const {
125
+ autoFocusButton: e,
126
+ close: t,
127
+ isSilent: n,
128
+ okButtonProps: r,
129
+ rootPrefixCls: s,
130
+ okTextLocale: i,
131
+ okType: d,
132
+ onConfirm: c,
133
+ onOk: l,
134
+ onClose: a
135
+ } = Ve(Be);
136
+ return /* @__PURE__ */ V.createElement(dn, {
137
+ isSilent: n,
138
+ type: d || "primary",
139
+ actionFn: l,
140
+ close: (...u) => {
141
+ t == null || t(...u), c == null || c(!0), a == null || a();
142
+ },
143
+ autoFocus: e === "ok",
144
+ buttonProps: r,
145
+ prefixCls: `${s}-btn`
146
+ }, i);
147
+ }, mn = /* @__PURE__ */ o.createContext({});
148
+ function Rt(e, t, n) {
149
+ let r = t;
150
+ return !r && n && (r = `${e}-${n}`), r;
151
+ }
152
+ function Ft(e, t) {
153
+ let n = e[`page${t ? "Y" : "X"}Offset`];
154
+ const r = `scroll${t ? "Top" : "Left"}`;
155
+ if (typeof n != "number") {
156
+ const s = e.document;
157
+ n = s.documentElement[r], typeof n != "number" && (n = s.body[r]);
158
+ }
159
+ return n;
160
+ }
161
+ function lr(e) {
162
+ const t = e.getBoundingClientRect(), n = {
163
+ left: t.left,
164
+ top: t.top
165
+ }, r = e.ownerDocument, s = r.defaultView || r.parentWindow;
166
+ return n.left += Ft(s), n.top += Ft(s, !0), n;
167
+ }
168
+ const ir = /* @__PURE__ */ o.memo(({
169
+ children: e
170
+ }) => e, (e, {
171
+ shouldUpdate: t
172
+ }) => !t);
173
+ function qe() {
174
+ return qe = Object.assign ? Object.assign.bind() : function(e) {
175
+ for (var t = 1; t < arguments.length; t++) {
176
+ var n = arguments[t];
177
+ for (var r in n)
178
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
179
+ }
180
+ return e;
181
+ }, qe.apply(this, arguments);
182
+ }
183
+ const gt = /* @__PURE__ */ V.forwardRef((e, t) => {
184
+ const {
185
+ prefixCls: n,
186
+ className: r,
187
+ style: s,
188
+ title: i,
189
+ ariaId: d,
190
+ footer: c,
191
+ closable: l,
192
+ closeIcon: a,
193
+ onClose: u,
194
+ children: f,
195
+ bodyStyle: b,
196
+ bodyProps: y,
197
+ modalRender: E,
198
+ onMouseDown: w,
199
+ onMouseUp: g,
200
+ holderRef: p,
201
+ visible: x,
202
+ forceRender: m,
203
+ width: h,
204
+ height: v,
205
+ classNames: C,
206
+ styles: $,
207
+ isFixedPos: R,
208
+ focusTrap: S
209
+ } = e, {
210
+ panel: I
211
+ } = V.useContext(mn), N = Ce(null), P = Jn(p, I, N), [M] = eo(x && R && S !== !1, () => N.current);
212
+ V.useImperativeHandle(t, () => ({
213
+ focus: () => {
214
+ var D;
215
+ (D = N.current) == null || D.focus({
216
+ preventScroll: !0
217
+ });
218
+ }
219
+ }));
220
+ const T = {};
221
+ h !== void 0 && (T.width = h), v !== void 0 && (T.height = v);
222
+ const q = c ? /* @__PURE__ */ V.createElement("div", {
223
+ className: F(`${n}-footer`, C == null ? void 0 : C.footer),
224
+ style: {
225
+ ...$ == null ? void 0 : $.footer
226
+ }
227
+ }, c) : null, _ = i ? /* @__PURE__ */ V.createElement("div", {
228
+ className: F(`${n}-header`, C == null ? void 0 : C.header),
229
+ style: {
230
+ ...$ == null ? void 0 : $.header
231
+ }
232
+ }, /* @__PURE__ */ V.createElement("div", {
233
+ className: F(`${n}-title`, C == null ? void 0 : C.title),
234
+ id: d,
235
+ style: {
236
+ ...$ == null ? void 0 : $.title
237
+ }
238
+ }, i)) : null, B = Ho(() => typeof l == "object" && l !== null ? l : l ? {
239
+ closeIcon: a ?? /* @__PURE__ */ V.createElement("span", {
240
+ className: `${n}-close-x`
241
+ })
242
+ } : {}, [l, a, n]), k = jt(B, !0), A = typeof l == "object" && l.disabled, Y = l ? /* @__PURE__ */ V.createElement("button", qe({
243
+ type: "button",
244
+ onClick: u,
245
+ "aria-label": "Close"
246
+ }, k, {
247
+ className: F(`${n}-close`, C == null ? void 0 : C.close),
248
+ disabled: A,
249
+ style: $ == null ? void 0 : $.close
250
+ }), B.closeIcon) : null, W = /* @__PURE__ */ V.createElement("div", {
251
+ className: F(`${n}-container`, C == null ? void 0 : C.container),
252
+ style: $ == null ? void 0 : $.container
253
+ }, Y, _, /* @__PURE__ */ V.createElement("div", qe({
254
+ className: F(`${n}-body`, C == null ? void 0 : C.body),
255
+ style: {
256
+ ...b,
257
+ ...$ == null ? void 0 : $.body
258
+ }
259
+ }, y), f), q);
260
+ return /* @__PURE__ */ V.createElement("div", {
261
+ key: "dialog-element",
262
+ role: "dialog",
263
+ "aria-labelledby": i ? d : null,
264
+ "aria-modal": "true",
265
+ ref: P,
266
+ style: {
267
+ ...s,
268
+ ...T
269
+ },
270
+ className: F(n, r),
271
+ onMouseDown: w,
272
+ onMouseUp: g,
273
+ tabIndex: -1,
274
+ onFocus: (D) => {
275
+ M(D.target);
276
+ }
277
+ }, /* @__PURE__ */ V.createElement(ir, {
278
+ shouldUpdate: x || m
279
+ }, E ? E(W) : W));
280
+ });
281
+ process.env.NODE_ENV !== "production" && (gt.displayName = "Panel");
282
+ function ot() {
283
+ return ot = Object.assign ? Object.assign.bind() : function(e) {
284
+ for (var t = 1; t < arguments.length; t++) {
285
+ var n = arguments[t];
286
+ for (var r in n)
287
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
288
+ }
289
+ return e;
290
+ }, ot.apply(this, arguments);
291
+ }
292
+ const fn = /* @__PURE__ */ o.forwardRef((e, t) => {
293
+ const {
294
+ prefixCls: n,
295
+ title: r,
296
+ style: s,
297
+ className: i,
298
+ visible: d,
299
+ forceRender: c,
300
+ destroyOnHidden: l,
301
+ motionName: a,
302
+ ariaId: u,
303
+ onVisibleChanged: f,
304
+ mousePosition: b
305
+ } = e, y = Ce(null), E = Ce(null);
306
+ o.useImperativeHandle(t, () => ({
307
+ ...E.current,
308
+ inMotion: y.current.inMotion,
309
+ enableMotion: y.current.enableMotion
310
+ }));
311
+ const [w, g] = o.useState(), p = {};
312
+ w && (p.transformOrigin = w);
313
+ function x() {
314
+ var h;
315
+ if (!((h = y.current) != null && h.nativeElement))
316
+ return;
317
+ const m = lr(y.current.nativeElement);
318
+ g(b && (b.x || b.y) ? `${b.x - m.left}px ${b.y - m.top}px` : "");
319
+ }
320
+ return /* @__PURE__ */ o.createElement(ct, {
321
+ visible: d,
322
+ onVisibleChanged: f,
323
+ onAppearPrepare: x,
324
+ onEnterPrepare: x,
325
+ forceRender: c,
326
+ motionName: a,
327
+ removeOnLeave: l,
328
+ ref: y
329
+ }, ({
330
+ className: m,
331
+ style: h
332
+ }, v) => /* @__PURE__ */ o.createElement(gt, ot({}, e, {
333
+ ref: E,
334
+ title: r,
335
+ ariaId: u,
336
+ prefixCls: n,
337
+ holderRef: v,
338
+ style: {
339
+ ...h,
340
+ ...s,
341
+ ...p
342
+ },
343
+ className: F(i, m)
344
+ })));
345
+ });
346
+ process.env.NODE_ENV !== "production" && (fn.displayName = "Content");
347
+ function rt() {
348
+ return rt = Object.assign ? Object.assign.bind() : function(e) {
349
+ for (var t = 1; t < arguments.length; t++) {
350
+ var n = arguments[t];
351
+ for (var r in n)
352
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
353
+ }
354
+ return e;
355
+ }, rt.apply(this, arguments);
356
+ }
357
+ const cr = (e) => {
358
+ const {
359
+ prefixCls: t,
360
+ style: n,
361
+ visible: r,
362
+ maskProps: s,
363
+ motionName: i,
364
+ className: d
365
+ } = e;
366
+ return /* @__PURE__ */ o.createElement(ct, {
367
+ key: "mask",
368
+ visible: r,
369
+ motionName: i,
370
+ leavedClassName: `${t}-mask-hidden`
371
+ }, ({
372
+ className: c,
373
+ style: l
374
+ }, a) => /* @__PURE__ */ o.createElement("div", rt({
375
+ ref: a,
376
+ style: {
377
+ ...l,
378
+ ...n
379
+ },
380
+ className: F(`${t}-mask`, c, d)
381
+ }, s)));
382
+ };
383
+ function Fe() {
384
+ return Fe = Object.assign ? Object.assign.bind() : function(e) {
385
+ for (var t = 1; t < arguments.length; t++) {
386
+ var n = arguments[t];
387
+ for (var r in n)
388
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
389
+ }
390
+ return e;
391
+ }, Fe.apply(this, arguments);
392
+ }
393
+ const dr = (e) => {
394
+ const {
395
+ prefixCls: t = "rc-dialog",
396
+ zIndex: n,
397
+ visible: r = !1,
398
+ focusTriggerAfterClose: s = !0,
399
+ wrapStyle: i,
400
+ wrapClassName: d,
401
+ wrapProps: c,
402
+ onClose: l,
403
+ afterOpenChange: a,
404
+ afterClose: u,
405
+ // Dialog
406
+ transitionName: f,
407
+ animation: b,
408
+ closable: y = !0,
409
+ // Mask
410
+ mask: E = !0,
411
+ maskTransitionName: w,
412
+ maskAnimation: g,
413
+ maskClosable: p = !0,
414
+ maskStyle: x,
415
+ maskProps: m,
416
+ rootClassName: h,
417
+ rootStyle: v,
418
+ classNames: C,
419
+ styles: $
420
+ } = e;
421
+ process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach((L) => {
422
+ Et(!(L in e), `${L} is deprecated, please use styles instead.`);
423
+ }), "wrapClassName" in e && Et(!1, "wrapClassName is deprecated, please use classNames instead."));
424
+ const R = Ce(null), S = Ce(null), I = Ce(null), [N, P] = o.useState(r), [M, T] = o.useState(!1), q = to();
425
+ function _() {
426
+ vt(S.current, document.activeElement) || (R.current = document.activeElement);
427
+ }
428
+ function B() {
429
+ var L;
430
+ vt(S.current, document.activeElement) || (L = I.current) == null || L.focus();
431
+ }
432
+ function k() {
433
+ if (P(!1), E && R.current && s) {
434
+ try {
435
+ R.current.focus({
436
+ preventScroll: !0
437
+ });
438
+ } catch {
439
+ }
440
+ R.current = null;
441
+ }
442
+ N && (u == null || u());
443
+ }
444
+ function A(L) {
445
+ L ? B() : k(), a == null || a(L);
446
+ }
447
+ function Y(L) {
448
+ l == null || l(L);
449
+ }
450
+ const W = Ce(!1);
451
+ let D = null;
452
+ p && (D = (L) => {
453
+ S.current === L.target && W.current && Y(L);
454
+ });
455
+ function Z(L) {
456
+ W.current = L.target === S.current;
457
+ }
458
+ _o(() => {
459
+ if (r) {
460
+ if (W.current = !1, P(!0), _(), S.current) {
461
+ const L = getComputedStyle(S.current);
462
+ T(L.position === "fixed");
463
+ }
464
+ } else N && I.current.enableMotion() && !I.current.inMotion() && k();
465
+ }, [r]);
466
+ const ne = {
467
+ zIndex: n,
468
+ ...i,
469
+ ...$ == null ? void 0 : $.wrapper,
470
+ display: N ? null : "none"
471
+ };
472
+ return /* @__PURE__ */ o.createElement("div", Fe({
473
+ className: F(`${t}-root`, h),
474
+ style: v
475
+ }, jt(e, {
476
+ data: !0
477
+ })), /* @__PURE__ */ o.createElement(cr, {
478
+ prefixCls: t,
479
+ visible: E && r,
480
+ motionName: Rt(t, w, g),
481
+ style: {
482
+ zIndex: n,
483
+ ...x,
484
+ ...$ == null ? void 0 : $.mask
485
+ },
486
+ maskProps: m,
487
+ className: C == null ? void 0 : C.mask
488
+ }), /* @__PURE__ */ o.createElement("div", Fe({
489
+ className: F(`${t}-wrap`, d, C == null ? void 0 : C.wrapper),
490
+ ref: S,
491
+ onClick: D,
492
+ onMouseDown: Z,
493
+ style: ne
494
+ }, c), /* @__PURE__ */ o.createElement(fn, Fe({}, e, {
495
+ isFixedPos: M,
496
+ ref: I,
497
+ closable: y,
498
+ ariaId: q,
499
+ prefixCls: t,
500
+ visible: r && N,
501
+ onClose: Y,
502
+ onVisibleChanged: A,
503
+ motionName: Rt(t, f, b)
504
+ }))));
505
+ };
506
+ function st() {
507
+ return st = Object.assign ? Object.assign.bind() : function(e) {
508
+ for (var t = 1; t < arguments.length; t++) {
509
+ var n = arguments[t];
510
+ for (var r in n)
511
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
512
+ }
513
+ return e;
514
+ }, st.apply(this, arguments);
515
+ }
516
+ const pn = (e) => {
517
+ const {
518
+ visible: t,
519
+ getContainer: n,
520
+ forceRender: r,
521
+ destroyOnHidden: s = !1,
522
+ afterClose: i,
523
+ closable: d,
524
+ panelRef: c,
525
+ keyboard: l = !0,
526
+ scrollLock: a = !0,
527
+ onClose: u
528
+ } = e, {
529
+ scrollLock: f,
530
+ ...b
531
+ } = e, [y, E] = o.useState(t), w = o.useMemo(() => ({
532
+ panel: c
533
+ }), [c]), g = ({
534
+ top: p,
535
+ event: x
536
+ }) => {
537
+ if (p && l) {
538
+ x.stopPropagation(), u == null || u(x);
539
+ return;
540
+ }
541
+ };
542
+ return o.useEffect(() => {
543
+ t && E(!0);
544
+ }, [t]), !r && s && !y ? null : /* @__PURE__ */ o.createElement(mn.Provider, {
545
+ value: w
546
+ }, /* @__PURE__ */ o.createElement(no, {
547
+ open: t || r || y,
548
+ onEsc: g,
549
+ autoDestroy: !1,
550
+ getContainer: n,
551
+ autoLock: a && (t || y)
552
+ }, /* @__PURE__ */ o.createElement(dr, st({}, b, {
553
+ destroyOnHidden: s,
554
+ afterClose: () => {
555
+ const p = d && typeof d == "object" ? d : {}, {
556
+ afterClose: x
557
+ } = p || {};
558
+ x == null || x(), i == null || i(), E(!1);
559
+ }
560
+ }))));
561
+ };
562
+ process.env.NODE_ENV !== "production" && (pn.displayName = "Dialog");
563
+ const ur = () => oo() && window.document.documentElement, Tt = () => {
564
+ const {
565
+ cancelButtonProps: e,
566
+ cancelTextLocale: t,
567
+ onCancel: n
568
+ } = Ve(Be), r = (s) => {
569
+ var i;
570
+ n == null || n(s), (i = e == null ? void 0 : e.onClick) == null || i.call(e, s);
571
+ };
572
+ return /* @__PURE__ */ V.createElement(it, {
573
+ ...e,
574
+ onClick: r
575
+ }, t);
576
+ }, Ot = () => {
577
+ const {
578
+ confirmLoading: e,
579
+ okButtonProps: t,
580
+ okType: n,
581
+ okTextLocale: r,
582
+ onOk: s
583
+ } = Ve(Be), i = (d) => {
584
+ var c;
585
+ s == null || s(d), (c = t == null ? void 0 : t.onClick) == null || c.call(t, d);
586
+ };
587
+ return /* @__PURE__ */ V.createElement(it, {
588
+ ...Wt(n),
589
+ loading: e,
590
+ ...t,
591
+ onClick: i
592
+ }, r);
593
+ };
594
+ function gn(e, t) {
595
+ return /* @__PURE__ */ V.createElement("span", {
596
+ className: `${e}-close-x`
597
+ }, be(t) ? t : /* @__PURE__ */ V.createElement(Xt, {
598
+ className: `${e}-close-icon`
599
+ }));
600
+ }
601
+ const hn = (e) => {
602
+ const {
603
+ okText: t,
604
+ okType: n = "primary",
605
+ cancelText: r,
606
+ confirmLoading: s,
607
+ onOk: i,
608
+ onCancel: d,
609
+ okButtonProps: c,
610
+ cancelButtonProps: l,
611
+ footer: a
612
+ } = e, [u] = Xe("Modal", Gt()), f = ce(t, u == null ? void 0 : u.okText), b = ce(r, u == null ? void 0 : u.cancelText), y = V.useMemo(() => ({
613
+ confirmLoading: s,
614
+ okButtonProps: c,
615
+ cancelButtonProps: l,
616
+ okTextLocale: f,
617
+ cancelTextLocale: b,
618
+ okType: n,
619
+ onOk: i,
620
+ onCancel: d
621
+ }), [s, c, l, f, b, n, i, d]);
622
+ let E;
623
+ return J(a) || typeof a > "u" ? (E = /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement(Tt, null), /* @__PURE__ */ V.createElement(Ot, null)), J(a) && (E = a(E, {
624
+ OkBtn: Ot,
625
+ CancelBtn: Tt
626
+ })), E = /* @__PURE__ */ V.createElement(un, {
627
+ value: y
628
+ }, E)) : E = a, /* @__PURE__ */ V.createElement(qt, {
629
+ disabled: !1
630
+ }, E);
631
+ }, mr = (e) => {
632
+ const {
633
+ componentCls: t
634
+ } = e;
635
+ return {
636
+ // Grid system
637
+ [t]: {
638
+ display: "flex",
639
+ flexFlow: "row wrap",
640
+ minWidth: 0,
641
+ "&::before, &::after": {
642
+ display: "flex"
643
+ },
644
+ "&-no-wrap": {
645
+ flexWrap: "nowrap"
646
+ },
647
+ // The origin of the X-axis
648
+ "&-start": {
649
+ justifyContent: "flex-start"
650
+ },
651
+ // The center of the X-axis
652
+ "&-center": {
653
+ justifyContent: "center"
654
+ },
655
+ // The opposite of the X-axis
656
+ "&-end": {
657
+ justifyContent: "flex-end"
658
+ },
659
+ "&-space-between": {
660
+ justifyContent: "space-between"
661
+ },
662
+ "&-space-around": {
663
+ justifyContent: "space-around"
664
+ },
665
+ "&-space-evenly": {
666
+ justifyContent: "space-evenly"
667
+ },
668
+ // Align at the top
669
+ "&-top": {
670
+ alignItems: "flex-start"
671
+ },
672
+ // Align at the center
673
+ "&-middle": {
674
+ alignItems: "center"
675
+ },
676
+ "&-bottom": {
677
+ alignItems: "flex-end"
678
+ }
679
+ }
680
+ };
681
+ }, fr = (e) => {
682
+ const {
683
+ componentCls: t
684
+ } = e;
685
+ return {
686
+ // Grid system
687
+ [t]: {
688
+ position: "relative",
689
+ maxWidth: "100%",
690
+ // Prevent columns from collapsing when empty
691
+ minHeight: 1
692
+ }
693
+ };
694
+ }, pr = (e, t) => {
695
+ const {
696
+ componentCls: n,
697
+ gridColumns: r,
698
+ antCls: s
699
+ } = e, [i, d] = we(s, "grid"), [, c] = we(s, "col"), l = {};
700
+ for (let a = r; a >= 0; a--)
701
+ a === 0 ? (l[`${n}${t}-${a}`] = {
702
+ display: "none"
703
+ }, l[`${n}-push-${a}`] = {
704
+ insetInlineStart: "auto"
705
+ }, l[`${n}-pull-${a}`] = {
706
+ insetInlineEnd: "auto"
707
+ }, l[`${n}${t}-push-${a}`] = {
708
+ insetInlineStart: "auto"
709
+ }, l[`${n}${t}-pull-${a}`] = {
710
+ insetInlineEnd: "auto"
711
+ }, l[`${n}${t}-offset-${a}`] = {
712
+ marginInlineStart: 0
713
+ }, l[`${n}${t}-order-${a}`] = {
714
+ order: 0
715
+ }) : (l[`${n}${t}-${a}`] = [
716
+ // https://github.com/ant-design/ant-design/issues/44456
717
+ // Form set `display: flex` on Col which will override `display: block`.
718
+ // Let's get it from css variable to support override.
719
+ {
720
+ [i("display")]: "block",
721
+ // Fallback to display if variable not support
722
+ display: "block"
723
+ },
724
+ {
725
+ display: d("display"),
726
+ flex: `0 0 ${a / r * 100}%`,
727
+ maxWidth: `${a / r * 100}%`
728
+ }
729
+ ], l[`${n}${t}-push-${a}`] = {
730
+ insetInlineStart: `${a / r * 100}%`
731
+ }, l[`${n}${t}-pull-${a}`] = {
732
+ insetInlineEnd: `${a / r * 100}%`
733
+ }, l[`${n}${t}-offset-${a}`] = {
734
+ marginInlineStart: `${a / r * 100}%`
735
+ }, l[`${n}${t}-order-${a}`] = {
736
+ order: a
737
+ });
738
+ return l[`${n}${t}-flex`] = {
739
+ flex: c(`${t.replace(/-/, "")}-flex`)
740
+ }, l;
741
+ }, at = (e, t) => pr(e, t), gr = (e, t, n) => ({
742
+ [`@media (min-width: ${O(t)})`]: {
743
+ ...at(e, n)
744
+ }
745
+ }), hr = () => ({}), Cr = () => ({}), $r = ke("Grid", mr, hr), Cn = (e) => ({
746
+ xs: e.screenXSMin,
747
+ sm: e.screenSMMin,
748
+ md: e.screenMDMin,
749
+ lg: e.screenLGMin,
750
+ xl: e.screenXLMin,
751
+ xxl: e.screenXXLMin,
752
+ xxxl: e.screenXXXLMin
753
+ }), br = ke("Grid", (e) => {
754
+ const t = dt(e, {
755
+ gridColumns: 24
756
+ // Row is divided into 24 parts in Grid
757
+ }), n = Cn(t);
758
+ return delete n.xs, [fr(t), at(t, ""), at(t, "-xs"), Object.keys(n).map((r) => gr(t, n[r], `-${r}`)).reduce((r, s) => ({
759
+ ...r,
760
+ ...s
761
+ }), {})];
762
+ }, Cr);
763
+ function Vt(e) {
764
+ return {
765
+ position: e,
766
+ inset: 0
767
+ };
768
+ }
769
+ const xr = (e) => {
770
+ const {
771
+ componentCls: t,
772
+ antCls: n
773
+ } = e;
774
+ return [{
775
+ [`${t}-root`]: {
776
+ [`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]: {
777
+ // reset scale avoid mousePosition bug
778
+ transform: "none",
779
+ opacity: 0,
780
+ animationDuration: e.motionDurationSlow,
781
+ // https://github.com/ant-design/ant-design/issues/11777
782
+ userSelect: "none"
783
+ },
784
+ // https://github.com/ant-design/ant-design/issues/37329
785
+ // https://github.com/ant-design/ant-design/issues/40272
786
+ [`${t}${n}-zoom-leave ${t}-container`]: {
787
+ pointerEvents: "none"
788
+ },
789
+ [`${t}-mask`]: {
790
+ ...Vt("fixed"),
791
+ zIndex: e.zIndexPopupBase,
792
+ height: "100%",
793
+ backgroundColor: e.colorBgMask,
794
+ pointerEvents: "none",
795
+ [`&${t}-mask-blur`]: {
796
+ backdropFilter: "blur(4px)"
797
+ },
798
+ [`${t}-hidden`]: {
799
+ display: "none"
800
+ }
801
+ },
802
+ [`${t}-wrap`]: {
803
+ ...Vt("fixed"),
804
+ zIndex: e.zIndexPopupBase,
805
+ overflow: "auto",
806
+ outline: 0,
807
+ WebkitOverflowScrolling: "touch"
808
+ }
809
+ }
810
+ }, {
811
+ [`${t}-root`]: ko(e)
812
+ }];
813
+ }, yr = (e) => {
814
+ const {
815
+ componentCls: t,
816
+ motionDurationMid: n
817
+ } = e;
818
+ return [
819
+ // ======================== Root =========================
820
+ {
821
+ [`${t}-root`]: {
822
+ [`${t}-wrap-rtl`]: {
823
+ direction: "rtl"
824
+ },
825
+ [`${t}-centered`]: {
826
+ textAlign: "center",
827
+ "&::before": {
828
+ display: "inline-block",
829
+ width: 0,
830
+ height: "100%",
831
+ verticalAlign: "middle",
832
+ content: '""'
833
+ },
834
+ [t]: {
835
+ top: 0,
836
+ display: "inline-block",
837
+ paddingBottom: 0,
838
+ textAlign: "start",
839
+ verticalAlign: "middle"
840
+ }
841
+ },
842
+ [`@media (max-width: ${e.screenSMMax}px)`]: {
843
+ [t]: {
844
+ maxWidth: "calc(100vw - 16px)",
845
+ margin: `${O(e.marginXS)} auto`
846
+ },
847
+ [`${t}-centered`]: {
848
+ [t]: {
849
+ flex: 1
850
+ }
851
+ }
852
+ }
853
+ }
854
+ },
855
+ // ======================== Modal ========================
856
+ {
857
+ [t]: {
858
+ ...ut(e),
859
+ pointerEvents: "none",
860
+ position: "relative",
861
+ top: 100,
862
+ width: "auto",
863
+ maxWidth: `calc(100vw - ${O(e.calc(e.margin).mul(2).equal())})`,
864
+ margin: "0 auto",
865
+ "&:focus-visible": {
866
+ borderRadius: e.borderRadiusLG,
867
+ ...so(e)
868
+ },
869
+ [`${t}-title`]: {
870
+ margin: 0,
871
+ color: e.titleColor,
872
+ fontWeight: e.fontWeightStrong,
873
+ fontSize: e.titleFontSize,
874
+ lineHeight: e.titleLineHeight,
875
+ wordWrap: "break-word"
876
+ },
877
+ [`${t}-container`]: {
878
+ position: "relative",
879
+ backgroundColor: e.contentBg,
880
+ backgroundClip: "padding-box",
881
+ border: 0,
882
+ borderRadius: e.borderRadiusLG,
883
+ boxShadow: e.boxShadow,
884
+ pointerEvents: "auto",
885
+ padding: e.contentPadding
886
+ },
887
+ [`${t}-close`]: {
888
+ position: "absolute",
889
+ top: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
890
+ insetInlineEnd: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
891
+ zIndex: e.calc(e.zIndexPopupBase).add(10).equal(),
892
+ padding: 0,
893
+ color: e.modalCloseIconColor,
894
+ fontWeight: e.fontWeightStrong,
895
+ lineHeight: 1,
896
+ textDecoration: "none",
897
+ background: "transparent",
898
+ borderRadius: e.borderRadiusSM,
899
+ width: e.modalCloseBtnSize,
900
+ height: e.modalCloseBtnSize,
901
+ border: 0,
902
+ outline: 0,
903
+ cursor: "pointer",
904
+ transition: ["color", "background-color"].map((r) => `${r} ${n}`).join(", "),
905
+ "&-x": {
906
+ display: "flex",
907
+ fontSize: e.fontSizeLG,
908
+ fontStyle: "normal",
909
+ lineHeight: O(e.modalCloseBtnSize),
910
+ justifyContent: "center",
911
+ textTransform: "none",
912
+ textRendering: "auto"
913
+ },
914
+ "&:disabled": {
915
+ pointerEvents: "none"
916
+ },
917
+ "&:hover": {
918
+ color: e.modalCloseIconHoverColor,
919
+ backgroundColor: e.colorBgTextHover,
920
+ textDecoration: "none"
921
+ },
922
+ "&:active": {
923
+ backgroundColor: e.colorBgTextActive
924
+ },
925
+ ...ro(e)
926
+ },
927
+ [`${t}-header`]: {
928
+ color: e.colorText,
929
+ background: e.headerBg,
930
+ borderRadius: `${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)} 0 0`,
931
+ marginBottom: e.headerMarginBottom,
932
+ padding: e.headerPadding,
933
+ borderBottom: e.headerBorderBottom
934
+ },
935
+ [`${t}-body`]: {
936
+ fontSize: e.fontSize,
937
+ lineHeight: e.lineHeight,
938
+ wordWrap: "break-word",
939
+ padding: e.bodyPadding,
940
+ [`${t}-body-skeleton`]: {
941
+ width: "100%",
942
+ height: "100%",
943
+ display: "flex",
944
+ justifyContent: "center",
945
+ alignItems: "center",
946
+ margin: `${O(e.margin)} auto`
947
+ }
948
+ },
949
+ [`${t}-footer`]: {
950
+ textAlign: "end",
951
+ background: e.footerBg,
952
+ marginTop: e.footerMarginTop,
953
+ padding: e.footerPadding,
954
+ borderTop: e.footerBorderTop,
955
+ borderRadius: e.footerBorderRadius,
956
+ [`> ${e.antCls}-btn + ${e.antCls}-btn`]: {
957
+ marginInlineStart: e.marginXS
958
+ }
959
+ },
960
+ [`${t}-open`]: {
961
+ overflow: "hidden"
962
+ }
963
+ }
964
+ },
965
+ // ======================== Pure =========================
966
+ {
967
+ [`${t}-pure-panel`]: {
968
+ top: "auto",
969
+ padding: 0,
970
+ display: "flex",
971
+ flexDirection: "column",
972
+ [`${t}-container,
973
+ ${t}-body,
974
+ ${t}-confirm-body-wrapper`]: {
975
+ display: "flex",
976
+ flexDirection: "column",
977
+ flex: "auto"
978
+ },
979
+ [`${t}-confirm-body`]: {
980
+ marginBottom: "auto"
981
+ }
982
+ }
983
+ }
984
+ ];
985
+ }, Er = (e) => {
986
+ const {
987
+ componentCls: t
988
+ } = e;
989
+ return {
990
+ [`${t}-root`]: {
991
+ [`${t}-wrap-rtl`]: {
992
+ direction: "rtl",
993
+ [`${t}-confirm-body`]: {
994
+ direction: "rtl"
995
+ }
996
+ }
997
+ }
998
+ };
999
+ }, vr = (e) => {
1000
+ const {
1001
+ componentCls: t
1002
+ } = e, n = Cn(e), r = {
1003
+ ...n
1004
+ };
1005
+ delete r.xs;
1006
+ const s = `--${t.replace(".", "")}-`, i = Object.keys(r).map((d) => ({
1007
+ [`@media (min-width: ${O(r[d])})`]: {
1008
+ width: `var(${s}${d}-width)`
1009
+ }
1010
+ }));
1011
+ return {
1012
+ [`${t}-root`]: {
1013
+ [t]: [].concat(U(Object.keys(n).map((d, c) => {
1014
+ const l = Object.keys(n)[c - 1];
1015
+ return l ? {
1016
+ [`${s}${d}-width`]: `var(${s}${l}-width)`
1017
+ } : null;
1018
+ })), [{
1019
+ width: `var(${s}xs-width)`
1020
+ }], U(i))
1021
+ }
1022
+ };
1023
+ }, $n = (e) => {
1024
+ const t = e.padding, n = e.fontSizeHeading5, r = e.lineHeightHeading5;
1025
+ return dt(e, {
1026
+ modalHeaderHeight: e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),
1027
+ modalFooterBorderColorSplit: e.colorSplit,
1028
+ modalFooterBorderStyle: e.lineType,
1029
+ modalFooterBorderWidth: e.lineWidth,
1030
+ modalCloseIconColor: e.colorIcon,
1031
+ modalCloseIconHoverColor: e.colorIconHover,
1032
+ modalCloseBtnSize: e.controlHeight,
1033
+ modalConfirmIconSize: e.fontHeight,
1034
+ modalTitleHeight: e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()
1035
+ });
1036
+ }, bn = (e) => ({
1037
+ footerBg: "transparent",
1038
+ headerBg: "transparent",
1039
+ titleLineHeight: e.lineHeightHeading5,
1040
+ titleFontSize: e.fontSizeHeading5,
1041
+ contentBg: e.colorBgElevated,
1042
+ titleColor: e.colorTextHeading,
1043
+ // internal
1044
+ contentPadding: e.wireframe ? 0 : `${O(e.paddingMD)} ${O(e.paddingContentHorizontalLG)}`,
1045
+ headerPadding: e.wireframe ? `${O(e.padding)} ${O(e.paddingLG)}` : 0,
1046
+ headerBorderBottom: e.wireframe ? `${O(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none",
1047
+ headerMarginBottom: e.wireframe ? 0 : e.marginXS,
1048
+ bodyPadding: e.wireframe ? e.paddingLG : 0,
1049
+ footerPadding: e.wireframe ? `${O(e.paddingXS)} ${O(e.padding)}` : 0,
1050
+ footerBorderTop: e.wireframe ? `${O(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none",
1051
+ footerBorderRadius: e.wireframe ? `0 0 ${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)}` : 0,
1052
+ footerMarginTop: e.wireframe ? 0 : e.marginSM,
1053
+ confirmBodyPadding: e.wireframe ? `${O(e.padding * 2)} ${O(e.padding * 2)} ${O(e.paddingLG)}` : 0,
1054
+ confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM,
1055
+ confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM,
1056
+ mask: !0
1057
+ }), xn = ke("Modal", (e) => {
1058
+ const t = $n(e);
1059
+ return [yr(t), Er(t), xr(t), Xo(t, "zoom"), vr(t)];
1060
+ }, bn, {
1061
+ unitless: {
1062
+ titleLineHeight: !0
1063
+ }
1064
+ });
1065
+ let lt;
1066
+ const Sr = (e) => {
1067
+ lt = {
1068
+ x: e.pageX,
1069
+ y: e.pageY
1070
+ }, setTimeout(() => {
1071
+ lt = null;
1072
+ }, 100);
1073
+ };
1074
+ ur() && document.documentElement.addEventListener("click", Sr, !0);
1075
+ const yn = (e) => {
1076
+ const {
1077
+ prefixCls: t,
1078
+ className: n,
1079
+ rootClassName: r,
1080
+ open: s,
1081
+ wrapClassName: i,
1082
+ centered: d,
1083
+ getContainer: c,
1084
+ style: l,
1085
+ width: a = 520,
1086
+ footer: u,
1087
+ classNames: f,
1088
+ styles: b,
1089
+ children: y,
1090
+ loading: E,
1091
+ confirmLoading: w,
1092
+ zIndex: g,
1093
+ mousePosition: p,
1094
+ onOk: x,
1095
+ onCancel: m,
1096
+ okButtonProps: h,
1097
+ cancelButtonProps: v,
1098
+ destroyOnHidden: C,
1099
+ destroyOnClose: $,
1100
+ panelRef: R = null,
1101
+ closable: S,
1102
+ mask: I,
1103
+ modalRender: N,
1104
+ maskClosable: P,
1105
+ _semanticOmit: M,
1106
+ scrollLock: T,
1107
+ // Focusable
1108
+ focusTriggerAfterClose: q,
1109
+ focusable: _,
1110
+ _renderSemanticContent: B,
1111
+ ...k
1112
+ } = e, {
1113
+ getPopupContainer: A,
1114
+ getPrefixCls: Y,
1115
+ direction: W,
1116
+ className: D,
1117
+ style: Z,
1118
+ classNames: ne,
1119
+ styles: L,
1120
+ centered: se,
1121
+ cancelButtonProps: H,
1122
+ okButtonProps: K,
1123
+ mask: z,
1124
+ focusable: ee
1125
+ } = Te("modal"), {
1126
+ modal: ae
1127
+ } = o.useContext(he), [ue, te] = o.useMemo(() => typeof S == "boolean" ? [void 0, void 0] : [S == null ? void 0 : S.afterClose, S == null ? void 0 : S.onClose], [S]), G = Y("modal", t), j = Y(), [Q, me, ye] = Zo(I, z, G, P), X = Jo({
1128
+ ...ee,
1129
+ ..._
1130
+ }, Q, q), fe = (re) => {
1131
+ w || (m == null || m(re), te == null || te());
1132
+ }, Ee = (re) => {
1133
+ x == null || x(re), te == null || te();
1134
+ };
1135
+ if (process.env.NODE_ENV !== "production") {
1136
+ const re = mt("Modal");
1137
+ [["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"], ["destroyOnClose", "destroyOnHidden"], ["autoFocusButton", "focusable.autoFocusButton"], ["focusTriggerAfterClose", "focusable.focusTriggerAfterClose"], ["maskClosable", "mask.closable"]].forEach(([Re, Se]) => {
1138
+ re.deprecated(!(Re in e), Re, Se);
1139
+ });
1140
+ }
1141
+ const pe = Oe(G), [ge, Ue] = xn(G, pe), oe = F(i, {
1142
+ [`${G}-centered`]: d ?? se,
1143
+ [`${G}-wrap-rtl`]: W === "rtl"
1144
+ }), ve = u !== null && !E ? /* @__PURE__ */ o.createElement(hn, {
1145
+ ...e,
1146
+ okButtonProps: {
1147
+ ...K,
1148
+ ...h
1149
+ },
1150
+ onOk: Ee,
1151
+ cancelButtonProps: {
1152
+ ...H,
1153
+ ...v
1154
+ },
1155
+ onCancel: fe
1156
+ }) : null, [Me, bt, An, Wn] = or(It(e), It(ae), {
1157
+ closable: !0,
1158
+ closeIcon: /* @__PURE__ */ o.createElement(Xt, {
1159
+ className: `${G}-close-icon`
1160
+ }),
1161
+ closeIconRender: (re) => gn(G, re)
1162
+ }), jn = Me ? {
1163
+ disabled: An,
1164
+ closeIcon: bt,
1165
+ afterClose: ue,
1166
+ ...Wn
1167
+ } : !1, qn = N ? (re) => /* @__PURE__ */ o.createElement("div", {
1168
+ className: `${G}-render`
1169
+ }, N(re)) : void 0, Gn = `.${G}-${N ? "render" : "container"}`, Xn = er(Gn), kn = kt(R, Xn), [xt, Kn] = ao("Modal", g), Un = {
1170
+ ...e,
1171
+ width: a,
1172
+ panelRef: R,
1173
+ focusTriggerAfterClose: X.focusTriggerAfterClose,
1174
+ focusable: X,
1175
+ mask: Q,
1176
+ maskClosable: ye,
1177
+ zIndex: xt
1178
+ }, [Ye, Qe] = ft([ne, f, me], [L, b], {
1179
+ props: Un
1180
+ }), Ze = M ? He(Ye, M) : Ye, yt = M ? He(Qe, M) : Qe, Yn = B ? B({
1181
+ classNames: Ye,
1182
+ styles: Qe
1183
+ }) : y, [Qn, De] = o.useMemo(() => le(a) ? [void 0, a] : [a, void 0], [a]), Zn = o.useMemo(() => {
1184
+ const re = {};
1185
+ return De && Object.keys(De).forEach((Re) => {
1186
+ const Se = De[Re];
1187
+ Ie(Se) && (re[`--${G}-${Re}-width`] = Pe(Se) ? `${Se}px` : Se);
1188
+ }), re;
1189
+ }, [G, De]);
1190
+ return /* @__PURE__ */ o.createElement(lo, {
1191
+ form: !0,
1192
+ space: !0
1193
+ }, /* @__PURE__ */ o.createElement(io.Provider, {
1194
+ value: Kn
1195
+ }, /* @__PURE__ */ o.createElement(pn, {
1196
+ width: Qn,
1197
+ ...k,
1198
+ zIndex: xt,
1199
+ getContainer: c === void 0 ? A : c,
1200
+ prefixCls: G,
1201
+ rootClassName: F(ge, r, Ue, pe, Ze.root),
1202
+ rootStyle: yt.root,
1203
+ footer: ve,
1204
+ visible: s,
1205
+ mousePosition: p ?? lt,
1206
+ onClose: fe,
1207
+ closable: jn,
1208
+ closeIcon: bt,
1209
+ transitionName: _e(j, "zoom", e.transitionName),
1210
+ maskTransitionName: _e(j, "fade", e.maskTransitionName),
1211
+ mask: Q,
1212
+ maskClosable: ye,
1213
+ scrollLock: T,
1214
+ className: F(ge, n, D),
1215
+ style: {
1216
+ ...Z,
1217
+ ...l,
1218
+ ...Zn
1219
+ },
1220
+ classNames: {
1221
+ ...Ze,
1222
+ wrapper: F(Ze.wrapper, oe)
1223
+ },
1224
+ styles: yt,
1225
+ panelRef: kn,
1226
+ destroyOnHidden: C ?? $,
1227
+ modalRender: qn,
1228
+ // Focusable
1229
+ focusTriggerAfterClose: X.focusTriggerAfterClose,
1230
+ focusTrap: X.trap
1231
+ }, E ? /* @__PURE__ */ o.createElement(nr, {
1232
+ active: !0,
1233
+ title: !1,
1234
+ paragraph: {
1235
+ rows: 4
1236
+ },
1237
+ className: `${G}-body-skeleton`
1238
+ }) : Yn)));
1239
+ }, Nr = (e) => {
1240
+ const {
1241
+ componentCls: t,
1242
+ titleFontSize: n,
1243
+ titleLineHeight: r,
1244
+ modalConfirmIconSize: s,
1245
+ fontSize: i,
1246
+ lineHeight: d,
1247
+ modalTitleHeight: c,
1248
+ fontHeight: l,
1249
+ confirmBodyPadding: a
1250
+ } = e, u = `${t}-confirm`;
1251
+ return {
1252
+ [u]: {
1253
+ "&-rtl": {
1254
+ direction: "rtl"
1255
+ },
1256
+ [`${e.antCls}-modal-header`]: {
1257
+ display: "none"
1258
+ },
1259
+ [`${u}-body-wrapper`]: {
1260
+ ...co()
1261
+ },
1262
+ [`&${t} ${t}-body`]: {
1263
+ padding: a
1264
+ },
1265
+ // ====================== Body ======================
1266
+ [`${u}-body`]: {
1267
+ display: "flex",
1268
+ flexWrap: "nowrap",
1269
+ alignItems: "start",
1270
+ [`> ${e.iconCls}`]: {
1271
+ flex: "none",
1272
+ fontSize: s,
1273
+ marginInlineEnd: e.confirmIconMarginInlineEnd,
1274
+ marginTop: e.calc(e.calc(l).sub(s).equal()).div(2).equal()
1275
+ },
1276
+ [`&-has-title > ${e.iconCls}`]: {
1277
+ marginTop: e.calc(e.calc(c).sub(s).equal()).div(2).equal()
1278
+ }
1279
+ },
1280
+ [`${u}-paragraph`]: {
1281
+ display: "flex",
1282
+ flexDirection: "column",
1283
+ flex: "auto",
1284
+ rowGap: e.marginXS,
1285
+ // https://github.com/ant-design/ant-design/issues/51912
1286
+ maxWidth: `calc(100% - ${O(e.marginSM)})`
1287
+ },
1288
+ [`${u}-body-no-icon ${u}-paragraph`]: {
1289
+ maxWidth: "100%"
1290
+ },
1291
+ // https://github.com/ant-design/ant-design/issues/48159
1292
+ [`${e.iconCls} + ${u}-paragraph`]: {
1293
+ maxWidth: `calc(100% - ${O(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`
1294
+ },
1295
+ [`${u}-title`]: {
1296
+ color: e.colorTextHeading,
1297
+ fontWeight: e.fontWeightStrong,
1298
+ fontSize: n,
1299
+ lineHeight: r
1300
+ },
1301
+ [`${u}-content`]: {
1302
+ color: e.colorText,
1303
+ fontSize: i,
1304
+ lineHeight: d
1305
+ },
1306
+ // ===================== Footer =====================
1307
+ [`${u}-btns`]: {
1308
+ textAlign: "end",
1309
+ marginTop: e.confirmBtnsMarginTop,
1310
+ [`${e.antCls}-btn + ${e.antCls}-btn`]: {
1311
+ marginBottom: 0,
1312
+ marginInlineStart: e.marginXS
1313
+ }
1314
+ }
1315
+ },
1316
+ [`${u}-error ${u}-body > ${e.iconCls}`]: {
1317
+ color: e.colorError
1318
+ },
1319
+ [`${u}-warning ${u}-body > ${e.iconCls},
1320
+ ${u}-confirm ${u}-body > ${e.iconCls}`]: {
1321
+ color: e.colorWarning
1322
+ },
1323
+ [`${u}-info ${u}-body > ${e.iconCls}`]: {
1324
+ color: e.colorInfo
1325
+ },
1326
+ [`${u}-success ${u}-body > ${e.iconCls}`]: {
1327
+ color: e.colorSuccess
1328
+ }
1329
+ };
1330
+ }, wr = Kt(["Modal", "confirm"], (e) => {
1331
+ const t = $n(e);
1332
+ return Nr(t);
1333
+ }, bn, {
1334
+ // confirm is weak than modal since no conflict here
1335
+ order: -1e3
1336
+ }), Ir = ["body"], En = (e) => {
1337
+ const {
1338
+ prefixCls: t,
1339
+ icon: n,
1340
+ okText: r,
1341
+ cancelText: s,
1342
+ confirmPrefixCls: i,
1343
+ type: d,
1344
+ okCancel: c,
1345
+ footer: l,
1346
+ // Legacy for static function usage
1347
+ locale: a,
1348
+ autoFocusButton: u,
1349
+ focusable: f,
1350
+ contentClassName: b,
1351
+ contentStyle: y,
1352
+ ...E
1353
+ } = e, {
1354
+ infoIcon: w,
1355
+ successIcon: g,
1356
+ errorIcon: p,
1357
+ warningIcon: x
1358
+ } = Te("modal");
1359
+ if (process.env.NODE_ENV !== "production") {
1360
+ const B = mt("Modal");
1361
+ process.env.NODE_ENV !== "production" && B(!(typeof n == "string" && n.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`);
1362
+ }
1363
+ let m = n;
1364
+ if (n === void 0)
1365
+ switch (d) {
1366
+ case "info":
1367
+ m = ce(w, /* @__PURE__ */ o.createElement(jo, null));
1368
+ break;
1369
+ case "success":
1370
+ m = ce(g, /* @__PURE__ */ o.createElement(rn, null));
1371
+ break;
1372
+ case "error":
1373
+ m = ce(p, /* @__PURE__ */ o.createElement(Ut, null));
1374
+ break;
1375
+ default:
1376
+ m = ce(x, /* @__PURE__ */ o.createElement(on, null));
1377
+ }
1378
+ const h = c ?? d === "confirm", v = o.useMemo(() => {
1379
+ const B = (f == null ? void 0 : f.autoFocusButton) || u;
1380
+ return B || B === null ? B : "ok";
1381
+ }, [u, f == null ? void 0 : f.autoFocusButton]), [C] = Xe("Modal"), $ = a || C, R = ce(r, h ? $ == null ? void 0 : $.okText : $ == null ? void 0 : $.justOkText), S = ce(s, $ == null ? void 0 : $.cancelText), {
1382
+ closable: I
1383
+ } = E, {
1384
+ onClose: N
1385
+ } = le(I) ? I : {}, P = o.useMemo(() => ({
1386
+ autoFocusButton: v,
1387
+ cancelTextLocale: S,
1388
+ okTextLocale: R,
1389
+ mergedOkCancel: h,
1390
+ onClose: N,
1391
+ ...E
1392
+ }), [v, S, R, h, N, E]), M = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(Pt, null), /* @__PURE__ */ o.createElement(Mt, null)), T = be(e.title), q = be(m), _ = `${i}-body`;
1393
+ return /* @__PURE__ */ o.createElement("div", {
1394
+ className: `${i}-body-wrapper`
1395
+ }, /* @__PURE__ */ o.createElement("div", {
1396
+ className: F(_, {
1397
+ [`${_}-has-title`]: T,
1398
+ [`${_}-no-icon`]: !q
1399
+ })
1400
+ }, m, /* @__PURE__ */ o.createElement("div", {
1401
+ className: `${i}-paragraph`
1402
+ }, T && /* @__PURE__ */ o.createElement("span", {
1403
+ className: `${i}-title`
1404
+ }, e.title), /* @__PURE__ */ o.createElement("div", {
1405
+ className: F(`${i}-content`, b),
1406
+ style: y
1407
+ }, e.content))), l === void 0 || J(l) ? /* @__PURE__ */ o.createElement(un, {
1408
+ value: P
1409
+ }, /* @__PURE__ */ o.createElement("div", {
1410
+ className: `${i}-btns`
1411
+ }, J(l) ? l(M, {
1412
+ OkBtn: Mt,
1413
+ CancelBtn: Pt
1414
+ }) : M)) : l, /* @__PURE__ */ o.createElement(wr, {
1415
+ prefixCls: t
1416
+ }));
1417
+ }, vn = (e) => {
1418
+ const {
1419
+ close: t,
1420
+ zIndex: n,
1421
+ maskStyle: r,
1422
+ direction: s,
1423
+ prefixCls: i,
1424
+ wrapClassName: d,
1425
+ rootPrefixCls: c,
1426
+ bodyStyle: l,
1427
+ closable: a = !1,
1428
+ onConfirm: u,
1429
+ styles: f,
1430
+ title: b,
1431
+ mask: y,
1432
+ maskClosable: E,
1433
+ okButtonProps: w,
1434
+ cancelButtonProps: g
1435
+ } = e, {
1436
+ cancelButtonProps: p,
1437
+ okButtonProps: x
1438
+ } = Te("modal");
1439
+ if (process.env.NODE_ENV !== "production") {
1440
+ const P = mt("Modal");
1441
+ [["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach(([M, T]) => {
1442
+ P.deprecated(!(M in e), M, T);
1443
+ });
1444
+ }
1445
+ const m = `${i}-confirm`, h = e.width || 416, v = e.style || {}, C = J(f) ? (P) => ({
1446
+ body: l,
1447
+ mask: r,
1448
+ ...f(P)
1449
+ }) : {
1450
+ body: l,
1451
+ mask: r,
1452
+ ...f
1453
+ }, $ = He(e, ["bodyStyle", "maskStyle"]), R = F(m, `${m}-${e.type}`, {
1454
+ [`${m}-rtl`]: s === "rtl"
1455
+ }, e.className), S = o.useMemo(() => {
1456
+ const P = tr(y, E);
1457
+ return P.closable ?? (P.closable = !1), P;
1458
+ }, [y, E]), [, I] = uo(), N = o.useMemo(() => n !== void 0 ? n : I.zIndexPopupBase + mo, [n, I]);
1459
+ return /* @__PURE__ */ o.createElement(yn, {
1460
+ ...$,
1461
+ className: R,
1462
+ wrapClassName: F({
1463
+ [`${m}-centered`]: !!e.centered
1464
+ }, d),
1465
+ onCancel: () => {
1466
+ t == null || t({
1467
+ triggerCancel: !0
1468
+ }), u == null || u(!1);
1469
+ },
1470
+ title: b,
1471
+ footer: null,
1472
+ transitionName: _e(c || "", "zoom", e.transitionName),
1473
+ maskTransitionName: _e(c || "", "fade", e.maskTransitionName),
1474
+ mask: S,
1475
+ style: v,
1476
+ styles: C,
1477
+ width: h,
1478
+ zIndex: N,
1479
+ closable: a,
1480
+ _semanticOmit: Ir,
1481
+ _renderSemanticContent: ({
1482
+ classNames: P,
1483
+ styles: M
1484
+ }) => /* @__PURE__ */ o.createElement(En, {
1485
+ ...e,
1486
+ confirmPrefixCls: m,
1487
+ okButtonProps: {
1488
+ ...x,
1489
+ ...w
1490
+ },
1491
+ cancelButtonProps: {
1492
+ ...p,
1493
+ ...g
1494
+ },
1495
+ contentClassName: P.body,
1496
+ contentStyle: M.body
1497
+ })
1498
+ });
1499
+ }, ht = (e) => {
1500
+ const {
1501
+ rootPrefixCls: t,
1502
+ iconPrefixCls: n,
1503
+ direction: r,
1504
+ theme: s
1505
+ } = e;
1506
+ return /* @__PURE__ */ o.createElement(Yt, {
1507
+ prefixCls: t,
1508
+ iconPrefixCls: n,
1509
+ direction: r,
1510
+ theme: s
1511
+ }, /* @__PURE__ */ o.createElement(vn, {
1512
+ ...e
1513
+ }));
1514
+ };
1515
+ process.env.NODE_ENV !== "production" && (vn.displayName = "ConfirmDialog", ht.displayName = "ConfirmDialogWrapper");
1516
+ const $e = [];
1517
+ let Sn = "";
1518
+ function Nn() {
1519
+ return Sn;
1520
+ }
1521
+ const Pr = (e) => {
1522
+ var a;
1523
+ const {
1524
+ prefixCls: t,
1525
+ getContainer: n,
1526
+ direction: r
1527
+ } = e, s = Gt(), i = Ve(he), d = Nn() || i.getPrefixCls(), c = t || `${d}-modal`;
1528
+ let l = n;
1529
+ return l === !1 && (l = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Qt(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ V.createElement(ht, {
1530
+ ...e,
1531
+ rootPrefixCls: d,
1532
+ prefixCls: c,
1533
+ iconPrefixCls: i.iconPrefixCls,
1534
+ theme: i.theme,
1535
+ direction: r ?? i.direction,
1536
+ locale: ((a = i.locale) == null ? void 0 : a.Modal) ?? s,
1537
+ getContainer: l
1538
+ });
1539
+ };
1540
+ function Le(e) {
1541
+ const t = po();
1542
+ process.env.NODE_ENV !== "production" && !t.holderRender && fo("Modal");
1543
+ const n = document.createDocumentFragment();
1544
+ let r = {
1545
+ ...e,
1546
+ close: c,
1547
+ open: !0
1548
+ }, s;
1549
+ function i(...a) {
1550
+ var f;
1551
+ a.some((b) => b == null ? void 0 : b.triggerCancel) && ((f = e.onCancel) == null || f.call(e, () => {
1552
+ }, ...a.slice(1)));
1553
+ for (let b = 0; b < $e.length; b++)
1554
+ if ($e[b] === c) {
1555
+ $e.splice(b, 1);
1556
+ break;
1557
+ }
1558
+ ho(n).then(() => {
1559
+ });
1560
+ }
1561
+ const d = (a) => {
1562
+ clearTimeout(s), s = setTimeout(() => {
1563
+ const u = t.getPrefixCls(void 0, Nn()), f = t.getIconPrefixCls(), b = t.getTheme(), y = /* @__PURE__ */ V.createElement(Pr, {
1564
+ ...a
1565
+ });
1566
+ go(/* @__PURE__ */ V.createElement(Yt, {
1567
+ prefixCls: u,
1568
+ iconPrefixCls: f,
1569
+ theme: b
1570
+ }, J(t.holderRender) ? t.holderRender(y) : y), n);
1571
+ });
1572
+ };
1573
+ function c(...a) {
1574
+ r = {
1575
+ ...r,
1576
+ open: !1,
1577
+ afterClose: () => {
1578
+ J(e.afterClose) && e.afterClose(), i.apply(this, a);
1579
+ }
1580
+ }, d(r);
1581
+ }
1582
+ function l(a) {
1583
+ J(a) ? r = a(r) : r = {
1584
+ ...r,
1585
+ ...a
1586
+ }, d(r);
1587
+ }
1588
+ return d(r), $e.push(c), {
1589
+ destroy: c,
1590
+ update: l
1591
+ };
1592
+ }
1593
+ function wn(e) {
1594
+ return {
1595
+ ...e,
1596
+ type: "warning"
1597
+ };
1598
+ }
1599
+ function In(e) {
1600
+ return {
1601
+ ...e,
1602
+ type: "info"
1603
+ };
1604
+ }
1605
+ function Pn(e) {
1606
+ return {
1607
+ ...e,
1608
+ type: "success"
1609
+ };
1610
+ }
1611
+ function Mn(e) {
1612
+ return {
1613
+ ...e,
1614
+ type: "error"
1615
+ };
1616
+ }
1617
+ function Rn(e) {
1618
+ return {
1619
+ ...e,
1620
+ type: "confirm"
1621
+ };
1622
+ }
1623
+ function Mr({
1624
+ rootPrefixCls: e
1625
+ }) {
1626
+ process.env.NODE_ENV !== "production" && Qt(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), Sn = e;
1627
+ }
1628
+ const Rr = /* @__PURE__ */ o.forwardRef((e, t) => {
1629
+ const {
1630
+ afterClose: n,
1631
+ config: r,
1632
+ ...s
1633
+ } = e, [i, d] = o.useState(!0), [c, l] = o.useState(r), {
1634
+ direction: a,
1635
+ getPrefixCls: u
1636
+ } = o.useContext(he), f = u("modal"), b = u(), y = () => {
1637
+ var p;
1638
+ n(), (p = c.afterClose) == null || p.call(c);
1639
+ }, E = (...p) => {
1640
+ var m;
1641
+ d(!1), p.some((h) => h == null ? void 0 : h.triggerCancel) && ((m = c.onCancel) == null || m.call(c, () => {
1642
+ }, ...p.slice(1)));
1643
+ };
1644
+ o.useImperativeHandle(t, () => ({
1645
+ destroy: E,
1646
+ update: (p) => {
1647
+ l((x) => {
1648
+ const m = J(p) ? p(x) : p;
1649
+ return {
1650
+ ...x,
1651
+ ...m
1652
+ };
1653
+ });
1654
+ }
1655
+ }));
1656
+ const w = c.okCancel ?? c.type === "confirm", [g] = Xe("Modal", Zt.Modal);
1657
+ return /* @__PURE__ */ o.createElement(ht, {
1658
+ prefixCls: f,
1659
+ rootPrefixCls: b,
1660
+ ...c,
1661
+ close: E,
1662
+ open: i,
1663
+ afterClose: y,
1664
+ okText: ce(c.okText, w ? g == null ? void 0 : g.okText : g == null ? void 0 : g.justOkText),
1665
+ direction: c.direction || a,
1666
+ cancelText: ce(c.cancelText, g == null ? void 0 : g.cancelText),
1667
+ ...s
1668
+ });
1669
+ });
1670
+ let Bt = 0;
1671
+ const Fr = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef((e, t) => {
1672
+ const [n, r] = ar();
1673
+ return o.useImperativeHandle(t, () => ({
1674
+ patchElement: r
1675
+ }), [r]), /* @__PURE__ */ o.createElement(o.Fragment, null, n);
1676
+ }));
1677
+ function Tr() {
1678
+ const e = o.useRef(null), [t, n] = o.useState([]);
1679
+ o.useEffect(() => {
1680
+ t.length && (U(t).forEach((d) => {
1681
+ d();
1682
+ }), n([]));
1683
+ }, [t]);
1684
+ const r = o.useCallback((i) => function(c) {
1685
+ var w;
1686
+ Bt += 1;
1687
+ const l = /* @__PURE__ */ o.createRef();
1688
+ let a;
1689
+ const u = new Promise((g) => {
1690
+ a = g;
1691
+ });
1692
+ let f = !1, b;
1693
+ const y = /* @__PURE__ */ o.createElement(Rr, {
1694
+ key: `modal-${Bt}`,
1695
+ config: i(c),
1696
+ ref: l,
1697
+ afterClose: () => {
1698
+ b == null || b();
1699
+ },
1700
+ isSilent: () => f,
1701
+ onConfirm: (g) => {
1702
+ a(g);
1703
+ }
1704
+ });
1705
+ return b = (w = e.current) == null ? void 0 : w.patchElement(y), b && $e.push(b), {
1706
+ destroy: () => {
1707
+ function g() {
1708
+ var p;
1709
+ (p = l.current) == null || p.destroy();
1710
+ }
1711
+ l.current ? g() : n((p) => [].concat(U(p), [g]));
1712
+ },
1713
+ update: (g) => {
1714
+ function p() {
1715
+ var x;
1716
+ (x = l.current) == null || x.update(g);
1717
+ }
1718
+ l.current ? p() : n((x) => [].concat(U(x), [p]));
1719
+ },
1720
+ then: (g) => (f = !0, u.then(g))
1721
+ };
1722
+ }, []);
1723
+ return [o.useMemo(() => ({
1724
+ info: r(In),
1725
+ success: r(Pn),
1726
+ error: r(Mn),
1727
+ warning: r(wn),
1728
+ confirm: r(Rn)
1729
+ }), [r]), /* @__PURE__ */ o.createElement(Fr, {
1730
+ key: "modal-holder",
1731
+ ref: e
1732
+ })];
1733
+ }
1734
+ const Fn = /* @__PURE__ */ Ao({});
1735
+ function Lt(e) {
1736
+ return e === "auto" ? "1 1 auto" : Pe(e) ? `${e} ${e} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(e) ? `0 0 ${e}` : e;
1737
+ }
1738
+ const Ct = /* @__PURE__ */ o.forwardRef((e, t) => {
1739
+ const {
1740
+ getPrefixCls: n,
1741
+ direction: r
1742
+ } = o.useContext(he), {
1743
+ gutter: s,
1744
+ wrap: i
1745
+ } = o.useContext(Fn), {
1746
+ prefixCls: d,
1747
+ span: c,
1748
+ order: l,
1749
+ offset: a,
1750
+ push: u,
1751
+ pull: f,
1752
+ className: b,
1753
+ children: y,
1754
+ flex: E,
1755
+ style: w,
1756
+ ...g
1757
+ } = e, p = n("col", d), x = n(), [m, h] = br(p), [v] = we(x, "col"), C = {};
1758
+ let $ = {};
1759
+ Jt.forEach((I) => {
1760
+ let N = {};
1761
+ const P = e[I];
1762
+ Pe(P) ? N.span = P : le(P) && (N = P || {}), delete g[I], $ = {
1763
+ ...$,
1764
+ [`${p}-${I}-${N.span}`]: Ie(N.span),
1765
+ [`${p}-${I}-order-${N.order}`]: N.order || N.order === 0,
1766
+ [`${p}-${I}-offset-${N.offset}`]: N.offset || N.offset === 0,
1767
+ [`${p}-${I}-push-${N.push}`]: N.push || N.push === 0,
1768
+ [`${p}-${I}-pull-${N.pull}`]: N.pull || N.pull === 0,
1769
+ [`${p}-rtl`]: r === "rtl"
1770
+ }, (N.flex || N.flex === 0) && ($[`${p}-${I}-flex`] = !0, C[v(`${I}-flex`)] = Lt(N.flex));
1771
+ });
1772
+ const R = F(p, {
1773
+ [`${p}-${c}`]: c !== void 0,
1774
+ [`${p}-order-${l}`]: l,
1775
+ [`${p}-offset-${a}`]: a,
1776
+ [`${p}-push-${u}`]: u,
1777
+ [`${p}-pull-${f}`]: f
1778
+ }, b, $, m, h), S = {};
1779
+ if (s != null && s[0]) {
1780
+ const I = Pe(s[0]) ? `${s[0] / 2}px` : `calc(${s[0]} / 2)`;
1781
+ S.paddingInline = I;
1782
+ }
1783
+ return (E || E === 0) && (S.flex = Lt(E), i === !1 && !S.minWidth && (S.minWidth = 0)), /* @__PURE__ */ o.createElement("div", {
1784
+ ...g,
1785
+ style: {
1786
+ ...S,
1787
+ ...w,
1788
+ ...C
1789
+ },
1790
+ className: R,
1791
+ ref: t
1792
+ }, y);
1793
+ });
1794
+ process.env.NODE_ENV !== "production" && (Ct.displayName = "Col");
1795
+ function Or(e, t) {
1796
+ const n = [void 0, void 0], r = Array.isArray(e) ? e : [e, void 0], s = t || {
1797
+ xs: !0,
1798
+ sm: !0,
1799
+ md: !0,
1800
+ lg: !0,
1801
+ xl: !0,
1802
+ xxl: !0,
1803
+ xxxl: !0
1804
+ };
1805
+ return r.forEach((i, d) => {
1806
+ if (le(i))
1807
+ for (let c = 0; c < Ae.length; c++) {
1808
+ const l = Ae[c];
1809
+ if (s[l] && i[l] !== void 0) {
1810
+ n[d] = i[l];
1811
+ break;
1812
+ }
1813
+ }
1814
+ else
1815
+ n[d] = i;
1816
+ }), n;
1817
+ }
1818
+ const Dt = (e, t) => {
1819
+ if ($o(e))
1820
+ return e;
1821
+ if (le(e))
1822
+ for (let n = 0; n < Ae.length; n++) {
1823
+ const r = Ae[n];
1824
+ if (!t || !t[r])
1825
+ continue;
1826
+ const s = e[r];
1827
+ if (s !== void 0)
1828
+ return s;
1829
+ }
1830
+ return "";
1831
+ }, Tn = /* @__PURE__ */ o.forwardRef((e, t) => {
1832
+ const {
1833
+ prefixCls: n,
1834
+ justify: r,
1835
+ align: s,
1836
+ className: i,
1837
+ style: d,
1838
+ children: c,
1839
+ gutter: l = 0,
1840
+ wrap: a,
1841
+ ...u
1842
+ } = e, {
1843
+ getPrefixCls: f,
1844
+ direction: b
1845
+ } = o.useContext(he), y = Co(!0, null), E = Dt(s, y), w = Dt(r, y), g = f("row", n), [p, x] = $r(g), m = Or(l, y), h = F(g, {
1846
+ [`${g}-no-wrap`]: a === !1,
1847
+ [`${g}-${w}`]: w,
1848
+ [`${g}-${E}`]: E,
1849
+ [`${g}-rtl`]: b === "rtl"
1850
+ }, i, p, x), v = {};
1851
+ if (m != null && m[0]) {
1852
+ const S = Pe(m[0]) ? `${m[0] / -2}px` : `calc(${m[0]} / -2)`;
1853
+ v.marginInline = S;
1854
+ }
1855
+ const [C, $] = m;
1856
+ v.rowGap = $;
1857
+ const R = o.useMemo(() => ({
1858
+ gutter: [C, $],
1859
+ wrap: a
1860
+ }), [C, $, a]);
1861
+ return /* @__PURE__ */ o.createElement(Fn.Provider, {
1862
+ value: R
1863
+ }, /* @__PURE__ */ o.createElement("div", {
1864
+ ...u,
1865
+ className: h,
1866
+ style: {
1867
+ ...v,
1868
+ ...d
1869
+ },
1870
+ ref: t
1871
+ }, c));
1872
+ });
1873
+ process.env.NODE_ENV !== "production" && (Tn.displayName = "Row");
1874
+ const Vr = (e, t) => be(e) ? le(e) && !/* @__PURE__ */ Wo(e) ? {
1875
+ ...t,
1876
+ ...e
1877
+ } : {
1878
+ ...t,
1879
+ title: e
1880
+ } : null;
1881
+ function Ge(e) {
1882
+ const [t, n] = bo(e);
1883
+ return o.useEffect(() => {
1884
+ n(e, {
1885
+ ms: e.length ? 0 : 10
1886
+ });
1887
+ }, [e]), t;
1888
+ }
1889
+ const Br = (e) => {
1890
+ const {
1891
+ componentCls: t,
1892
+ motionDurationFast: n,
1893
+ motionEaseInOut: r
1894
+ } = e, s = `${t}-show-help`, i = `${t}-show-help-item`;
1895
+ return {
1896
+ [s]: {
1897
+ // Explain holder
1898
+ transition: `opacity ${n} ${r}`,
1899
+ "&-appear, &-enter": {
1900
+ opacity: 0,
1901
+ "&-active": {
1902
+ opacity: 1
1903
+ }
1904
+ },
1905
+ "&-leave": {
1906
+ opacity: 1,
1907
+ "&-active": {
1908
+ opacity: 0
1909
+ }
1910
+ },
1911
+ // Explain
1912
+ [i]: {
1913
+ overflow: "hidden",
1914
+ transition: `${["height", "opacity", "transform"].map((d) => `${d} ${n} ${r}`).join(", ")} !important`,
1915
+ [`&${i}-appear, &${i}-enter`]: {
1916
+ transform: "translateY(-5px)",
1917
+ opacity: 0,
1918
+ "&-active": {
1919
+ transform: "translateY(0)",
1920
+ opacity: 1
1921
+ }
1922
+ },
1923
+ [`&${i}-leave-active`]: {
1924
+ transform: "translateY(-5px)"
1925
+ }
1926
+ }
1927
+ }
1928
+ };
1929
+ }, Lr = (e) => ({
1930
+ legend: {
1931
+ display: "block",
1932
+ width: "100%",
1933
+ marginBottom: e.marginLG,
1934
+ padding: 0,
1935
+ color: e.colorTextDescription,
1936
+ fontSize: e.fontSizeLG,
1937
+ lineHeight: "inherit",
1938
+ border: 0,
1939
+ borderBottom: `${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1940
+ },
1941
+ 'input[type="search"]': {
1942
+ boxSizing: "border-box"
1943
+ },
1944
+ // Position radios and checkboxes better
1945
+ 'input[type="radio"], input[type="checkbox"]': {
1946
+ lineHeight: "normal"
1947
+ },
1948
+ 'input[type="file"]': {
1949
+ display: "block"
1950
+ },
1951
+ // Make range inputs behave like textual form controls
1952
+ 'input[type="range"]': {
1953
+ display: "block",
1954
+ width: "100%"
1955
+ },
1956
+ // Make multiple select elements height not fixed
1957
+ "select[multiple], select[size]": {
1958
+ height: "auto"
1959
+ },
1960
+ // Focus for file, radio, and checkbox
1961
+ "input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus": {
1962
+ outline: 0,
1963
+ boxShadow: `0 0 0 ${O(e.controlOutlineWidth)} ${e.controlOutline}`
1964
+ },
1965
+ // Adjust output element
1966
+ output: {
1967
+ display: "block",
1968
+ paddingTop: 15,
1969
+ color: e.colorText,
1970
+ fontSize: e.fontSize,
1971
+ lineHeight: e.lineHeight
1972
+ }
1973
+ }), zt = (e, t) => {
1974
+ const {
1975
+ formItemCls: n
1976
+ } = e;
1977
+ return {
1978
+ [n]: {
1979
+ [`${n}-label > label`]: {
1980
+ height: t
1981
+ },
1982
+ [`${n}-control-input`]: {
1983
+ minHeight: t
1984
+ }
1985
+ }
1986
+ };
1987
+ }, Dr = (e) => {
1988
+ const {
1989
+ componentCls: t
1990
+ } = e;
1991
+ return {
1992
+ [t]: {
1993
+ ...ut(e),
1994
+ ...Lr(e),
1995
+ [`${t}-text`]: {
1996
+ display: "inline-block",
1997
+ paddingInlineEnd: e.paddingSM
1998
+ },
1999
+ // ================================================================
2000
+ // = Size =
2001
+ // ================================================================
2002
+ "&-small": {
2003
+ ...zt(e, e.controlHeightSM)
2004
+ },
2005
+ "&-large": {
2006
+ ...zt(e, e.controlHeightLG)
2007
+ }
2008
+ }
2009
+ };
2010
+ }, zr = (e) => {
2011
+ const {
2012
+ formItemCls: t,
2013
+ iconCls: n,
2014
+ rootPrefixCls: r,
2015
+ antCls: s,
2016
+ labelRequiredMarkColor: i,
2017
+ labelColor: d,
2018
+ labelFontSize: c,
2019
+ labelHeight: l,
2020
+ labelColonMarginInlineStart: a,
2021
+ labelColonMarginInlineEnd: u,
2022
+ itemMarginBottom: f
2023
+ } = e, [b] = we(s, "grid");
2024
+ return {
2025
+ [t]: {
2026
+ ...ut(e),
2027
+ marginBottom: f,
2028
+ verticalAlign: "top",
2029
+ "&-with-help": {
2030
+ transition: "none"
2031
+ },
2032
+ [`&-hidden,
2033
+ &-hidden${s}-row`]: {
2034
+ // https://github.com/ant-design/ant-design/issues/26141
2035
+ display: "none"
2036
+ },
2037
+ // ==============================================================
2038
+ // = Label =
2039
+ // ==============================================================
2040
+ [`${t}-label`]: {
2041
+ flexGrow: 0,
2042
+ overflow: "hidden",
2043
+ whiteSpace: "nowrap",
2044
+ textAlign: "end",
2045
+ verticalAlign: "middle",
2046
+ "&-left": {
2047
+ textAlign: "start"
2048
+ },
2049
+ "&-wrap": {
2050
+ overflow: "unset",
2051
+ lineHeight: e.lineHeight,
2052
+ whiteSpace: "unset",
2053
+ "> label": {
2054
+ verticalAlign: "middle",
2055
+ textWrap: "balance"
2056
+ }
2057
+ },
2058
+ "> label": {
2059
+ position: "relative",
2060
+ display: "inline-flex",
2061
+ alignItems: "center",
2062
+ maxWidth: "100%",
2063
+ height: l,
2064
+ color: d,
2065
+ fontSize: c,
2066
+ [`> ${n}`]: {
2067
+ fontSize: e.fontSize,
2068
+ verticalAlign: "top"
2069
+ },
2070
+ [`&${t}-required`]: {
2071
+ "&::before": {
2072
+ display: "inline-block",
2073
+ marginInlineEnd: e.marginXXS,
2074
+ color: i,
2075
+ fontSize: e.fontSize,
2076
+ fontFamily: "sans-serif",
2077
+ lineHeight: 1,
2078
+ content: '"*"'
2079
+ },
2080
+ [`&${t}-required-mark-hidden, &${t}-required-mark-optional`]: {
2081
+ "&::before": {
2082
+ display: "none"
2083
+ }
2084
+ }
2085
+ },
2086
+ // Optional mark
2087
+ [`${t}-optional`]: {
2088
+ display: "inline-block",
2089
+ marginInlineStart: e.marginXXS,
2090
+ color: e.colorTextDescription,
2091
+ [`&${t}-required-mark-hidden`]: {
2092
+ display: "none"
2093
+ }
2094
+ },
2095
+ // Optional mark
2096
+ [`${t}-tooltip`]: {
2097
+ color: e.colorTextDescription,
2098
+ cursor: "help",
2099
+ writingMode: "horizontal-tb",
2100
+ marginInlineStart: e.marginXXS
2101
+ },
2102
+ "&::after": {
2103
+ content: '":"',
2104
+ position: "relative",
2105
+ marginBlock: 0,
2106
+ marginInlineStart: a,
2107
+ marginInlineEnd: u
2108
+ },
2109
+ [`&${t}-no-colon::after`]: {
2110
+ content: '"\\a0"'
2111
+ }
2112
+ }
2113
+ },
2114
+ // ==============================================================
2115
+ // = Input =
2116
+ // ==============================================================
2117
+ [`${t}-control`]: {
2118
+ [b("display")]: "flex",
2119
+ flexDirection: "column",
2120
+ flexGrow: 1,
2121
+ [`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]: {
2122
+ width: "100%"
2123
+ },
2124
+ "&-input": {
2125
+ position: "relative",
2126
+ display: "flex",
2127
+ alignItems: "center",
2128
+ minHeight: e.controlHeight,
2129
+ "&-content": {
2130
+ flex: "auto",
2131
+ maxWidth: "100%",
2132
+ // Fix https://github.com/ant-design/ant-design/issues/54042
2133
+ // Remove impact of whitespaces
2134
+ [`&:has(> ${s}-switch:only-child, > ${s}-rate:only-child)`]: {
2135
+ display: "flex",
2136
+ alignItems: "center"
2137
+ }
2138
+ }
2139
+ }
2140
+ },
2141
+ // ==============================================================
2142
+ // = Explain =
2143
+ // ==============================================================
2144
+ [t]: {
2145
+ "&-additional": {
2146
+ display: "flex",
2147
+ flexDirection: "column"
2148
+ },
2149
+ "&-explain, &-extra": {
2150
+ clear: "both",
2151
+ color: e.colorTextDescription,
2152
+ fontSize: e.fontSize,
2153
+ lineHeight: e.lineHeight
2154
+ },
2155
+ "&-explain-connected": {
2156
+ width: "100%"
2157
+ },
2158
+ "&-extra": {
2159
+ minHeight: e.controlHeightSM,
2160
+ transition: `color ${e.motionDurationMid} ${e.motionEaseOut}`
2161
+ // sync input color transition
2162
+ },
2163
+ "&-explain": {
2164
+ "&-error": {
2165
+ color: e.colorError
2166
+ },
2167
+ "&-warning": {
2168
+ color: e.colorWarning
2169
+ }
2170
+ }
2171
+ },
2172
+ [`&-with-help ${t}-explain`]: {
2173
+ height: "auto",
2174
+ opacity: 1
2175
+ },
2176
+ // ==============================================================
2177
+ // = Feedback Icon =
2178
+ // ==============================================================
2179
+ [`${t}-feedback-icon`]: {
2180
+ fontSize: e.fontSize,
2181
+ textAlign: "center",
2182
+ visibility: "visible",
2183
+ animationName: sn,
2184
+ animationDuration: e.motionDurationMid,
2185
+ animationTimingFunction: e.motionEaseOutBack,
2186
+ pointerEvents: "none",
2187
+ "&-success": {
2188
+ color: e.colorSuccess
2189
+ },
2190
+ "&-error": {
2191
+ color: e.colorError
2192
+ },
2193
+ "&-warning": {
2194
+ color: e.colorWarning
2195
+ },
2196
+ "&-validating": {
2197
+ color: e.colorPrimary
2198
+ }
2199
+ }
2200
+ }
2201
+ };
2202
+ }, On = (e) => ({
2203
+ padding: e.verticalLabelPadding,
2204
+ whiteSpace: "initial",
2205
+ textAlign: "start",
2206
+ "> label": {
2207
+ margin: 0,
2208
+ "&::after": {
2209
+ // https://github.com/ant-design/ant-design/issues/43538
2210
+ visibility: "hidden"
2211
+ }
2212
+ }
2213
+ }), Ne = (e) => ({
2214
+ ...On(e),
2215
+ margin: e.verticalLabelMargin
2216
+ }), Hr = (e) => {
2217
+ const [t] = we(e.antCls, "form");
2218
+ return {
2219
+ ...On(e),
2220
+ [t("item-label-margin")]: e.verticalLabelMargin
2221
+ };
2222
+ }, _r = (e) => {
2223
+ const {
2224
+ antCls: t,
2225
+ formItemCls: n
2226
+ } = e;
2227
+ return {
2228
+ [`${n}-horizontal`]: {
2229
+ [`${n}-label`]: {
2230
+ flexGrow: 0
2231
+ },
2232
+ [`${n}-control`]: {
2233
+ flex: "1 1 0",
2234
+ // https://github.com/ant-design/ant-design/issues/32777
2235
+ // https://github.com/ant-design/ant-design/issues/33773
2236
+ minWidth: 0
2237
+ },
2238
+ // Do not change this to `ant-col-24`! `-24` match all the responsive rules
2239
+ // https://github.com/ant-design/ant-design/issues/32980
2240
+ // https://github.com/ant-design/ant-design/issues/34903
2241
+ // https://github.com/ant-design/ant-design/issues/44538
2242
+ [`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]: {
2243
+ [`& + ${n}-control`]: {
2244
+ minWidth: "unset"
2245
+ }
2246
+ },
2247
+ [`> ${n}-row > ${t}-col-24${n}-label,
2248
+ > ${n}-row > ${t}-col-xl-24${n}-label`]: Ne(e)
2249
+ }
2250
+ };
2251
+ }, Ar = (e) => {
2252
+ const {
2253
+ componentCls: t,
2254
+ formItemCls: n,
2255
+ inlineItemMarginBottom: r
2256
+ } = e;
2257
+ return {
2258
+ [`${t}-inline`]: {
2259
+ display: "flex",
2260
+ flexWrap: "wrap",
2261
+ [`${n}-inline`]: {
2262
+ flex: "none",
2263
+ marginInlineEnd: e.margin,
2264
+ marginBottom: r,
2265
+ "&-row": {
2266
+ flexWrap: "nowrap"
2267
+ },
2268
+ [`> ${n}-label,
2269
+ > ${n}-control`]: {
2270
+ display: "inline-block",
2271
+ verticalAlign: "top"
2272
+ },
2273
+ [`> ${n}-label`]: {
2274
+ flex: "none"
2275
+ },
2276
+ [`${t}-text`]: {
2277
+ display: "inline-block"
2278
+ },
2279
+ [`${n}-has-feedback`]: {
2280
+ display: "inline-block"
2281
+ }
2282
+ }
2283
+ }
2284
+ };
2285
+ }, Wr = (e) => {
2286
+ const {
2287
+ componentCls: t,
2288
+ formItemCls: n,
2289
+ rootPrefixCls: r
2290
+ } = e;
2291
+ return {
2292
+ [`${n}:not(${n}-vertical) > ${n}-row > ${n}-label`]: Ne(e),
2293
+ // ref: https://github.com/ant-design/ant-design/issues/45122
2294
+ [`${t}:not(${t}-inline)`]: {
2295
+ [n]: {
2296
+ flexWrap: "wrap",
2297
+ [`${n}-label, ${n}-control`]: {
2298
+ // When developer pass `xs: { span }`,
2299
+ // It should follow the `xs` screen config
2300
+ // ref: https://github.com/ant-design/ant-design/issues/44386
2301
+ [`&:not([class*=" ${r}-col-xs"])`]: {
2302
+ flex: "0 0 100%",
2303
+ maxWidth: "100%"
2304
+ }
2305
+ }
2306
+ }
2307
+ }
2308
+ };
2309
+ }, jr = (e) => {
2310
+ const {
2311
+ componentCls: t,
2312
+ formItemCls: n,
2313
+ antCls: r,
2314
+ verticalLabelHeight: s
2315
+ } = e, [i, d] = we(r, "form");
2316
+ return {
2317
+ [n]: {
2318
+ [i("item-label-margin")]: "initial"
2319
+ },
2320
+ [`${n}-label`]: {
2321
+ margin: d("item-label-margin")
2322
+ },
2323
+ [`${n}-vertical`]: {
2324
+ [`${n}-row`]: {
2325
+ flexDirection: "column"
2326
+ },
2327
+ [`${n}-label > label`]: {
2328
+ height: s
2329
+ },
2330
+ [`${n}-control`]: {
2331
+ width: "100%",
2332
+ flex: "none"
2333
+ },
2334
+ [`> ${n}-row > ${n}-label,
2335
+ > ${n}-row > ${r}-col-24${n}-label,
2336
+ > ${n}-row > ${r}-col-xl-24${n}-label`]: Hr(e)
2337
+ },
2338
+ [`@media (max-width: ${O(e.screenXSMax)})`]: [Wr(e), {
2339
+ [t]: {
2340
+ [`${n}:not(${n}-horizontal):not(${n}-vertical)`]: {
2341
+ [`> ${n}-row > ${r}-col-xs-24${n}-label`]: Ne(e)
2342
+ }
2343
+ }
2344
+ }],
2345
+ [`@media (max-width: ${O(e.screenSMMax)})`]: {
2346
+ [t]: {
2347
+ [`${n}:not(${n}-horizontal):not(${n}-vertical)`]: {
2348
+ [`> ${n}-row > ${r}-col-sm-24${n}-label`]: Ne(e)
2349
+ }
2350
+ }
2351
+ },
2352
+ [`@media (max-width: ${O(e.screenMDMax)})`]: {
2353
+ [t]: {
2354
+ [`${n}:not(${n}-horizontal):not(${n}-vertical)`]: {
2355
+ [`> ${n}-row > ${r}-col-md-24${n}-label`]: Ne(e)
2356
+ }
2357
+ }
2358
+ },
2359
+ [`@media (max-width: ${O(e.screenLGMax)})`]: {
2360
+ [t]: {
2361
+ [`${n}:not(${n}-horizontal):not(${n}-vertical)`]: {
2362
+ [`> ${n}-row > ${r}-col-lg-24${n}-label`]: Ne(e)
2363
+ }
2364
+ }
2365
+ }
2366
+ };
2367
+ }, qr = (e) => ({
2368
+ labelRequiredMarkColor: e.colorError,
2369
+ labelColor: e.colorTextHeading,
2370
+ labelFontSize: e.fontSize,
2371
+ labelHeight: e.controlHeight,
2372
+ verticalLabelHeight: e.labelHeight ?? "auto",
2373
+ labelColonMarginInlineStart: e.marginXXS / 2,
2374
+ labelColonMarginInlineEnd: e.marginXS,
2375
+ itemMarginBottom: e.marginLG,
2376
+ verticalLabelPadding: `0 0 ${e.paddingXS}px`,
2377
+ verticalLabelMargin: 0,
2378
+ inlineItemMarginBottom: 0
2379
+ }), Vn = (e, t) => dt(e, {
2380
+ formItemCls: `${e.componentCls}-item`,
2381
+ rootPrefixCls: t
2382
+ }), $t = ke("Form", (e, {
2383
+ rootPrefixCls: t
2384
+ }) => {
2385
+ const n = Vn(e, t);
2386
+ return [Dr(n), zr(n), Br(n), _r(n), Ar(n), jr(n), Ko(n), sn];
2387
+ }, qr, {
2388
+ // Let From style before the Grid
2389
+ // ref https://github.com/ant-design/ant-design/issues/44386
2390
+ order: -1e3
2391
+ }), Ht = [];
2392
+ function tt(e, t, n, r = 0) {
2393
+ return {
2394
+ key: typeof e == "string" ? e : `${t}-${r}`,
2395
+ error: e,
2396
+ errorStatus: n
2397
+ };
2398
+ }
2399
+ const Bn = ({
2400
+ help: e,
2401
+ helpStatus: t,
2402
+ errors: n = Ht,
2403
+ warnings: r = Ht,
2404
+ className: s,
2405
+ fieldId: i,
2406
+ onVisibleChanged: d
2407
+ }) => {
2408
+ const {
2409
+ prefixCls: c
2410
+ } = o.useContext(pt), {
2411
+ classNames: l,
2412
+ styles: a
2413
+ } = o.useContext(de), u = `${c}-item-explain`, f = Oe(c), [b, y] = $t(c, f), E = o.useMemo(() => St(c), [c]), w = Ge(n), g = Ge(r), p = Ie(e), x = o.useMemo(() => p ? [tt(e, "help", t)] : [].concat(U(w.map((v, C) => tt(v, "error", "error", C))), U(g.map((v, C) => tt(v, "warning", "warning", C)))), [e, t, p, w, g]), m = o.useMemo(() => {
2414
+ const v = {};
2415
+ return x.forEach(({
2416
+ key: C
2417
+ }) => {
2418
+ v[C] = (v[C] || 0) + 1;
2419
+ }), x.map((C, $) => ({
2420
+ ...C,
2421
+ key: v[C.key] > 1 ? `${C.key}-fallback-${$}` : C.key
2422
+ }));
2423
+ }, [x]), h = {};
2424
+ return i && (h.id = `${i}_help`), /* @__PURE__ */ o.createElement(ct, {
2425
+ motionDeadline: E.motionDeadline,
2426
+ motionName: `${c}-show-help`,
2427
+ visible: !!m.length,
2428
+ onVisibleChanged: d
2429
+ }, (v) => {
2430
+ const {
2431
+ className: C,
2432
+ style: $
2433
+ } = v;
2434
+ return /* @__PURE__ */ o.createElement("div", {
2435
+ ...h,
2436
+ className: F(u, C, l == null ? void 0 : l.help, y, f, s, b),
2437
+ style: {
2438
+ ...a == null ? void 0 : a.help,
2439
+ ...$
2440
+ }
2441
+ }, /* @__PURE__ */ o.createElement(qo, {
2442
+ keys: m,
2443
+ ...St(c),
2444
+ motionName: `${c}-show-help-item`,
2445
+ component: !1
2446
+ }, (R) => {
2447
+ const {
2448
+ key: S,
2449
+ error: I,
2450
+ errorStatus: N,
2451
+ className: P,
2452
+ style: M
2453
+ } = R;
2454
+ return /* @__PURE__ */ o.createElement("div", {
2455
+ key: S,
2456
+ className: F(P, l == null ? void 0 : l.helpItem, {
2457
+ [`${u}-${N}`]: N
2458
+ }),
2459
+ style: {
2460
+ ...a == null ? void 0 : a.helpItem,
2461
+ ...M
2462
+ }
2463
+ }, I);
2464
+ }));
2465
+ });
2466
+ }, ze = {};
2467
+ function Gr({
2468
+ name: e
2469
+ }) {
2470
+ const t = Ke("Form");
2471
+ o.useEffect(() => {
2472
+ if (e)
2473
+ return ze[e] = (ze[e] || 0) + 1, process.env.NODE_ENV !== "production" && t(ze[e] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
2474
+ ze[e] -= 1;
2475
+ };
2476
+ }, [e]);
2477
+ }
2478
+ const Xr = (e, t) => {
2479
+ const n = o.useContext(xo), {
2480
+ getPrefixCls: r,
2481
+ direction: s,
2482
+ requiredMark: i,
2483
+ colon: d,
2484
+ scrollToFirstError: c,
2485
+ className: l,
2486
+ style: a,
2487
+ styles: u,
2488
+ classNames: f,
2489
+ tooltip: b,
2490
+ labelAlign: y,
2491
+ labelWrap: E
2492
+ } = Te("form"), {
2493
+ prefixCls: w,
2494
+ className: g,
2495
+ rootClassName: p,
2496
+ size: x,
2497
+ disabled: m = n,
2498
+ form: h,
2499
+ colon: v,
2500
+ labelAlign: C,
2501
+ labelWrap: $,
2502
+ labelCol: R,
2503
+ wrapperCol: S,
2504
+ layout: I = "horizontal",
2505
+ scrollToFirstError: N,
2506
+ requiredMark: P,
2507
+ onFinishFailed: M,
2508
+ name: T,
2509
+ style: q,
2510
+ feedbackIcons: _,
2511
+ variant: B,
2512
+ classNames: k,
2513
+ styles: A,
2514
+ tooltip: Y,
2515
+ ...W
2516
+ } = e, D = yo(x), Z = o.useContext(Eo);
2517
+ process.env.NODE_ENV !== "production" && Gr(e);
2518
+ const ne = o.useMemo(() => P !== void 0 ? P : i !== void 0 ? i : !0, [P, i]), L = v ?? d, se = C ?? y, H = $ ?? E, K = {
2519
+ ...b,
2520
+ ...Y
2521
+ }, z = r("form", w), ee = Oe(z), [ae, ue] = $t(z, ee), te = {
2522
+ ...e,
2523
+ size: D,
2524
+ disabled: m,
2525
+ layout: I,
2526
+ colon: L,
2527
+ requiredMark: ne,
2528
+ labelAlign: se,
2529
+ labelWrap: H
2530
+ }, G = We(a), j = We(q), [Q, me] = ft([f, k], [u, G, A, j], {
2531
+ props: te
2532
+ }), ye = F(z, `${z}-${I}`, {
2533
+ [`${z}-hide-required-mark`]: ne === !1,
2534
+ // todo: remove in next major version
2535
+ [`${z}-rtl`]: s === "rtl",
2536
+ [`${z}-large`]: D === "large",
2537
+ [`${z}-small`]: D === "small"
2538
+ }, ue, ee, ae, l, g, p, Q.root), [X] = an(h), {
2539
+ __INTERNAL__: fe
2540
+ } = X;
2541
+ fe.name = T;
2542
+ const Ee = o.useMemo(() => ({
2543
+ name: T,
2544
+ labelAlign: se,
2545
+ labelCol: R,
2546
+ labelWrap: H,
2547
+ wrapperCol: S,
2548
+ layout: I,
2549
+ colon: L,
2550
+ requiredMark: ne,
2551
+ itemRef: fe.itemRef,
2552
+ form: X,
2553
+ feedbackIcons: _,
2554
+ tooltip: K,
2555
+ classNames: Q,
2556
+ styles: me
2557
+ }), [T, se, H, R, S, I, L, ne, X, _, Q, me, K]), pe = o.useRef(null);
2558
+ o.useImperativeHandle(t, () => {
2559
+ var oe;
2560
+ return {
2561
+ ...X,
2562
+ nativeElement: (oe = pe.current) == null ? void 0 : oe.nativeElement
2563
+ };
2564
+ });
2565
+ const ge = (oe, ve) => {
2566
+ if (oe) {
2567
+ let Me = {
2568
+ block: "nearest"
2569
+ };
2570
+ le(oe) && (Me = {
2571
+ ...Me,
2572
+ ...oe
2573
+ }), X.scrollToField(ve, Me);
2574
+ }
2575
+ }, Ue = (oe) => {
2576
+ if (M == null || M(oe), oe.errorFields.length) {
2577
+ const ve = oe.errorFields[0].name;
2578
+ if (N !== void 0) {
2579
+ ge(N, ve);
2580
+ return;
2581
+ }
2582
+ c !== void 0 && ge(c, ve);
2583
+ }
2584
+ };
2585
+ return /* @__PURE__ */ o.createElement(vo.Provider, {
2586
+ value: B
2587
+ }, /* @__PURE__ */ o.createElement(qt, {
2588
+ disabled: m
2589
+ }, /* @__PURE__ */ o.createElement(So.Provider, {
2590
+ value: D
2591
+ }, /* @__PURE__ */ o.createElement(en, {
2592
+ // This is not list in API, we pass with spread
2593
+ validateMessages: Z
2594
+ }, /* @__PURE__ */ o.createElement(de.Provider, {
2595
+ value: Ee
2596
+ }, /* @__PURE__ */ o.createElement(No, {
2597
+ status: !0
2598
+ }, /* @__PURE__ */ o.createElement(wo, {
2599
+ id: T,
2600
+ ...W,
2601
+ name: T,
2602
+ onFinishFailed: Ue,
2603
+ form: X,
2604
+ ref: pe,
2605
+ style: me == null ? void 0 : me.root,
2606
+ className: ye
2607
+ })))))));
2608
+ }, Ln = /* @__PURE__ */ o.forwardRef(Xr);
2609
+ process.env.NODE_ENV !== "production" && (Ln.displayName = "Form");
2610
+ const kr = (e) => {
2611
+ if (J(e))
2612
+ return e;
2613
+ const t = Io(e);
2614
+ return t.length <= 1 ? t[0] : t;
2615
+ }, Dn = () => {
2616
+ const {
2617
+ status: e,
2618
+ errors: t = [],
2619
+ warnings: n = []
2620
+ } = o.useContext(je);
2621
+ if (process.env.NODE_ENV !== "production") {
2622
+ const r = Ke("Form.Item");
2623
+ process.env.NODE_ENV !== "production" && r(e !== void 0, "usage", "Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus");
2624
+ }
2625
+ return {
2626
+ status: e,
2627
+ errors: t,
2628
+ warnings: n
2629
+ };
2630
+ };
2631
+ Dn.Context = je;
2632
+ function Kr(e) {
2633
+ const [t, n] = o.useState(e), r = o.useRef(null), s = o.useRef([]), i = o.useRef(!1);
2634
+ o.useEffect(() => (i.current = !1, () => {
2635
+ i.current = !0, Nt.cancel(r.current), r.current = null;
2636
+ }), []);
2637
+ function d(c) {
2638
+ i.current || (r.current === null && (s.current = [], r.current = Nt(() => {
2639
+ r.current = null, n((l) => {
2640
+ let a = l;
2641
+ return s.current.forEach((u) => {
2642
+ a = u(a);
2643
+ }), a;
2644
+ });
2645
+ })), s.current.push(c));
2646
+ }
2647
+ return [t, d];
2648
+ }
2649
+ const Ur = () => {
2650
+ const {
2651
+ itemRef: e
2652
+ } = o.useContext(de), t = o.useRef({});
2653
+ return (r, s) => {
2654
+ const i = s && le(s) && Po(s), d = r.join("_");
2655
+ return (t.current.name !== d || t.current.originRef !== i) && (t.current.name = d, t.current.originRef = i, t.current.ref = kt(e(r), i)), t.current.ref;
2656
+ };
2657
+ }, Yr = (e) => {
2658
+ const {
2659
+ formItemCls: t
2660
+ } = e;
2661
+ return {
2662
+ "@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)": {
2663
+ // Fallback for IE, safe to remove we not support it anymore
2664
+ [`${t}-control`]: {
2665
+ display: "flex"
2666
+ }
2667
+ }
2668
+ };
2669
+ }, Qr = Kt(["Form", "item-item"], (e, {
2670
+ rootPrefixCls: t
2671
+ }) => {
2672
+ const n = Vn(e, t);
2673
+ return Yr(n);
2674
+ }), Zr = 24, Jr = (e) => {
2675
+ const {
2676
+ prefixCls: t,
2677
+ status: n,
2678
+ labelCol: r,
2679
+ wrapperCol: s,
2680
+ children: i,
2681
+ errors: d,
2682
+ warnings: c,
2683
+ _internalItemRender: l,
2684
+ extra: a,
2685
+ help: u,
2686
+ fieldId: f,
2687
+ marginBottom: b,
2688
+ onErrorVisibleChanged: y,
2689
+ label: E
2690
+ } = e, w = `${t}-item`, g = o.useContext(de), {
2691
+ classNames: p,
2692
+ styles: x
2693
+ } = g, m = o.useMemo(() => {
2694
+ let B = {
2695
+ ...s || g.wrapperCol || {}
2696
+ };
2697
+ return E === null && !r && !s && g.labelCol && [void 0].concat(U(Jt)).forEach((A) => {
2698
+ const Y = A ? [A] : [], W = wt(g.labelCol, Y), D = le(W) ? W : {}, Z = wt(B, Y), ne = le(Z) ? Z : {};
2699
+ "span" in D && !("offset" in ne) && D.span < Zr && (B = Mo(B, [].concat(Y, ["offset"]), D.span));
2700
+ }), B;
2701
+ }, [s, g.wrapperCol, g.labelCol, E, r]), h = F(`${w}-control`, m.className), v = o.useMemo(() => {
2702
+ const {
2703
+ labelCol: B,
2704
+ wrapperCol: k,
2705
+ ...A
2706
+ } = g;
2707
+ return A;
2708
+ }, [g]), C = o.useRef(null), [$, R] = o.useState(0), S = be(a);
2709
+ tn(() => {
2710
+ S && C.current ? R(C.current.clientHeight) : R(0);
2711
+ }, [a, S]);
2712
+ const I = /* @__PURE__ */ o.createElement("div", {
2713
+ className: `${w}-control-input`
2714
+ }, /* @__PURE__ */ o.createElement("div", {
2715
+ className: F(`${w}-control-input-content`, p == null ? void 0 : p.content),
2716
+ style: x == null ? void 0 : x.content
2717
+ }, i)), N = o.useMemo(() => ({
2718
+ prefixCls: t,
2719
+ status: n
2720
+ }), [t, n]), P = b !== null || d.length || c.length ? /* @__PURE__ */ o.createElement(pt.Provider, {
2721
+ value: N
2722
+ }, /* @__PURE__ */ o.createElement(Bn, {
2723
+ fieldId: f,
2724
+ errors: d,
2725
+ warnings: c,
2726
+ help: u,
2727
+ helpStatus: n,
2728
+ className: `${w}-explain-connected`,
2729
+ onVisibleChanged: y
2730
+ })) : null, M = {};
2731
+ f && (M.id = `${f}_extra`);
2732
+ const T = S ? /* @__PURE__ */ o.createElement("div", {
2733
+ ...M,
2734
+ className: F(`${w}-extra`, p == null ? void 0 : p.extra),
2735
+ style: x == null ? void 0 : x.extra,
2736
+ ref: C
2737
+ }, a) : null, q = P || T ? /* @__PURE__ */ o.createElement("div", {
2738
+ className: `${w}-additional`,
2739
+ style: b ? {
2740
+ minHeight: b + $
2741
+ } : {}
2742
+ }, P, T) : null, _ = l && l.mark === "pro_table_render" && l.render ? l.render(e, {
2743
+ input: I,
2744
+ errorList: P,
2745
+ extra: T
2746
+ }) : /* @__PURE__ */ o.createElement(o.Fragment, null, I, q);
2747
+ return /* @__PURE__ */ o.createElement(de.Provider, {
2748
+ value: v
2749
+ }, /* @__PURE__ */ o.createElement(Ct, {
2750
+ ...m,
2751
+ className: h
2752
+ }, _), /* @__PURE__ */ o.createElement(Qr, {
2753
+ prefixCls: t
2754
+ }));
2755
+ }, es = ({
2756
+ prefixCls: e,
2757
+ label: t,
2758
+ htmlFor: n,
2759
+ labelCol: r,
2760
+ labelAlign: s,
2761
+ colon: i,
2762
+ required: d,
2763
+ requiredMark: c,
2764
+ tooltip: l,
2765
+ vertical: a
2766
+ }) => {
2767
+ var q;
2768
+ const [u] = Xe("Form"), {
2769
+ labelAlign: f,
2770
+ labelCol: b,
2771
+ labelWrap: y,
2772
+ colon: E,
2773
+ classNames: w,
2774
+ styles: g,
2775
+ tooltip: p
2776
+ } = o.useContext(de);
2777
+ if (!be(t))
2778
+ return null;
2779
+ const x = r || b || {}, m = s || f, h = `${e}-item-label`, v = F(h, m === "left" && `${h}-left`, x.className, {
2780
+ [`${h}-wrap`]: !!y
2781
+ });
2782
+ let C = t;
2783
+ const $ = i === !0 || E !== !1 && i !== !1;
2784
+ $ && !a && typeof t == "string" && t.trim() && (C = t.replace(/[::]\s*$/, ""));
2785
+ const S = Vr(l, p);
2786
+ if (S) {
2787
+ const _ = /* @__PURE__ */ o.createElement(Uo, {
2788
+ ...S
2789
+ }, /* @__PURE__ */ o.createElement("span", {
2790
+ className: `${e}-item-tooltip`,
2791
+ onClick: (B) => {
2792
+ B.preventDefault();
2793
+ },
2794
+ tabIndex: -1
2795
+ }, S.icon || S.children || /* @__PURE__ */ o.createElement(cn, null)));
2796
+ C = /* @__PURE__ */ o.createElement(o.Fragment, null, C, _);
2797
+ }
2798
+ const I = c === "optional", N = J(c), P = c === !1;
2799
+ N ? C = c(C, {
2800
+ required: !!d
2801
+ }) : I && !d && (C = /* @__PURE__ */ o.createElement(o.Fragment, null, C, /* @__PURE__ */ o.createElement("span", {
2802
+ className: `${e}-item-optional`
2803
+ }, (u == null ? void 0 : u.optional) || ((q = Zt.Form) == null ? void 0 : q.optional))));
2804
+ let M;
2805
+ P ? M = "hidden" : (I || N) && (M = "optional");
2806
+ const T = F(w == null ? void 0 : w.label, {
2807
+ [`${e}-item-required`]: d,
2808
+ [`${e}-item-required-mark-${M}`]: M,
2809
+ [`${e}-item-no-colon`]: !$
2810
+ });
2811
+ return /* @__PURE__ */ o.createElement(Ct, {
2812
+ ...x,
2813
+ className: v
2814
+ }, /* @__PURE__ */ o.createElement("label", {
2815
+ htmlFor: n,
2816
+ className: T,
2817
+ style: g == null ? void 0 : g.label,
2818
+ title: typeof t == "string" ? t : void 0
2819
+ }, C));
2820
+ }, ts = {
2821
+ success: rn,
2822
+ warning: on,
2823
+ error: Ut,
2824
+ validating: Ro
2825
+ };
2826
+ function zn({
2827
+ children: e,
2828
+ errors: t,
2829
+ warnings: n,
2830
+ hasFeedback: r,
2831
+ validateStatus: s,
2832
+ prefixCls: i,
2833
+ meta: d,
2834
+ noStyle: c,
2835
+ name: l
2836
+ }) {
2837
+ const a = `${i}-item`, {
2838
+ feedbackIcons: u
2839
+ } = o.useContext(de), f = ln(t, n, d, null, !!r, s), {
2840
+ isFormItemInput: b,
2841
+ status: y,
2842
+ hasFeedback: E,
2843
+ feedbackIcon: w,
2844
+ name: g
2845
+ } = o.useContext(je), p = o.useMemo(() => {
2846
+ var h;
2847
+ let x;
2848
+ if (r) {
2849
+ const v = r !== !0 && r.icons || u, C = f && ((h = v == null ? void 0 : v({
2850
+ status: f,
2851
+ errors: t,
2852
+ warnings: n
2853
+ })) == null ? void 0 : h[f]), $ = f ? ts[f] : null;
2854
+ x = C !== !1 && $ ? /* @__PURE__ */ o.createElement("span", {
2855
+ className: F(`${a}-feedback-icon`, `${a}-feedback-icon-${f}`)
2856
+ }, C || /* @__PURE__ */ o.createElement($, null)) : null;
2857
+ }
2858
+ const m = {
2859
+ status: f || "",
2860
+ errors: t,
2861
+ warnings: n,
2862
+ hasFeedback: !!r,
2863
+ feedbackIcon: x,
2864
+ isFormItemInput: !0,
2865
+ name: l
2866
+ };
2867
+ return c && (m.status = (f ?? y) || "", m.isFormItemInput = b, m.hasFeedback = !!(r ?? E), m.feedbackIcon = r !== void 0 ? m.feedbackIcon : w, m.name = l ?? g), m;
2868
+ }, [f, t, n, r, u, c, l, b, y, a, E, w, g]);
2869
+ return /* @__PURE__ */ o.createElement(je.Provider, {
2870
+ value: p
2871
+ }, e);
2872
+ }
2873
+ function ns(e) {
2874
+ const {
2875
+ prefixCls: t,
2876
+ className: n,
2877
+ rootClassName: r,
2878
+ style: s,
2879
+ help: i,
2880
+ errors: d,
2881
+ warnings: c,
2882
+ validateStatus: l,
2883
+ meta: a,
2884
+ hasFeedback: u,
2885
+ hidden: f,
2886
+ children: b,
2887
+ fieldId: y,
2888
+ required: E,
2889
+ isRequired: w,
2890
+ onSubItemMetaChange: g,
2891
+ layout: p,
2892
+ name: x,
2893
+ ...m
2894
+ } = e, h = `${t}-item`, {
2895
+ requiredMark: v,
2896
+ layout: C
2897
+ } = o.useContext(de), $ = p || C, R = $ === "vertical", S = o.useRef(null), I = Ge(d), N = Ge(c), P = Ie(i), M = !!(P || I.length || N.length), T = !!S.current && Fo(S.current), [q, _] = o.useState(null);
2898
+ tn(() => {
2899
+ if (M && S.current) {
2900
+ const W = getComputedStyle(S.current);
2901
+ _(Number.parseInt(W.marginBottom, 10));
2902
+ }
2903
+ }, [M, T]);
2904
+ const B = (W) => {
2905
+ !W && !M && _(null);
2906
+ }, A = ((W = !1) => {
2907
+ const D = W ? I : a.errors, Z = W ? N : a.warnings;
2908
+ return ln(D, Z, a, "", !!u, l);
2909
+ })(), Y = F(h, n, r, {
2910
+ [`${h}-with-help`]: P || I.length || N.length,
2911
+ // Status
2912
+ [`${h}-has-feedback`]: A && u,
2913
+ [`${h}-has-success`]: A === "success",
2914
+ [`${h}-has-warning`]: A === "warning",
2915
+ [`${h}-has-error`]: A === "error",
2916
+ [`${h}-is-validating`]: A === "validating",
2917
+ [`${h}-hidden`]: f,
2918
+ // Layout
2919
+ [`${h}-${$}`]: $
2920
+ });
2921
+ return /* @__PURE__ */ o.createElement("div", {
2922
+ className: Y,
2923
+ style: s,
2924
+ ref: S
2925
+ }, /* @__PURE__ */ o.createElement(Tn, {
2926
+ className: `${h}-row`,
2927
+ ...He(m, [
2928
+ "_internalItemRender",
2929
+ "colon",
2930
+ "dependencies",
2931
+ "extra",
2932
+ "fieldKey",
2933
+ "getValueFromEvent",
2934
+ "getValueProps",
2935
+ "htmlFor",
2936
+ "id",
2937
+ // It is deprecated because `htmlFor` is its replacement.
2938
+ "initialValue",
2939
+ "isListField",
2940
+ "label",
2941
+ "labelAlign",
2942
+ "labelCol",
2943
+ "labelWrap",
2944
+ "messageVariables",
2945
+ "name",
2946
+ "normalize",
2947
+ "noStyle",
2948
+ "preserve",
2949
+ "requiredMark",
2950
+ "rules",
2951
+ "shouldUpdate",
2952
+ "trigger",
2953
+ "tooltip",
2954
+ "validateFirst",
2955
+ "validateTrigger",
2956
+ "valuePropName",
2957
+ "wrapperCol",
2958
+ "validateDebounce"
2959
+ ])
2960
+ }, /* @__PURE__ */ o.createElement(es, {
2961
+ htmlFor: y,
2962
+ ...e,
2963
+ requiredMark: v,
2964
+ required: E ?? w,
2965
+ prefixCls: t,
2966
+ vertical: R
2967
+ }), /* @__PURE__ */ o.createElement(Jr, {
2968
+ ...e,
2969
+ ...a,
2970
+ errors: I,
2971
+ warnings: N,
2972
+ prefixCls: t,
2973
+ status: A,
2974
+ help: i,
2975
+ marginBottom: q,
2976
+ onErrorVisibleChanged: B
2977
+ }, /* @__PURE__ */ o.createElement(nn.Provider, {
2978
+ value: g
2979
+ }, /* @__PURE__ */ o.createElement(zn, {
2980
+ prefixCls: t,
2981
+ meta: a,
2982
+ errors: a.errors,
2983
+ warnings: a.warnings,
2984
+ hasFeedback: u,
2985
+ // Already calculated
2986
+ validateStatus: A,
2987
+ name: x
2988
+ }, b)))), !!q && /* @__PURE__ */ o.createElement("div", {
2989
+ className: `${h}-margin-offset`,
2990
+ style: {
2991
+ marginBottom: -q
2992
+ }
2993
+ }));
2994
+ }
2995
+ const os = "__SPLIT__";
2996
+ function rs(e, t) {
2997
+ const n = Object.keys(e), r = Object.keys(t);
2998
+ return n.length === r.length && n.every((s) => {
2999
+ const i = e[s], d = t[s];
3000
+ return i === d || J(i) || J(d);
3001
+ });
3002
+ }
3003
+ const ss = /* @__PURE__ */ o.memo((e) => e.children, (e, t) => rs(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((n, r) => n === t.childProps[r]));
3004
+ function _t() {
3005
+ return {
3006
+ errors: [],
3007
+ warnings: [],
3008
+ touched: !1,
3009
+ validating: !1,
3010
+ name: [],
3011
+ validated: !1
3012
+ };
3013
+ }
3014
+ function as(e) {
3015
+ const {
3016
+ name: t,
3017
+ noStyle: n,
3018
+ className: r,
3019
+ dependencies: s,
3020
+ prefixCls: i,
3021
+ shouldUpdate: d,
3022
+ rules: c,
3023
+ children: l,
3024
+ required: a,
3025
+ label: u,
3026
+ messageVariables: f,
3027
+ trigger: b = "onChange",
3028
+ validateTrigger: y,
3029
+ hidden: E,
3030
+ help: w,
3031
+ layout: g
3032
+ } = e, {
3033
+ getPrefixCls: p
3034
+ } = o.useContext(he), {
3035
+ name: x
3036
+ } = o.useContext(de), m = kr(l), h = J(m), v = o.useContext(nn), {
3037
+ validateTrigger: C
3038
+ } = o.useContext(To), $ = Ie(y) ? y : C, R = Ie(t), S = p("form", i), I = Oe(S), [N, P] = $t(S, I), M = Ke("Form.Item");
3039
+ process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && M(t !== null, "usage", "`null` is passed as `name` property");
3040
+ const T = o.useContext(Oo), q = o.useRef(null), [_, B] = Kr({}), [k, A] = At(() => _t()), Y = (H) => {
3041
+ const K = T == null ? void 0 : T.getKey(H.name);
3042
+ if (A(H.destroy ? _t() : H, !0), n && w !== !1 && v) {
3043
+ let z = H.name;
3044
+ if (H.destroy)
3045
+ z = q.current || z;
3046
+ else if (K !== void 0) {
3047
+ const [ee, ae] = K;
3048
+ z = [ee].concat(U(ae)), q.current = z;
3049
+ }
3050
+ v(H, z);
3051
+ }
3052
+ }, W = (H, K) => {
3053
+ B((z) => {
3054
+ const ee = {
3055
+ ...z
3056
+ }, ue = [].concat(U(H.name.slice(0, -1)), U(K)).join(os);
3057
+ return H.destroy ? delete ee[ue] : ee[ue] = H, ee;
3058
+ });
3059
+ }, [D, Z] = o.useMemo(() => {
3060
+ const H = U(k.errors), K = U(k.warnings);
3061
+ return Object.values(_).forEach((z) => {
3062
+ H.push.apply(H, U(z.errors || [])), K.push.apply(K, U(z.warnings || []));
3063
+ }), [H, K];
3064
+ }, [_, k.errors, k.warnings]), ne = Ur();
3065
+ function L(H, K, z) {
3066
+ return n && !E ? /* @__PURE__ */ o.createElement(zn, {
3067
+ prefixCls: S,
3068
+ hasFeedback: e.hasFeedback,
3069
+ validateStatus: e.validateStatus,
3070
+ meta: k,
3071
+ errors: D,
3072
+ warnings: Z,
3073
+ noStyle: !0,
3074
+ name: t
3075
+ }, H) : /* @__PURE__ */ o.createElement(ns, {
3076
+ key: "row",
3077
+ ...e,
3078
+ className: F(r, P, I, N),
3079
+ prefixCls: S,
3080
+ fieldId: K,
3081
+ isRequired: z,
3082
+ errors: D,
3083
+ warnings: Z,
3084
+ meta: k,
3085
+ onSubItemMetaChange: W,
3086
+ layout: g,
3087
+ name: t
3088
+ }, H);
3089
+ }
3090
+ if (!R && !h && !s)
3091
+ return L(m);
3092
+ let se = {};
3093
+ return typeof u == "string" ? se.label = u : t && (se.label = String(t)), f && (se = {
3094
+ ...se,
3095
+ ...f
3096
+ }), /* @__PURE__ */ o.createElement(Vo, {
3097
+ ...e,
3098
+ messageVariables: se,
3099
+ trigger: b,
3100
+ validateTrigger: $,
3101
+ onMetaChange: Y
3102
+ }, (H, K, z) => {
3103
+ const ee = et(t).length && K ? K.name : [], ae = Yo(ee, x), ue = a !== void 0 ? a : c == null ? void 0 : c.some((j) => {
3104
+ if (le(j) && j.required && !j.warningOnly)
3105
+ return !0;
3106
+ if (J(j)) {
3107
+ const Q = j(z);
3108
+ return (Q == null ? void 0 : Q.required) && !(Q != null && Q.warningOnly);
3109
+ }
3110
+ return !1;
3111
+ }), te = {
3112
+ ...H
3113
+ };
3114
+ let G = null;
3115
+ if (process.env.NODE_ENV !== "production" && M(!(d && s), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(m) && R)
3116
+ process.env.NODE_ENV !== "production" && M(!1, "usage", "A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."), G = m;
3117
+ else if (h && (!(d || s) || R))
3118
+ process.env.NODE_ENV !== "production" && M(!!(d || s), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && M(!R, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
3119
+ else if (s && !h && !R)
3120
+ process.env.NODE_ENV !== "production" && M(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
3121
+ else if (/* @__PURE__ */ o.isValidElement(m)) {
3122
+ process.env.NODE_ENV !== "production" && M(m.props.defaultValue === void 0, "usage", "`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");
3123
+ const j = {
3124
+ ...m.props,
3125
+ ...te
3126
+ };
3127
+ j.id || (j.id = ae);
3128
+ const Q = be(e.extra);
3129
+ if (w || D.length > 0 || Z.length > 0 || Q) {
3130
+ const X = [];
3131
+ (w || D.length > 0 || Z.length > 0) && X.push(`${ae}_help`), Q && X.push(`${ae}_extra`), j["aria-describedby"] = X.join(" ");
3132
+ }
3133
+ D.length > 0 && (j["aria-invalid"] = "true"), ue && (j["aria-required"] = "true"), Bo(m) && (j.ref = ne(ee, m)), new Set([].concat(U(et(b)), U(et($)))).forEach((X) => {
3134
+ j[X] = (...fe) => {
3135
+ var Ee, pe, ge;
3136
+ (Ee = te[X]) == null || Ee.call(te, ...fe), (ge = (pe = m.props)[X]) == null || ge.call(pe, ...fe);
3137
+ };
3138
+ });
3139
+ const ye = [j["aria-required"], j["aria-invalid"], j["aria-describedby"]];
3140
+ G = /* @__PURE__ */ o.createElement(ss, {
3141
+ control: te,
3142
+ update: m,
3143
+ childProps: ye
3144
+ }, Lo(m, j));
3145
+ } else h && (d || s) && !R ? G = m(z) : (process.env.NODE_ENV !== "production" && M(!ee.length || !!n, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), G = m);
3146
+ return L(G, ae, ue);
3147
+ });
3148
+ }
3149
+ const Hn = as;
3150
+ Hn.useStatus = Dn;
3151
+ const ls = ({
3152
+ prefixCls: e,
3153
+ children: t,
3154
+ ...n
3155
+ }) => {
3156
+ if (process.env.NODE_ENV !== "production") {
3157
+ const d = Ke("Form.List");
3158
+ process.env.NODE_ENV !== "production" && d(Pe(n.name) || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
3159
+ }
3160
+ const {
3161
+ getPrefixCls: r
3162
+ } = o.useContext(he), s = r("form", e), i = o.useMemo(() => ({
3163
+ prefixCls: s,
3164
+ status: "error"
3165
+ }), [s]);
3166
+ return /* @__PURE__ */ o.createElement(Do, {
3167
+ ...n
3168
+ }, (d, c, l) => /* @__PURE__ */ o.createElement(pt.Provider, {
3169
+ value: i
3170
+ }, t(d.map((a) => ({
3171
+ ...a,
3172
+ fieldKey: a.key
3173
+ })), c, {
3174
+ errors: l.errors,
3175
+ warnings: l.warnings
3176
+ })));
3177
+ };
3178
+ function is() {
3179
+ const {
3180
+ form: e
3181
+ } = o.useContext(de);
3182
+ return e;
3183
+ }
3184
+ const xe = Ln;
3185
+ xe.Item = Hn;
3186
+ xe.List = ls;
3187
+ xe.ErrorList = Bn;
3188
+ xe.useForm = an;
3189
+ xe.useFormInstance = is;
3190
+ xe.useWatch = zo;
3191
+ xe.Provider = en;
3192
+ const cs = (e) => {
3193
+ const {
3194
+ prefixCls: t,
3195
+ className: n,
3196
+ closeIcon: r,
3197
+ closable: s,
3198
+ type: i,
3199
+ title: d,
3200
+ children: c,
3201
+ footer: l,
3202
+ style: a,
3203
+ classNames: u,
3204
+ styles: f,
3205
+ ...b
3206
+ } = e, {
3207
+ getPrefixCls: y
3208
+ } = o.useContext(he), {
3209
+ className: E,
3210
+ style: w,
3211
+ classNames: g,
3212
+ styles: p
3213
+ } = Te("modal"), x = y(), m = t || y("modal"), h = Oe(x), [v, C] = xn(m, h), $ = We(w), R = We(a), [S, I] = ft([g, u], [p, $, f, R], {
3214
+ props: e
3215
+ }), N = `${m}-confirm`;
3216
+ let P = {};
3217
+ return i ? P = {
3218
+ closable: s ?? !1,
3219
+ title: "",
3220
+ footer: "",
3221
+ children: /* @__PURE__ */ o.createElement(En, {
3222
+ ...e,
3223
+ prefixCls: m,
3224
+ confirmPrefixCls: N,
3225
+ rootPrefixCls: x,
3226
+ content: c
3227
+ })
3228
+ } : P = {
3229
+ closable: s ?? !0,
3230
+ title: d,
3231
+ footer: l !== null && /* @__PURE__ */ o.createElement(hn, {
3232
+ ...e
3233
+ }),
3234
+ children: c
3235
+ }, /* @__PURE__ */ o.createElement(gt, {
3236
+ prefixCls: m,
3237
+ className: F(v, `${m}-pure-panel`, i && N, i && `${N}-${i}`, n, E, C, h, S.root),
3238
+ style: I.root,
3239
+ ...b,
3240
+ closeIcon: gn(m, r),
3241
+ closable: s,
3242
+ classNames: S,
3243
+ styles: I,
3244
+ ...P
3245
+ });
3246
+ }, ds = Qo(cs);
3247
+ function _n(e) {
3248
+ return Le(wn(e));
3249
+ }
3250
+ const ie = yn;
3251
+ ie.useModal = Tr;
3252
+ ie.info = function(t) {
3253
+ return Le(In(t));
3254
+ };
3255
+ ie.success = function(t) {
3256
+ return Le(Pn(t));
3257
+ };
3258
+ ie.error = function(t) {
3259
+ return Le(Mn(t));
3260
+ };
3261
+ ie.warning = _n;
3262
+ ie.warn = _n;
3263
+ ie.confirm = function(t) {
3264
+ return Le(Rn(t));
3265
+ };
3266
+ ie.destroyAll = function() {
3267
+ for (; $e.length; ) {
3268
+ const t = $e.pop();
3269
+ t && t();
3270
+ }
3271
+ };
3272
+ ie.config = Mr;
3273
+ ie._InternalPanelDoNotUseOrYouWillBeFired = ds;
3274
+ process.env.NODE_ENV !== "production" && (ie.displayName = "Modal");
3275
+ export {
3276
+ dn as A,
3277
+ xe as F,
3278
+ ie as M
3279
+ };