chainlesschain 0.162.170 → 0.162.172

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 (186) hide show
  1. package/bin/chainlesschain.js +8 -0
  2. package/package.json +6 -1
  3. package/src/assets/web-panel/assets/{AIOps-BTXN24I3.js → AIOps-oKCWU-LK.js} +1 -1
  4. package/src/assets/web-panel/assets/{ActionButton-BBB1VF4j.js → ActionButton-4CBfc5E4.js} +1 -1
  5. package/src/assets/web-panel/assets/{Analytics-BVCXq0k6.js → Analytics-BEmR-k_b.js} +3 -3
  6. package/src/assets/web-panel/assets/{AppLayout-C3EOo2s5.js → AppLayout-D6a4ZnrC.js} +5 -5
  7. package/src/assets/web-panel/assets/{Artifacts-CsJTZSMv.js → Artifacts-BRWIHCPl.js} +1 -1
  8. package/src/assets/web-panel/assets/{Audit-CP0AllJ_.js → Audit-CzGKlkTc.js} +1 -1
  9. package/src/assets/web-panel/assets/{BackgroundAgents-BCAjs08m.js → BackgroundAgents-CmMYN10o.js} +1 -1
  10. package/src/assets/web-panel/assets/{Backup-BxQI5XH4.js → Backup-CJ6e0ukD.js} +1 -1
  11. package/src/assets/web-panel/assets/{BaseInput-Bu-PNzC5.js → BaseInput-BpEvDrNt.js} +1 -1
  12. package/src/assets/web-panel/assets/{Chat-DjPQynup.js → Chat-wWuwwjKu.js} +4 -4
  13. package/src/assets/web-panel/assets/{ChatBubbleRenderer-CygkRopu.js → ChatBubbleRenderer-CJLyGo_u.js} +1 -1
  14. package/src/assets/web-panel/assets/{Checkbox-BxL6xm7Z.js → Checkbox-C6pW60Br.js} +1 -1
  15. package/src/assets/web-panel/assets/{Codegen-CcyB7h_6.js → Codegen-DF-nP22Y.js} +1 -1
  16. package/src/assets/web-panel/assets/{Col-8NQiKJJx.js → Col-BuueEwZW.js} +1 -1
  17. package/src/assets/web-panel/assets/{Community-B31qy5OS.js → Community-DuE0Yzwr.js} +1 -1
  18. package/src/assets/web-panel/assets/{Compact-C-5fAsZ4.js → Compact-BrHim8EB.js} +1 -1
  19. package/src/assets/web-panel/assets/{Compliance-BTSccvF0.js → Compliance-DgAet8f_.js} +1 -1
  20. package/src/assets/web-panel/assets/{Cowork-BXctU9IK.js → Cowork-B9wY05lx.js} +3 -3
  21. package/src/assets/web-panel/assets/{Cron-CxVFX9NG.js → Cron-CvNBxfJX.js} +2 -2
  22. package/src/assets/web-panel/assets/{Crosschain-DEF3dq8M.js → Crosschain-BnZRENa0.js} +1 -1
  23. package/src/assets/web-panel/assets/{DID-BmKcE9he.js → DID-DiqYLHTI.js} +2 -2
  24. package/src/assets/web-panel/assets/{Dashboard-CECBq_wG.js → Dashboard-t3SsRzZL.js} +2 -2
  25. package/src/assets/web-panel/assets/{Dropdown-U-iuPB0n.js → Dropdown-BCjMLam9.js} +1 -1
  26. package/src/assets/web-panel/assets/{EmailListRenderer-D8BIlSPL.js → EmailListRenderer-D2v9-IHJ.js} +1 -1
  27. package/src/assets/web-panel/assets/{FamilyGuardDashboard-BzQGfUH-.js → FamilyGuardDashboard-_iQu35qa.js} +1 -1
  28. package/src/assets/web-panel/assets/{Federation-4_WlOqLZ.js → Federation-Bkty8VqB.js} +1 -1
  29. package/src/assets/web-panel/assets/{FormItemContext-gtrW-DdF.js → FormItemContext-DdPW81BY.js} +1 -1
  30. package/src/assets/web-panel/assets/{GenericCardRenderer-BLcvJJB6.js → GenericCardRenderer-DrNYM4Zj.js} +1 -1
  31. package/src/assets/web-panel/assets/{Git-Bk0janGD.js → Git-BjF-B2h0.js} +2 -2
  32. package/src/assets/web-panel/assets/{Governance-CcfyMlV8.js → Governance-DPhGdJ1v.js} +1 -1
  33. package/src/assets/web-panel/assets/{Inference-CBLrAf4M.js → Inference--PPksOVj.js} +1 -1
  34. package/src/assets/web-panel/assets/{KnowledgeGraph-ClguhteZ.js → KnowledgeGraph-y5WdV_JV.js} +1 -1
  35. package/src/assets/web-panel/assets/{Logs-Dp_oeKfJ.js → Logs-B6_x7zba.js} +2 -2
  36. package/src/assets/web-panel/assets/MarkdownRenderer-Bg8zSyF8.js +1 -0
  37. package/src/assets/web-panel/assets/{Marketplace-BHk50smM.js → Marketplace-CHpfMu1A.js} +1 -1
  38. package/src/assets/web-panel/assets/{McpTools-BAY3CV6J.js → McpTools-qqjtX3Cf.js} +5 -5
  39. package/src/assets/web-panel/assets/{Memory-w0pG2AKx.js → Memory-hASSgxbw.js} +2 -2
  40. package/src/assets/web-panel/assets/{MobileBridge-C0VkDUE3.js → MobileBridge-Dwh7Bhcf.js} +1 -1
  41. package/src/assets/web-panel/assets/{MobileProjects-BCvQ80I9.js → MobileProjects-D09voh7W.js} +1 -1
  42. package/src/assets/web-panel/assets/{Mtc-DSIl41Tt.js → Mtc-9G1dXeId.js} +5 -5
  43. package/src/assets/web-panel/assets/{MtcAudit-D1mzUlIr.js → MtcAudit-CWtYXj6f.js} +2 -2
  44. package/src/assets/web-panel/assets/{Multisig-CeJz4VSS.js → Multisig-bDI0EnDk.js} +3 -3
  45. package/src/assets/web-panel/assets/{NLProgramming-_O3aweu8.js → NLProgramming-CTanRaBP.js} +1 -1
  46. package/src/assets/web-panel/assets/{Notes-Dt7_pO86.js → Notes-BdQENJFv.js} +3 -3
  47. package/src/assets/web-panel/assets/{NotificationSettings-Dhg3Nktv.js → NotificationSettings-JvnQdStO.js} +1 -1
  48. package/src/assets/web-panel/assets/{OrderTableRenderer-QsAPcTb2.js → OrderTableRenderer-BMGL9RPJ.js} +1 -1
  49. package/src/assets/web-panel/assets/{Organization-BuiaUPkv.js → Organization-sBZnIb2D.js} +4 -4
  50. package/src/assets/web-panel/assets/{Overflow-C3jb6knl.js → Overflow-CzOhNGE6.js} +1 -1
  51. package/src/assets/web-panel/assets/{P2P-BOMyrLkb.js → P2P-D_D2yqda.js} +2 -2
  52. package/src/assets/web-panel/assets/{PdhVaultBrowser-UvLStCgS.js → PdhVaultBrowser-D5lKd_Kx.js} +3 -3
  53. package/src/assets/web-panel/assets/{Permissions-B9cN0dJH.js → Permissions-L5s-wENg.js} +4 -4
  54. package/src/assets/web-panel/assets/{PersonalDataHub-DNjW5qro.js → PersonalDataHub-iI49x6cH.js} +3 -3
  55. package/src/assets/web-panel/assets/{Pipeline-CFLyZ6Sh.js → Pipeline-DPHqyk09.js} +1 -1
  56. package/src/assets/web-panel/assets/{Privacy-D3w6vOxf.js → Privacy-B-ZL9360.js} +1 -1
  57. package/src/assets/web-panel/assets/{ProjectInit-cwcVsn8K.js → ProjectInit-f05YzsN2.js} +2 -2
  58. package/src/assets/web-panel/assets/{ProjectSettings-aUoAroc-.js → ProjectSettings-DZLKS6ex.js} +2 -2
  59. package/src/assets/web-panel/assets/{Projects-CrzQv7Zv.js → Projects-ButF3DyM.js} +1 -1
  60. package/src/assets/web-panel/assets/{Providers-jZaPizKR.js → Providers-CFDSXnkR.js} +1 -1
  61. package/src/assets/web-panel/assets/{QrScannerModal-DNzmwcfg.js → QrScannerModal-1N6Sdxdm.js} +1 -1
  62. package/src/assets/web-panel/assets/{QuickAsk-m-5Gwt70.js → QuickAsk-tEqRwRSR.js} +1 -1
  63. package/src/assets/web-panel/assets/{Recommend-CrrAjNxP.js → Recommend-D4ZVHIwz.js} +1 -1
  64. package/src/assets/web-panel/assets/{RemoteSession-BDCMjRFe.js → RemoteSession-Cqm32lhm.js} +2 -2
  65. package/src/assets/web-panel/assets/{Reputation-CPCt1Jc8.js → Reputation-BnjVsU_a.js} +1 -1
  66. package/src/assets/web-panel/assets/{Row-C-RorxHs.js → Row-DzpHyTuz.js} +1 -1
  67. package/src/assets/web-panel/assets/{RssFeed-CnQs4TuY.js → RssFeed-Du5-ouwx.js} +3 -3
  68. package/src/assets/web-panel/assets/{Search-B1jkeFZY.js → Search-CYztyf2o.js} +1 -1
  69. package/src/assets/web-panel/assets/{Security-CGKI3vvd.js → Security-C1hVxy8Z.js} +3 -3
  70. package/src/assets/web-panel/assets/{Services-DQjesYF8.js → Services-BscEbAZ2.js} +2 -2
  71. package/src/assets/web-panel/assets/{Skeleton-C9Ipj0A6.js → Skeleton-B2sMLqKQ.js} +1 -1
  72. package/src/assets/web-panel/assets/{Skills-D2j54i9O.js → Skills-CoHKax06.js} +1 -1
  73. package/src/assets/web-panel/assets/{Sla-xhrVjTeb.js → Sla-Bpie5KO6.js} +1 -1
  74. package/src/assets/web-panel/assets/{SpeechSettings-C6KMOUCa.js → SpeechSettings-BX63ijn5.js} +1 -1
  75. package/src/assets/web-panel/assets/{SyncSettings-CmIPU5wR.js → SyncSettings-Bf72so5A.js} +2 -2
  76. package/src/assets/web-panel/assets/{Tasks-B-T1J42r.js → Tasks-CVB2PZk4.js} +1 -1
  77. package/src/assets/web-panel/assets/{Templates-Aq669sjw.js → Templates-q0qyclJx.js} +1 -1
  78. package/src/assets/web-panel/assets/{Tenant-BKWUWNXB.js → Tenant-CW-W-i0k.js} +1 -1
  79. package/src/assets/web-panel/assets/{Terminal-DEeAvA8L.js → Terminal-D7QoPiXQ.js} +2 -2
  80. package/src/assets/web-panel/assets/{TimelineRenderer-C465ySdn.js → TimelineRenderer-BaRDAbyA.js} +1 -1
  81. package/src/assets/web-panel/assets/{Tokens-BgVqF-bX.js → Tokens-D6U4PRW8.js} +1 -1
  82. package/src/assets/web-panel/assets/{Trigger-BMNHmxwH.js → Trigger-ClBDWdLo.js} +1 -1
  83. package/src/assets/web-panel/assets/{Trust-B_adk89L.js → Trust-C_M6rWPq.js} +1 -1
  84. package/src/assets/web-panel/assets/{UkeySign-Biw38mog.js → UkeySign-bXHx8s4C.js} +1 -1
  85. package/src/assets/web-panel/assets/{VideoEditing-AC-eaw5k.js → VideoEditing-BcIt_ieI.js} +1 -1
  86. package/src/assets/web-panel/assets/{Wallet-8lQ5_t0X.js → Wallet-Dd-4jcLs.js} +4 -4
  87. package/src/assets/web-panel/assets/{WebAuthn-JDmH_-DF.js → WebAuthn-B4F6yxQK.js} +5 -5
  88. package/src/assets/web-panel/assets/{WorkflowEditor-DHQAdITG.js → WorkflowEditor-BEHkpfJq.js} +1 -1
  89. package/src/assets/web-panel/assets/{chat-C3qauUVv.js → chat-D7hhRpIO.js} +1 -1
  90. package/src/assets/web-panel/assets/{colors-DLP70JGe.js → colors-AMRhrRzS.js} +1 -1
  91. package/src/assets/web-panel/assets/{compact-item-DjsoqA5t.js → compact-item-BYpsOET5.js} +1 -1
  92. package/src/assets/web-panel/assets/{createContext-CfEdl1in.js → createContext-CoUkR4LQ.js} +1 -1
  93. package/src/assets/web-panel/assets/devWarning-BRylvxzY.js +1 -0
  94. package/src/assets/web-panel/assets/{hasIn-DWwHHlBG.js → hasIn-CJKJMKki.js} +1 -1
  95. package/src/assets/web-panel/assets/{index-Dfka-vzJ.js → index-8pmZHnQU.js} +1 -1
  96. package/src/assets/web-panel/assets/{index-DgQ92xdO.js → index-BBJFiZ9Y.js} +1 -1
  97. package/src/assets/web-panel/assets/{index-VtCz3A64.js → index-BP69Ul3S.js} +1 -1
  98. package/src/assets/web-panel/assets/{index-C8wrUFzY.js → index-BTFHYauX.js} +1 -1
  99. package/src/assets/web-panel/assets/{index-D5VL0NYy.js → index-BUJt2ar4.js} +1 -1
  100. package/src/assets/web-panel/assets/{index-B-rD2rhi.js → index-Bj30Aq6h.js} +1 -1
  101. package/src/assets/web-panel/assets/{index-gu8zBhtp.js → index-BlpuqGt5.js} +1 -1
  102. package/src/assets/web-panel/assets/index-Bzvxvzlk.js +1 -0
  103. package/src/assets/web-panel/assets/{index-CgruUvB3.js → index-C19xZKIP.js} +1 -1
  104. package/src/assets/web-panel/assets/{index-DTEcPJGf.js → index-C6bg22vc.js} +1 -1
  105. package/src/assets/web-panel/assets/{index-C4k6JGm_.js → index-CH6XEWdj.js} +1 -1
  106. package/src/assets/web-panel/assets/{index-C0xMzvk8.js → index-CK1Kknpl.js} +1 -1
  107. package/src/assets/web-panel/assets/{index-UEbYl2pu.js → index-CNyLbBGj.js} +1 -1
  108. package/src/assets/web-panel/assets/{index-Dmt1HDWZ.js → index-COg__P6M.js} +19 -19
  109. package/src/assets/web-panel/assets/{index-ArZCi1rK.js → index-CRlJOWsf.js} +1 -1
  110. package/src/assets/web-panel/assets/{index-BqPuyN4p.js → index-CScG8TAY.js} +1 -1
  111. package/src/assets/web-panel/assets/{index-B4gCFHtB.js → index-CdL9cQIE.js} +1 -1
  112. package/src/assets/web-panel/assets/{index-C47EiQ7d.js → index-Ck35u_0v.js} +1 -1
  113. package/src/assets/web-panel/assets/{index-Dn2rNMmv.js → index-CkLZQtsh.js} +1 -1
  114. package/src/assets/web-panel/assets/{index-T5emAyFT.js → index-DFoujkWD.js} +1 -1
  115. package/src/assets/web-panel/assets/{index-DbFnfyKh.js → index-DFwh0R9h.js} +1 -1
  116. package/src/assets/web-panel/assets/{index-CsEk9s04.js → index-DStN9E7o.js} +1 -1
  117. package/src/assets/web-panel/assets/{index-DTDpF8MS.js → index-DcozYrXV.js} +1 -1
  118. package/src/assets/web-panel/assets/{index-_g5q2hF3.js → index-De5mYp86.js} +1 -1
  119. package/src/assets/web-panel/assets/{index-Bp_WNm2_.js → index-DfEVOzNb.js} +1 -1
  120. package/src/assets/web-panel/assets/{index-OfMwkFIo.js → index-Dfna8sKa.js} +1 -1
  121. package/src/assets/web-panel/assets/{index-BcDeMCUK.js → index-DjbMaBLf.js} +1 -1
  122. package/src/assets/web-panel/assets/index-Dl6H3dxS.js +1 -0
  123. package/src/assets/web-panel/assets/{index-D-te-S9f.js → index-Dpl_SJuk.js} +1 -1
  124. package/src/assets/web-panel/assets/{index-DKsWujXP.js → index-DyF9uYzB.js} +1 -1
  125. package/src/assets/web-panel/assets/{index-BydBh7oT.js → index-HF3GvATm.js} +1 -1
  126. package/src/assets/web-panel/assets/{index-DAcBi6F-.js → index-OJmXGn8n.js} +1 -1
  127. package/src/assets/web-panel/assets/{index-CNeLedtU.js → index-ZPdNPhUq.js} +1 -1
  128. package/src/assets/web-panel/assets/{index-Ds1BfT_C.js → index-djikyGz3.js} +1 -1
  129. package/src/assets/web-panel/assets/{index-CbF27GqZ.js → index-gQWWnP3_.js} +1 -1
  130. package/src/assets/web-panel/assets/{index-CnhJbWsl.js → index-owVbLJnH.js} +1 -1
  131. package/src/assets/web-panel/assets/{index-Lh0e2afo.js → index-tWEDZHzj.js} +1 -1
  132. package/src/assets/web-panel/assets/{index-DbjUePgq.js → index-ttTl376q.js} +1 -1
  133. package/src/assets/web-panel/assets/{index-nuZaMsMy.js → index-z5rYvstM.js} +1 -1
  134. package/src/assets/web-panel/assets/{initDefaultProps-C_pMmi75.js → initDefaultProps-B_Uk-wzg.js} +1 -1
  135. package/src/assets/web-panel/assets/{motion-BvKgS96o.js → motion-ez7H8y8b.js} +1 -1
  136. package/src/assets/web-panel/assets/{move-C-1U4R1I.js → move-CKWUhhhX.js} +1 -1
  137. package/src/assets/web-panel/assets/{mtc-parser-D6BC968-.js → mtc-parser-DkNl7ocj.js} +1 -1
  138. package/src/assets/web-panel/assets/{omit-DxOZvcGQ.js → omit-C0uA2ytw.js} +1 -1
  139. package/src/assets/web-panel/assets/{pickAttrs-LpzmHdkw.js → pickAttrs-CySaWMPl.js} +1 -1
  140. package/src/assets/web-panel/assets/{placementArrow-Bm--qom1.js → placementArrow-BWL3-3xo.js} +1 -1
  141. package/src/assets/web-panel/assets/{responsiveObserve-CVZZlhJf.js → responsiveObserve-BRy_wJog.js} +1 -1
  142. package/src/assets/web-panel/assets/{slide-DD1xINGx.js → slide-DmmvSaBD.js} +1 -1
  143. package/src/assets/web-panel/assets/{statusUtils-LrjHAy63.js → statusUtils-C_7SYY0K.js} +1 -1
  144. package/src/assets/web-panel/assets/{styleChecker-BqknYxTe.js → styleChecker-DYgBJGDh.js} +1 -1
  145. package/src/assets/web-panel/assets/{useFlexGapSupport-Dljy3diT.js → useFlexGapSupport-nPkoZkT6.js} +1 -1
  146. package/src/assets/web-panel/assets/{useFs-OedUtPLc.js → useFs-CzpsfP4_.js} +1 -1
  147. package/src/assets/web-panel/assets/{usePersonalDataHub-Cz-kxbP_.js → usePersonalDataHub-Bo2vvMWl.js} +1 -1
  148. package/src/assets/web-panel/assets/{vnode-C8ZuTk8W.js → vnode-D-hXAnHb.js} +1 -1
  149. package/src/assets/web-panel/assets/{zoom-CjbgJYXQ.js → zoom-DW7seTGG.js} +1 -1
  150. package/src/assets/web-panel/index.html +1 -1
  151. package/src/commands/agent.js +39 -14
  152. package/src/commands/background-session.js +12 -1
  153. package/src/commands/permissions.js +24 -1
  154. package/src/gateways/ws/ws-agent-handler.js +26 -1
  155. package/src/gateways/ws/ws-approval-gate.js +131 -0
  156. package/src/index.js +63 -845
  157. package/src/lib/agent-ipc-bus.js +331 -0
  158. package/src/lib/agent-worktree.js +173 -5
  159. package/src/lib/background-agent-supervisor.js +193 -4
  160. package/src/lib/context-source-ledger.js +164 -0
  161. package/src/lib/execution-trace/index.js +10 -0
  162. package/src/lib/execution-trace/metrics-collector.js +218 -0
  163. package/src/lib/execution-trace/trace-context.js +182 -0
  164. package/src/lib/hook-manager.js +17 -0
  165. package/src/lib/hooks-v2-runtime.js +278 -0
  166. package/src/lib/interaction-adapter.js +26 -5
  167. package/src/lib/metrics-collector.js +127 -0
  168. package/src/lib/observability/index.js +33 -0
  169. package/src/lib/observability/otlp-exporter.js +260 -0
  170. package/src/lib/otlp-exporter.js +45 -0
  171. package/src/lib/process-execution-broker/SPAWN_AUDIT_REPORT.md +117 -0
  172. package/src/lib/process-execution-broker/index.js +450 -0
  173. package/src/lib/process-execution-broker/patch-child-process.js +50 -0
  174. package/src/lib/process-execution-broker/spawn-audit.json +3814 -0
  175. package/src/lib/repl-rewind.js +62 -14
  176. package/src/lib/runtime-provenance-ledger.js +190 -0
  177. package/src/lib/session-hooks.js +41 -0
  178. package/src/lib/turn-binding.js +134 -0
  179. package/src/program-base.js +4 -1
  180. package/src/repl/agent-repl.js +77 -3
  181. package/src/repl/repl-turn-binding.js +91 -0
  182. package/src/runtime/headless-runner.js +59 -0
  183. package/src/assets/web-panel/assets/MarkdownRenderer-RQ1HbTY5.js +0 -1
  184. package/src/assets/web-panel/assets/devWarning-Cwuuqc_f.js +0 -1
  185. package/src/assets/web-panel/assets/index-BkTk-zJK.js +0 -1
  186. package/src/assets/web-panel/assets/index-C-BSTEhe.js +0 -1
@@ -1,4 +1,4 @@
1
- import{N as Oe,h as A,P as J,af as Ke,i as D,f as V,I as Ae,q as ie,M as Re,ag as Q,R as Ye,w as Ze,ae as Xe}from"./index-Dmt1HDWZ.js";import{d as q,c as C,r as Z,s as L,w as ue,b as Y,o as Ee,F as Te,n as pe,aa as qe,f as ye,e as we,g as Fe}from"./vendor-Bn1JzzAn.js";import{u as Ne,F as se,N as ze}from"./FormItemContext-gtrW-DdF.js";import{g as le,a as Se}from"./statusUtils-LrjHAy63.js";import{o as X}from"./omit-DxOZvcGQ.js";import{c as ee}from"./vnode-C8ZuTk8W.js";import{B as je}from"./BaseInput-Bu-PNzC5.js";import{C as Me,k as Je,au as Qe,aX as et}from"./icons-DG5UD-6K.js";import{u as tt,N as _e}from"./Compact-C-5fAsZ4.js";import{u as Ie}from"./index-CNeLedtU.js";import{B as nt}from"./index-ArZCi1rK.js";import{i as at}from"./isPlainObject-BWRMT62c.js";import{R as lt}from"./index-Ds1BfT_C.js";import{w as fe}from"./raf-Deuc0E8-.js";import"./devWarning-Cwuuqc_f.js";import"./createContext-CfEdl1in.js";import"./_getTag-DnrRH4E6.js";import"./compact-item-DjsoqA5t.js";import"./index-nuZaMsMy.js";import"./isVisible-C7tPsqfj.js";import"./useState-CnxtbLoC.js";import"./initDefaultProps-C_pMmi75.js";import"./ResizeObserver.es-D6qJbdzf.js";const oe=e=>e!=null&&(Array.isArray(e)?Oe(e).length:!0);function $e(e){return oe(e.prefix)||oe(e.suffix)||oe(e.allowClear)}function ve(e){return oe(e.addonBefore)||oe(e.addonAfter)}function Ce(e){return typeof e>"u"||e===null?"":String(e)}function re(e,f,t,n){if(!t)return;const a=f;if(f.type==="click"){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0});const m=e.cloneNode(!0);a.target=m,a.currentTarget=m,m.value="",t(a);return}if(n!==void 0){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0}),a.target=e,a.currentTarget=e,e.value=n,t(a);return}t(a)}function Ve(e,f){if(!e)return;e.focus(f);const{cursor:t}=f||{};if(t){const n=e.value.length;switch(t){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const ot=()=>({addonBefore:J.any,addonAfter:J.any,prefix:J.any,suffix:J.any,clearIcon:J.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),ke=()=>A(A({},ot()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:J.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),De=()=>A(A({},ke()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Ke("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),rt=q({name:"BaseInput",inheritAttrs:!1,props:ke(),setup(e,f){let{slots:t,attrs:n}=f;const a=Z(),m=l=>{var d;if(!((d=a.value)===null||d===void 0)&&d.contains(l.target)){const{triggerFocus:s}=e;s?.()}},i=()=>{var l;const{allowClear:d,value:s,disabled:h,readonly:p,handleReset:u,suffix:z=t.suffix,prefixCls:_}=e;if(!d)return null;const P=!h&&!p&&s,c=`${_}-clear-icon`,O=((l=t.clearIcon)===null||l===void 0?void 0:l.call(t))||"*";return C("span",{onClick:u,onMousedown:S=>S.preventDefault(),class:D({[`${c}-hidden`]:!P,[`${c}-has-suffix`]:!!z},c),role:"button",tabindex:-1},[O])};return()=>{var l,d;const{focused:s,value:h,disabled:p,allowClear:u,readonly:z,hidden:_,prefixCls:P,prefix:c=(l=t.prefix)===null||l===void 0?void 0:l.call(t),suffix:O=(d=t.suffix)===null||d===void 0?void 0:d.call(t),addonAfter:S=t.addonAfter,addonBefore:$=t.addonBefore,inputElement:E,affixWrapperClassName:v,wrapperClassName:g,groupClassName:o}=e;let w=ee(E,{value:h,hidden:_});if($e({prefix:c,suffix:O,allowClear:u})){const y=`${P}-affix-wrapper`,R=D(y,{[`${y}-disabled`]:p,[`${y}-focused`]:s,[`${y}-readonly`]:z,[`${y}-input-with-clear-btn`]:O&&u&&h},!ve({addonAfter:S,addonBefore:$})&&n.class,v),N=(O||u)&&C("span",{class:`${P}-suffix`},[i(),O]);w=C("span",{class:R,style:n.style,hidden:!ve({addonAfter:S,addonBefore:$})&&_,onMousedown:m,ref:a},[c&&C("span",{class:`${P}-prefix`},[c]),ee(E,{style:null,value:h,hidden:null}),N])}if(ve({addonAfter:S,addonBefore:$})){const y=`${P}-group`,R=`${y}-addon`,N=D(`${P}-wrapper`,y,g),F=D(`${P}-group-wrapper`,n.class,o);return C("span",{class:F,style:n.style,hidden:_},[C("span",{class:N},[$&&C("span",{class:R},[$]),ee(w,{style:null,hidden:null}),S&&C("span",{class:R},[S])])])}return w}}});var ut=function(e,f){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&f.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)f.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t};const st=q({name:"VCInput",inheritAttrs:!1,props:De(),setup(e,f){let{slots:t,attrs:n,expose:a,emit:m}=f;const i=L(e.value===void 0?e.defaultValue:e.value),l=L(!1),d=L(),s=L();ue(()=>e.value,()=>{i.value=e.value}),ue(()=>e.disabled,()=>{e.disabled&&(l.value=!1)});const h=o=>{d.value&&Ve(d.value.input,o)},p=()=>{var o;(o=d.value.input)===null||o===void 0||o.blur()},u=(o,w,y)=>{var R;(R=d.value.input)===null||R===void 0||R.setSelectionRange(o,w,y)},z=()=>{var o;(o=d.value.input)===null||o===void 0||o.select()};a({focus:h,blur:p,input:Y(()=>{var o;return(o=d.value.input)===null||o===void 0?void 0:o.input}),stateValue:i,setSelectionRange:u,select:z});const _=o=>{m("change",o)},P=(o,w)=>{i.value!==o&&(e.value===void 0?i.value=o:pe(()=>{var y;d.value.input.value!==i.value&&((y=s.value)===null||y===void 0||y.$forceUpdate())}),pe(()=>{w&&w()}))},c=o=>{const{value:w}=o.target;if(i.value===w)return;const y=o.target.value;re(d.value.input,o,_),P(y)},O=o=>{o.keyCode===13&&m("pressEnter",o),m("keydown",o)},S=o=>{l.value=!0,m("focus",o)},$=o=>{l.value=!1,m("blur",o)},E=o=>{re(d.value.input,o,_),P("",()=>{h()})},v=()=>{var o,w;const{addonBefore:y=t.addonBefore,addonAfter:R=t.addonAfter,disabled:N,valueModifiers:F={},htmlSize:x,autocomplete:I,prefixCls:T,inputClassName:j,prefix:H=(o=t.prefix)===null||o===void 0?void 0:o.call(t),suffix:U=(w=t.suffix)===null||w===void 0?void 0:w.call(t),allowClear:r,type:b="text"}=e,B=X(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),M=A(A(A({},B),n),{autocomplete:I,onChange:c,onInput:c,onFocus:S,onBlur:$,onKeydown:O,class:D(T,{[`${T}-disabled`]:N},j,!ve({addonAfter:R,addonBefore:y})&&!$e({prefix:H,suffix:U,allowClear:r})&&n.class),ref:d,key:"ant-input",size:x,type:b,lazy:e.lazy});return F.lazy&&delete M.onInput,M.autofocus||delete M.autofocus,C(je,X(M,["size"]),null)},g=()=>{var o;const{maxlength:w,suffix:y=(o=t.suffix)===null||o===void 0?void 0:o.call(t),showCount:R,prefixCls:N}=e,F=Number(w)>0;if(y||R){const x=[...Ce(i.value)].length,I=typeof R=="object"?R.formatter({count:x,maxlength:w}):`${x}${F?` / ${w}`:""}`;return C(Te,null,[!!R&&C("span",{class:D(`${N}-show-count-suffix`,{[`${N}-show-count-has-suffix`]:!!y})},[I]),y])}return null};return Ee(()=>{}),()=>{const{prefixCls:o,disabled:w}=e,y=ut(e,["prefixCls","disabled"]);return C(rt,V(V(V({},y),n),{},{ref:s,prefixCls:o,inputElement:v(),handleReset:E,value:Ce(i.value),focused:l.value,triggerFocus:h,suffix:g(),disabled:w}),t)}}}),me=()=>X(De(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),We=()=>A(A({},X(me(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Ae(),onCompositionend:Ae(),valueModifiers:Object});var it=function(e,f){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&f.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)f.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t};const k=q({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:me(),setup(e,f){let{slots:t,attrs:n,expose:a,emit:m}=f;const i=Z(),l=Ne(),d=se.useInject(),s=Y(()=>Se(d.status,e.status)),{direction:h,prefixCls:p,size:u,autocomplete:z}=ie("input",e),{compactSize:_,compactItemClassnames:P}=tt(p,h),c=Y(()=>_.value||u.value),[O,S]=Ie(p),$=Re();a({focus:x=>{var I;(I=i.value)===null||I===void 0||I.focus(x)},blur:()=>{var x;(x=i.value)===null||x===void 0||x.blur()},input:i,setSelectionRange:(x,I,T)=>{var j;(j=i.value)===null||j===void 0||j.setSelectionRange(x,I,T)},select:()=>{var x;(x=i.value)===null||x===void 0||x.select()}});const w=Z([]),y=()=>{w.value.push(setTimeout(()=>{var x,I,T,j;!((x=i.value)===null||x===void 0)&&x.input&&((I=i.value)===null||I===void 0?void 0:I.input.getAttribute("type"))==="password"&&(!((T=i.value)===null||T===void 0)&&T.input.hasAttribute("value"))&&((j=i.value)===null||j===void 0||j.input.removeAttribute("value"))}))};Ee(()=>{y()}),qe(()=>{w.value.forEach(x=>clearTimeout(x))}),ye(()=>{w.value.forEach(x=>clearTimeout(x))});const R=x=>{y(),m("blur",x),l.onFieldBlur()},N=x=>{y(),m("focus",x)},F=x=>{m("update:value",x.target.value),m("change",x),m("input",x),l.onFieldChange()};return()=>{var x,I,T,j,H,U;const{hasFeedback:r,feedbackIcon:b}=d,{allowClear:B,bordered:M=!0,prefix:W=(x=t.prefix)===null||x===void 0?void 0:x.call(t),suffix:ae=(I=t.suffix)===null||I===void 0?void 0:I.call(t),addonAfter:de=(T=t.addonAfter)===null||T===void 0?void 0:T.call(t),addonBefore:te=(j=t.addonBefore)===null||j===void 0?void 0:j.call(t),id:ce=(H=l.id)===null||H===void 0?void 0:H.value}=e,ne=it(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),He=(r||ae)&&C(Te,null,[ae,r&&b]),G=p.value,Le=$e({prefix:W,suffix:ae})||!!r,Ue=t.clearIcon||(()=>C(Me,null,null));return O(C(st,V(V(V({},n),X(ne,["onUpdate:value","onChange","onInput"])),{},{onChange:F,id:ce,disabled:(U=e.disabled)!==null&&U!==void 0?U:$.value,ref:i,prefixCls:G,autocomplete:z.value,onBlur:R,onFocus:N,prefix:W,suffix:He,allowClear:B,addonAfter:de&&C(_e,null,{default:()=>[C(ze,null,{default:()=>[de]})]}),addonBefore:te&&C(_e,null,{default:()=>[C(ze,null,{default:()=>[te]})]}),class:[n.class,P.value],inputClassName:D({[`${G}-sm`]:c.value==="small",[`${G}-lg`]:c.value==="large",[`${G}-rtl`]:h.value==="rtl",[`${G}-borderless`]:!M},!Le&&le(G,s.value),S.value),affixWrapperClassName:D({[`${G}-affix-wrapper-sm`]:c.value==="small",[`${G}-affix-wrapper-lg`]:c.value==="large",[`${G}-affix-wrapper-rtl`]:h.value==="rtl",[`${G}-affix-wrapper-borderless`]:!M},le(`${G}-affix-wrapper`,s.value,r),S.value),wrapperClassName:D({[`${G}-group-rtl`]:h.value==="rtl"},S.value),groupClassName:D({[`${G}-group-wrapper-sm`]:c.value==="small",[`${G}-group-wrapper-lg`]:c.value==="large",[`${G}-group-wrapper-rtl`]:h.value==="rtl"},le(`${G}-group-wrapper`,s.value,r),S.value)}),A(A({},t),{clearIcon:Ue})))}}}),dt=q({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,f){let{slots:t,attrs:n}=f;const{prefixCls:a,direction:m,getPrefixCls:i}=ie("input-group",e),l=se.useInject();se.useProvide(l,{isFormItemInput:!1});const d=Y(()=>i("input")),[s,h]=Ie(d),p=Y(()=>{const u=a.value;return{[`${u}`]:!0,[h.value]:!0,[`${u}-lg`]:e.size==="large",[`${u}-sm`]:e.size==="small",[`${u}-compact`]:e.compact,[`${u}-rtl`]:m.value==="rtl"}});return()=>{var u;return s(C("span",V(V({},n),{},{class:D(p.value,n.class)}),[(u=t.default)===null||u===void 0?void 0:u.call(t)]))}}});var ct=function(e,f){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&f.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)f.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t};const ft=q({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:A(A({},me()),{inputPrefixCls:String,enterButton:J.any,onSearch:{type:Function}}),setup(e,f){let{slots:t,attrs:n,expose:a,emit:m}=f;const i=L(),l=L(!1);a({focus:()=>{var v;(v=i.value)===null||v===void 0||v.focus()},blur:()=>{var v;(v=i.value)===null||v===void 0||v.blur()}});const h=v=>{m("update:value",v.target.value),v&&v.target&&v.type==="click"&&m("search",v.target.value,v),m("change",v)},p=v=>{var g;document.activeElement===((g=i.value)===null||g===void 0?void 0:g.input)&&v.preventDefault()},u=v=>{var g,o;m("search",(o=(g=i.value)===null||g===void 0?void 0:g.input)===null||o===void 0?void 0:o.stateValue,v)},z=v=>{l.value||e.loading||u(v)},_=v=>{l.value=!0,m("compositionstart",v)},P=v=>{l.value=!1,m("compositionend",v)},{prefixCls:c,getPrefixCls:O,direction:S,size:$}=ie("input-search",e),E=Y(()=>O("input",e.inputPrefixCls));return()=>{var v,g,o,w;const{disabled:y,loading:R,addonAfter:N=(v=t.addonAfter)===null||v===void 0?void 0:v.call(t),suffix:F=(g=t.suffix)===null||g===void 0?void 0:g.call(t)}=e,x=ct(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:I=(w=(o=t.enterButton)===null||o===void 0?void 0:o.call(t))!==null&&w!==void 0?w:!1}=e;I=I||I==="";const T=typeof I=="boolean"?C(Je,null,null):null,j=`${c.value}-button`,H=Array.isArray(I)?I[0]:I;let U;const r=H.type&&at(H.type)&&H.type.__ANT_BUTTON;if(r||H.tagName==="button")U=ee(H,A({onMousedown:p,onClick:u,key:"enterButton"},r?{class:j,size:$.value}:{}),!1);else{const B=T&&!I;U=C(nt,{class:j,type:I?"primary":void 0,size:$.value,disabled:y,key:"enterButton",onMousedown:p,onClick:u,loading:R,icon:B?T:null},{default:()=>[B?null:T||I]})}N&&(U=[U,N]);const b=D(c.value,{[`${c.value}-rtl`]:S.value==="rtl",[`${c.value}-${$.value}`]:!!$.value,[`${c.value}-with-button`]:!!I},n.class);return C(k,V(V(V({ref:i},X(x,["onUpdate:value","onSearch","enterButton"])),n),{},{onPressEnter:z,onCompositionstart:_,onCompositionend:P,size:$.value,prefixCls:E.value,addonAfter:U,suffix:F,onChange:h,class:b,disabled:y}),t)}}}),Pe=e=>e!=null&&(Array.isArray(e)?Oe(e).length:!0);function vt(e){return Pe(e.addonBefore)||Pe(e.addonAfter)}const pt=["text","input"],mt=q({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:J.oneOf(Ye("text","input")),value:Q(),defaultValue:Q(),allowClear:{type:Boolean,default:void 0},element:Q(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:Q(),prefix:Q(),addonBefore:Q(),addonAfter:Q(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,f){let{slots:t,attrs:n}=f;const a=se.useInject(),m=l=>{const{value:d,disabled:s,readonly:h,handleReset:p,suffix:u=t.suffix}=e,z=!s&&!h&&d,_=`${l}-clear-icon`;return C(Me,{onClick:p,onMousedown:P=>P.preventDefault(),class:D({[`${_}-hidden`]:!z,[`${_}-has-suffix`]:!!u},_),role:"button"},null)},i=(l,d)=>{const{value:s,allowClear:h,direction:p,bordered:u,hidden:z,status:_,addonAfter:P=t.addonAfter,addonBefore:c=t.addonBefore,hashId:O}=e,{status:S,hasFeedback:$}=a;if(!h)return ee(d,{value:s,disabled:e.disabled});const E=D(`${l}-affix-wrapper`,`${l}-affix-wrapper-textarea-with-clear-btn`,le(`${l}-affix-wrapper`,Se(S,_),$),{[`${l}-affix-wrapper-rtl`]:p==="rtl",[`${l}-affix-wrapper-borderless`]:!u,[`${n.class}`]:!vt({addonAfter:P,addonBefore:c})&&n.class},O);return C("span",{class:E,style:n.style,hidden:z},[ee(d,{style:null,value:s,disabled:e.disabled}),m(l)])};return()=>{var l;const{prefixCls:d,inputType:s,element:h=(l=t.element)===null||l===void 0?void 0:l.call(t)}=e;return s===pt[0]?i(d,h):null}}}),gt=`
1
+ import{N as Oe,h as A,P as J,af as Ke,i as D,f as V,I as Ae,q as ie,M as Re,ag as Q,R as Ye,w as Ze,ae as Xe}from"./index-COg__P6M.js";import{d as q,c as C,r as Z,s as L,w as ue,b as Y,o as Ee,F as Te,n as pe,aa as qe,f as ye,e as we,g as Fe}from"./vendor-Bn1JzzAn.js";import{u as Ne,F as se,N as ze}from"./FormItemContext-DdPW81BY.js";import{g as le,a as Se}from"./statusUtils-C_7SYY0K.js";import{o as X}from"./omit-C0uA2ytw.js";import{c as ee}from"./vnode-D-hXAnHb.js";import{B as je}from"./BaseInput-BpEvDrNt.js";import{C as Me,k as Je,au as Qe,aX as et}from"./icons-DG5UD-6K.js";import{u as tt,N as _e}from"./Compact-BrHim8EB.js";import{u as Ie}from"./index-ZPdNPhUq.js";import{B as nt}from"./index-CRlJOWsf.js";import{i as at}from"./isPlainObject-BWRMT62c.js";import{R as lt}from"./index-djikyGz3.js";import{w as fe}from"./raf-Deuc0E8-.js";import"./devWarning-BRylvxzY.js";import"./createContext-CoUkR4LQ.js";import"./_getTag-DnrRH4E6.js";import"./compact-item-BYpsOET5.js";import"./index-z5rYvstM.js";import"./isVisible-C7tPsqfj.js";import"./useState-CnxtbLoC.js";import"./initDefaultProps-B_Uk-wzg.js";import"./ResizeObserver.es-D6qJbdzf.js";const oe=e=>e!=null&&(Array.isArray(e)?Oe(e).length:!0);function $e(e){return oe(e.prefix)||oe(e.suffix)||oe(e.allowClear)}function ve(e){return oe(e.addonBefore)||oe(e.addonAfter)}function Ce(e){return typeof e>"u"||e===null?"":String(e)}function re(e,f,t,n){if(!t)return;const a=f;if(f.type==="click"){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0});const m=e.cloneNode(!0);a.target=m,a.currentTarget=m,m.value="",t(a);return}if(n!==void 0){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0}),a.target=e,a.currentTarget=e,e.value=n,t(a);return}t(a)}function Ve(e,f){if(!e)return;e.focus(f);const{cursor:t}=f||{};if(t){const n=e.value.length;switch(t){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const ot=()=>({addonBefore:J.any,addonAfter:J.any,prefix:J.any,suffix:J.any,clearIcon:J.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),ke=()=>A(A({},ot()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:J.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),De=()=>A(A({},ke()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Ke("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),rt=q({name:"BaseInput",inheritAttrs:!1,props:ke(),setup(e,f){let{slots:t,attrs:n}=f;const a=Z(),m=l=>{var d;if(!((d=a.value)===null||d===void 0)&&d.contains(l.target)){const{triggerFocus:s}=e;s?.()}},i=()=>{var l;const{allowClear:d,value:s,disabled:h,readonly:p,handleReset:u,suffix:z=t.suffix,prefixCls:_}=e;if(!d)return null;const P=!h&&!p&&s,c=`${_}-clear-icon`,O=((l=t.clearIcon)===null||l===void 0?void 0:l.call(t))||"*";return C("span",{onClick:u,onMousedown:S=>S.preventDefault(),class:D({[`${c}-hidden`]:!P,[`${c}-has-suffix`]:!!z},c),role:"button",tabindex:-1},[O])};return()=>{var l,d;const{focused:s,value:h,disabled:p,allowClear:u,readonly:z,hidden:_,prefixCls:P,prefix:c=(l=t.prefix)===null||l===void 0?void 0:l.call(t),suffix:O=(d=t.suffix)===null||d===void 0?void 0:d.call(t),addonAfter:S=t.addonAfter,addonBefore:$=t.addonBefore,inputElement:E,affixWrapperClassName:v,wrapperClassName:g,groupClassName:o}=e;let w=ee(E,{value:h,hidden:_});if($e({prefix:c,suffix:O,allowClear:u})){const y=`${P}-affix-wrapper`,R=D(y,{[`${y}-disabled`]:p,[`${y}-focused`]:s,[`${y}-readonly`]:z,[`${y}-input-with-clear-btn`]:O&&u&&h},!ve({addonAfter:S,addonBefore:$})&&n.class,v),N=(O||u)&&C("span",{class:`${P}-suffix`},[i(),O]);w=C("span",{class:R,style:n.style,hidden:!ve({addonAfter:S,addonBefore:$})&&_,onMousedown:m,ref:a},[c&&C("span",{class:`${P}-prefix`},[c]),ee(E,{style:null,value:h,hidden:null}),N])}if(ve({addonAfter:S,addonBefore:$})){const y=`${P}-group`,R=`${y}-addon`,N=D(`${P}-wrapper`,y,g),F=D(`${P}-group-wrapper`,n.class,o);return C("span",{class:F,style:n.style,hidden:_},[C("span",{class:N},[$&&C("span",{class:R},[$]),ee(w,{style:null,hidden:null}),S&&C("span",{class:R},[S])])])}return w}}});var ut=function(e,f){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&f.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)f.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t};const st=q({name:"VCInput",inheritAttrs:!1,props:De(),setup(e,f){let{slots:t,attrs:n,expose:a,emit:m}=f;const i=L(e.value===void 0?e.defaultValue:e.value),l=L(!1),d=L(),s=L();ue(()=>e.value,()=>{i.value=e.value}),ue(()=>e.disabled,()=>{e.disabled&&(l.value=!1)});const h=o=>{d.value&&Ve(d.value.input,o)},p=()=>{var o;(o=d.value.input)===null||o===void 0||o.blur()},u=(o,w,y)=>{var R;(R=d.value.input)===null||R===void 0||R.setSelectionRange(o,w,y)},z=()=>{var o;(o=d.value.input)===null||o===void 0||o.select()};a({focus:h,blur:p,input:Y(()=>{var o;return(o=d.value.input)===null||o===void 0?void 0:o.input}),stateValue:i,setSelectionRange:u,select:z});const _=o=>{m("change",o)},P=(o,w)=>{i.value!==o&&(e.value===void 0?i.value=o:pe(()=>{var y;d.value.input.value!==i.value&&((y=s.value)===null||y===void 0||y.$forceUpdate())}),pe(()=>{w&&w()}))},c=o=>{const{value:w}=o.target;if(i.value===w)return;const y=o.target.value;re(d.value.input,o,_),P(y)},O=o=>{o.keyCode===13&&m("pressEnter",o),m("keydown",o)},S=o=>{l.value=!0,m("focus",o)},$=o=>{l.value=!1,m("blur",o)},E=o=>{re(d.value.input,o,_),P("",()=>{h()})},v=()=>{var o,w;const{addonBefore:y=t.addonBefore,addonAfter:R=t.addonAfter,disabled:N,valueModifiers:F={},htmlSize:x,autocomplete:I,prefixCls:T,inputClassName:j,prefix:H=(o=t.prefix)===null||o===void 0?void 0:o.call(t),suffix:U=(w=t.suffix)===null||w===void 0?void 0:w.call(t),allowClear:r,type:b="text"}=e,B=X(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),M=A(A(A({},B),n),{autocomplete:I,onChange:c,onInput:c,onFocus:S,onBlur:$,onKeydown:O,class:D(T,{[`${T}-disabled`]:N},j,!ve({addonAfter:R,addonBefore:y})&&!$e({prefix:H,suffix:U,allowClear:r})&&n.class),ref:d,key:"ant-input",size:x,type:b,lazy:e.lazy});return F.lazy&&delete M.onInput,M.autofocus||delete M.autofocus,C(je,X(M,["size"]),null)},g=()=>{var o;const{maxlength:w,suffix:y=(o=t.suffix)===null||o===void 0?void 0:o.call(t),showCount:R,prefixCls:N}=e,F=Number(w)>0;if(y||R){const x=[...Ce(i.value)].length,I=typeof R=="object"?R.formatter({count:x,maxlength:w}):`${x}${F?` / ${w}`:""}`;return C(Te,null,[!!R&&C("span",{class:D(`${N}-show-count-suffix`,{[`${N}-show-count-has-suffix`]:!!y})},[I]),y])}return null};return Ee(()=>{}),()=>{const{prefixCls:o,disabled:w}=e,y=ut(e,["prefixCls","disabled"]);return C(rt,V(V(V({},y),n),{},{ref:s,prefixCls:o,inputElement:v(),handleReset:E,value:Ce(i.value),focused:l.value,triggerFocus:h,suffix:g(),disabled:w}),t)}}}),me=()=>X(De(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),We=()=>A(A({},X(me(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Ae(),onCompositionend:Ae(),valueModifiers:Object});var it=function(e,f){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&f.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)f.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t};const k=q({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:me(),setup(e,f){let{slots:t,attrs:n,expose:a,emit:m}=f;const i=Z(),l=Ne(),d=se.useInject(),s=Y(()=>Se(d.status,e.status)),{direction:h,prefixCls:p,size:u,autocomplete:z}=ie("input",e),{compactSize:_,compactItemClassnames:P}=tt(p,h),c=Y(()=>_.value||u.value),[O,S]=Ie(p),$=Re();a({focus:x=>{var I;(I=i.value)===null||I===void 0||I.focus(x)},blur:()=>{var x;(x=i.value)===null||x===void 0||x.blur()},input:i,setSelectionRange:(x,I,T)=>{var j;(j=i.value)===null||j===void 0||j.setSelectionRange(x,I,T)},select:()=>{var x;(x=i.value)===null||x===void 0||x.select()}});const w=Z([]),y=()=>{w.value.push(setTimeout(()=>{var x,I,T,j;!((x=i.value)===null||x===void 0)&&x.input&&((I=i.value)===null||I===void 0?void 0:I.input.getAttribute("type"))==="password"&&(!((T=i.value)===null||T===void 0)&&T.input.hasAttribute("value"))&&((j=i.value)===null||j===void 0||j.input.removeAttribute("value"))}))};Ee(()=>{y()}),qe(()=>{w.value.forEach(x=>clearTimeout(x))}),ye(()=>{w.value.forEach(x=>clearTimeout(x))});const R=x=>{y(),m("blur",x),l.onFieldBlur()},N=x=>{y(),m("focus",x)},F=x=>{m("update:value",x.target.value),m("change",x),m("input",x),l.onFieldChange()};return()=>{var x,I,T,j,H,U;const{hasFeedback:r,feedbackIcon:b}=d,{allowClear:B,bordered:M=!0,prefix:W=(x=t.prefix)===null||x===void 0?void 0:x.call(t),suffix:ae=(I=t.suffix)===null||I===void 0?void 0:I.call(t),addonAfter:de=(T=t.addonAfter)===null||T===void 0?void 0:T.call(t),addonBefore:te=(j=t.addonBefore)===null||j===void 0?void 0:j.call(t),id:ce=(H=l.id)===null||H===void 0?void 0:H.value}=e,ne=it(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),He=(r||ae)&&C(Te,null,[ae,r&&b]),G=p.value,Le=$e({prefix:W,suffix:ae})||!!r,Ue=t.clearIcon||(()=>C(Me,null,null));return O(C(st,V(V(V({},n),X(ne,["onUpdate:value","onChange","onInput"])),{},{onChange:F,id:ce,disabled:(U=e.disabled)!==null&&U!==void 0?U:$.value,ref:i,prefixCls:G,autocomplete:z.value,onBlur:R,onFocus:N,prefix:W,suffix:He,allowClear:B,addonAfter:de&&C(_e,null,{default:()=>[C(ze,null,{default:()=>[de]})]}),addonBefore:te&&C(_e,null,{default:()=>[C(ze,null,{default:()=>[te]})]}),class:[n.class,P.value],inputClassName:D({[`${G}-sm`]:c.value==="small",[`${G}-lg`]:c.value==="large",[`${G}-rtl`]:h.value==="rtl",[`${G}-borderless`]:!M},!Le&&le(G,s.value),S.value),affixWrapperClassName:D({[`${G}-affix-wrapper-sm`]:c.value==="small",[`${G}-affix-wrapper-lg`]:c.value==="large",[`${G}-affix-wrapper-rtl`]:h.value==="rtl",[`${G}-affix-wrapper-borderless`]:!M},le(`${G}-affix-wrapper`,s.value,r),S.value),wrapperClassName:D({[`${G}-group-rtl`]:h.value==="rtl"},S.value),groupClassName:D({[`${G}-group-wrapper-sm`]:c.value==="small",[`${G}-group-wrapper-lg`]:c.value==="large",[`${G}-group-wrapper-rtl`]:h.value==="rtl"},le(`${G}-group-wrapper`,s.value,r),S.value)}),A(A({},t),{clearIcon:Ue})))}}}),dt=q({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,f){let{slots:t,attrs:n}=f;const{prefixCls:a,direction:m,getPrefixCls:i}=ie("input-group",e),l=se.useInject();se.useProvide(l,{isFormItemInput:!1});const d=Y(()=>i("input")),[s,h]=Ie(d),p=Y(()=>{const u=a.value;return{[`${u}`]:!0,[h.value]:!0,[`${u}-lg`]:e.size==="large",[`${u}-sm`]:e.size==="small",[`${u}-compact`]:e.compact,[`${u}-rtl`]:m.value==="rtl"}});return()=>{var u;return s(C("span",V(V({},n),{},{class:D(p.value,n.class)}),[(u=t.default)===null||u===void 0?void 0:u.call(t)]))}}});var ct=function(e,f){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&f.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)f.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t};const ft=q({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:A(A({},me()),{inputPrefixCls:String,enterButton:J.any,onSearch:{type:Function}}),setup(e,f){let{slots:t,attrs:n,expose:a,emit:m}=f;const i=L(),l=L(!1);a({focus:()=>{var v;(v=i.value)===null||v===void 0||v.focus()},blur:()=>{var v;(v=i.value)===null||v===void 0||v.blur()}});const h=v=>{m("update:value",v.target.value),v&&v.target&&v.type==="click"&&m("search",v.target.value,v),m("change",v)},p=v=>{var g;document.activeElement===((g=i.value)===null||g===void 0?void 0:g.input)&&v.preventDefault()},u=v=>{var g,o;m("search",(o=(g=i.value)===null||g===void 0?void 0:g.input)===null||o===void 0?void 0:o.stateValue,v)},z=v=>{l.value||e.loading||u(v)},_=v=>{l.value=!0,m("compositionstart",v)},P=v=>{l.value=!1,m("compositionend",v)},{prefixCls:c,getPrefixCls:O,direction:S,size:$}=ie("input-search",e),E=Y(()=>O("input",e.inputPrefixCls));return()=>{var v,g,o,w;const{disabled:y,loading:R,addonAfter:N=(v=t.addonAfter)===null||v===void 0?void 0:v.call(t),suffix:F=(g=t.suffix)===null||g===void 0?void 0:g.call(t)}=e,x=ct(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:I=(w=(o=t.enterButton)===null||o===void 0?void 0:o.call(t))!==null&&w!==void 0?w:!1}=e;I=I||I==="";const T=typeof I=="boolean"?C(Je,null,null):null,j=`${c.value}-button`,H=Array.isArray(I)?I[0]:I;let U;const r=H.type&&at(H.type)&&H.type.__ANT_BUTTON;if(r||H.tagName==="button")U=ee(H,A({onMousedown:p,onClick:u,key:"enterButton"},r?{class:j,size:$.value}:{}),!1);else{const B=T&&!I;U=C(nt,{class:j,type:I?"primary":void 0,size:$.value,disabled:y,key:"enterButton",onMousedown:p,onClick:u,loading:R,icon:B?T:null},{default:()=>[B?null:T||I]})}N&&(U=[U,N]);const b=D(c.value,{[`${c.value}-rtl`]:S.value==="rtl",[`${c.value}-${$.value}`]:!!$.value,[`${c.value}-with-button`]:!!I},n.class);return C(k,V(V(V({ref:i},X(x,["onUpdate:value","onSearch","enterButton"])),n),{},{onPressEnter:z,onCompositionstart:_,onCompositionend:P,size:$.value,prefixCls:E.value,addonAfter:U,suffix:F,onChange:h,class:b,disabled:y}),t)}}}),Pe=e=>e!=null&&(Array.isArray(e)?Oe(e).length:!0);function vt(e){return Pe(e.addonBefore)||Pe(e.addonAfter)}const pt=["text","input"],mt=q({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:J.oneOf(Ye("text","input")),value:Q(),defaultValue:Q(),allowClear:{type:Boolean,default:void 0},element:Q(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:Q(),prefix:Q(),addonBefore:Q(),addonAfter:Q(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,f){let{slots:t,attrs:n}=f;const a=se.useInject(),m=l=>{const{value:d,disabled:s,readonly:h,handleReset:p,suffix:u=t.suffix}=e,z=!s&&!h&&d,_=`${l}-clear-icon`;return C(Me,{onClick:p,onMousedown:P=>P.preventDefault(),class:D({[`${_}-hidden`]:!z,[`${_}-has-suffix`]:!!u},_),role:"button"},null)},i=(l,d)=>{const{value:s,allowClear:h,direction:p,bordered:u,hidden:z,status:_,addonAfter:P=t.addonAfter,addonBefore:c=t.addonBefore,hashId:O}=e,{status:S,hasFeedback:$}=a;if(!h)return ee(d,{value:s,disabled:e.disabled});const E=D(`${l}-affix-wrapper`,`${l}-affix-wrapper-textarea-with-clear-btn`,le(`${l}-affix-wrapper`,Se(S,_),$),{[`${l}-affix-wrapper-rtl`]:p==="rtl",[`${l}-affix-wrapper-borderless`]:!u,[`${n.class}`]:!vt({addonAfter:P,addonBefore:c})&&n.class},O);return C("span",{class:E,style:n.style,hidden:z},[ee(d,{style:null,value:s,disabled:e.disabled}),m(l)])};return()=>{var l;const{prefixCls:d,inputType:s,element:h=(l=t.element)===null||l===void 0?void 0:l.call(t)}=e;return s===pt[0]?i(d,h):null}}}),gt=`
2
2
  min-height:0 !important;
3
3
  max-height:none !important;
4
4
  height:0 !important;
@@ -1 +1 @@
1
- import{l as M,m as lo,h as c,r as io,a0 as F,w as L,q as V,i as K,f as b,s as q,N as W,ag as y,p as so,A as co,v as R,af as po}from"./index-Dmt1HDWZ.js";import{d as X,b as O,c as d,r as G,F as uo,a9 as mo}from"./vendor-Bn1JzzAn.js";import{T as vo,t as U,a as Z}from"./index-BcDeMCUK.js";import{o as J}from"./omit-DxOZvcGQ.js";import{i as fo}from"./zoom-CjbgJYXQ.js";import{g as go}from"./placementArrow-Bm--qom1.js";import{P as Co}from"./colors-DLP70JGe.js";import{i as Q}from"./initDefaultProps-C_pMmi75.js";import{c as H,B as xo}from"./index-ArZCi1rK.js";import{E as yo}from"./icons-DG5UD-6K.js";import{u as Po}from"./useMergedState-DXbJa_zE.js";import{K as bo}from"./KeyCode-D63Tfrq7.js";import{b as ho}from"./vnode-C8ZuTk8W.js";import{A as $o}from"./ActionButton-BBB1VF4j.js";import"./Trigger-BMNHmxwH.js";import"./raf-Deuc0E8-.js";import"./motion-BvKgS96o.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./firstNotUndefined-CLFzEa0p.js";import"./index-nuZaMsMy.js";import"./useState-CnxtbLoC.js";import"./devWarning-Cwuuqc_f.js";import"./compact-item-DjsoqA5t.js";import"./createContext-CfEdl1in.js";import"./Compact-C-5fAsZ4.js";const So=o=>{const{componentCls:e,popoverBg:t,popoverColor:n,width:a,fontWeightStrong:f,popoverPadding:i,boxShadowSecondary:p,colorTextHeading:g,borderRadiusLG:m,zIndexPopup:C,marginXS:x,colorBgElevated:s}=o;return[{[e]:c(c({},io(o)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:C,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":s,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:t,backgroundClip:"padding-box",borderRadius:m,boxShadow:p,padding:i},[`${e}-title`]:{minWidth:a,marginBottom:x,color:g,fontWeight:f},[`${e}-inner-content`]:{color:n}})},go(o,{colorBg:"var(--antd-arrow-background-color)"}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",[`${e}-content`]:{display:"inline-block"}}}]},To=o=>{const{componentCls:e}=o;return{[e]:Co.map(t=>{const n=o[`${t}-6`];return{[`&${e}-${t}`]:{"--antd-arrow-background-color":n,[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{background:"transparent"}}}})}},ko=o=>{const{componentCls:e,lineWidth:t,lineType:n,colorSplit:a,paddingSM:f,controlHeight:i,fontSize:p,lineHeight:g,padding:m}=o,C=i-Math.round(p*g),x=C/2,s=C/2-t,v=m;return{[e]:{[`${e}-inner`]:{padding:0},[`${e}-title`]:{margin:0,padding:`${x}px ${v}px ${s}px`,borderBottom:`${t}px ${n} ${a}`},[`${e}-inner-content`]:{padding:`${f}px ${v}px`}}}},wo=M("Popover",o=>{const{colorBgElevated:e,colorText:t,wireframe:n}=o,a=lo(o,{popoverBg:e,popoverColor:t,popoverPadding:12});return[So(a),To(a),n&&ko(a),fo(a,"zoom-big")]},o=>{let{zIndexPopupBase:e}=o;return{zIndexPopup:e+30,width:177}}),Bo=()=>c(c({},Z()),{content:y(),title:y()}),_o=X({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Q(Bo(),c(c({},U()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(o,e){let{expose:t,slots:n,attrs:a}=e;const f=G();L(o.visible===void 0,"popover","`visible` will be removed in next major version, please use `open` instead."),t({getPopupDomNode:()=>{var s,v;return(v=(s=f.value)===null||s===void 0?void 0:s.getPopupDomNode)===null||v===void 0?void 0:v.call(s)}});const{prefixCls:i,configProvider:p}=V("popover",o),[g,m]=wo(i),C=O(()=>p.getPrefixCls()),x=()=>{var s,v;const{title:P=W((s=n.title)===null||s===void 0?void 0:s.call(n)),content:u=W((v=n.content)===null||v===void 0?void 0:v.call(n))}=o,h=!!(Array.isArray(P)?P.length:P),w=!!(Array.isArray(u)?u.length:P);return!h&&!w?null:d(uo,null,[h&&d("div",{class:`${i.value}-title`},[P]),d("div",{class:`${i.value}-inner-content`},[u])])};return()=>{const s=K(o.overlayClassName,m.value);return g(d(vo,b(b(b({},J(o,["title","content"])),a),{},{prefixCls:i.value,ref:f,overlayClassName:s,transitionName:q(C.value,"zoom-big",o.transitionName),"data-popover-inject":!0}),{title:x,default:n.default}))}}}),No=F(_o),Oo=o=>{const{componentCls:e,iconCls:t,zIndexPopup:n,colorText:a,colorWarning:f,marginXS:i,fontSize:p,fontWeightStrong:g,lineHeight:m}=o;return{[e]:{zIndex:n,[`${e}-inner-content`]:{color:a},[`${e}-message`]:{position:"relative",marginBottom:i,color:a,fontSize:p,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e}-message-icon ${t}`]:{color:f,fontSize:p,flex:"none",lineHeight:1,paddingTop:(Math.round(p*m)-p)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:g}},[`${e}-description`]:{position:"relative",marginInlineStart:p+i,marginBottom:i,color:a,fontSize:p},[`${e}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},zo=M("Popconfirm",o=>Oo(o),o=>{const{zIndexPopupBase:e}=o;return{zIndexPopup:e+60}});var Ao=function(o,e){var t={};for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(o);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(o,n[a])&&(t[n[a]]=o[n[a]]);return t};const Io=()=>c(c({},Z()),{prefixCls:String,content:y(),title:y(),description:y(),okType:po("primary"),disabled:{type:Boolean,default:!1},okText:y(),cancelText:y(),icon:y(),okButtonProps:R(),cancelButtonProps:R(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Do=X({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Q(Io(),c(c({},U()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(o,e){let{slots:t,emit:n,expose:a,attrs:f}=e;const i=G();L(o.visible===void 0,"Popconfirm","`visible` will be removed in next major version, please use `open` instead."),a({getPopupDomNode:()=>{var r,l;return(l=(r=i.value)===null||r===void 0?void 0:r.getPopupDomNode)===null||l===void 0?void 0:l.call(r)}});const[p,g]=Po(!1,{value:mo(o,"open")}),m=(r,l)=>{o.open===void 0&&g(r),n("update:open",r),n("openChange",r,l)},C=r=>{m(!1,r)},x=r=>{var l;return(l=o.onConfirm)===null||l===void 0?void 0:l.call(o,r)},s=r=>{var l;m(!1,r),(l=o.onCancel)===null||l===void 0||l.call(o,r)},v=r=>{r.keyCode===bo.ESC&&p&&m(!1,r)},P=r=>{const{disabled:l}=o;l||m(r)},{prefixCls:u,getPrefixCls:h}=V("popconfirm",o),w=O(()=>h()),Y=O(()=>h("btn")),[oo]=zo(u),[z]=so("Popconfirm",co.Popconfirm),eo=()=>{var r,l,$,S,T;const{okButtonProps:k,cancelButtonProps:B,title:_=(r=t.title)===null||r===void 0?void 0:r.call(t),description:N=(l=t.description)===null||l===void 0?void 0:l.call(t),cancelText:to=($=t.cancel)===null||$===void 0?void 0:$.call(t),okText:no=(S=t.okText)===null||S===void 0?void 0:S.call(t),okType:A,icon:I=((T=t.icon)===null||T===void 0?void 0:T.call(t))||d(yo,null,null),showCancel:ro=!0}=o,{cancelButton:D,okButton:j}=t,E=c({onClick:s,size:"small"},B),ao=c(c(c({onClick:x},H(A)),{size:"small"}),k);return d("div",{class:`${u.value}-inner-content`},[d("div",{class:`${u.value}-message`},[I&&d("span",{class:`${u.value}-message-icon`},[I]),d("div",{class:[`${u.value}-message-title`,{[`${u.value}-message-title-only`]:!!N}]},[_])]),N&&d("div",{class:`${u.value}-description`},[N]),d("div",{class:`${u.value}-buttons`},[ro?D?D(E):d(xo,E,{default:()=>[to||z.value.cancelText]}):null,j?j(ao):d($o,{buttonProps:c(c({size:"small"},H(A)),k),actionFn:x,close:C,prefixCls:Y.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[no||z.value.okText]})])])};return()=>{var r;const{placement:l,overlayClassName:$,trigger:S="click"}=o,T=Ao(o,["placement","overlayClassName","trigger"]),k=J(T,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),B=K(u.value,$);return oo(d(No,b(b(b({},k),f),{},{trigger:S,placement:l,onOpenChange:P,open:p.value,overlayClassName:B,transitionName:q(w.value,"zoom-big",o.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[ho(((r=t.default)===null||r===void 0?void 0:r.call(t))||[],{onKeydown:_=>{v(_)}},!1)],content:eo}))}}}),ce=F(Do);export{ce as default,Io as popconfirmProps};
1
+ import{l as M,m as lo,h as c,r as io,a0 as F,w as L,q as V,i as K,f as b,s as q,N as W,ag as y,p as so,A as co,v as R,af as po}from"./index-COg__P6M.js";import{d as X,b as O,c as d,r as G,F as uo,a9 as mo}from"./vendor-Bn1JzzAn.js";import{T as vo,t as U,a as Z}from"./index-DjbMaBLf.js";import{o as J}from"./omit-C0uA2ytw.js";import{i as fo}from"./zoom-DW7seTGG.js";import{g as go}from"./placementArrow-BWL3-3xo.js";import{P as Co}from"./colors-AMRhrRzS.js";import{i as Q}from"./initDefaultProps-B_Uk-wzg.js";import{c as H,B as xo}from"./index-CRlJOWsf.js";import{E as yo}from"./icons-DG5UD-6K.js";import{u as Po}from"./useMergedState-DXbJa_zE.js";import{K as bo}from"./KeyCode-D63Tfrq7.js";import{b as ho}from"./vnode-D-hXAnHb.js";import{A as $o}from"./ActionButton-4CBfc5E4.js";import"./Trigger-ClBDWdLo.js";import"./raf-Deuc0E8-.js";import"./motion-ez7H8y8b.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./firstNotUndefined-CLFzEa0p.js";import"./index-z5rYvstM.js";import"./useState-CnxtbLoC.js";import"./devWarning-BRylvxzY.js";import"./compact-item-BYpsOET5.js";import"./createContext-CoUkR4LQ.js";import"./Compact-BrHim8EB.js";const So=o=>{const{componentCls:e,popoverBg:t,popoverColor:n,width:a,fontWeightStrong:f,popoverPadding:i,boxShadowSecondary:p,colorTextHeading:g,borderRadiusLG:m,zIndexPopup:C,marginXS:x,colorBgElevated:s}=o;return[{[e]:c(c({},io(o)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:C,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":s,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:t,backgroundClip:"padding-box",borderRadius:m,boxShadow:p,padding:i},[`${e}-title`]:{minWidth:a,marginBottom:x,color:g,fontWeight:f},[`${e}-inner-content`]:{color:n}})},go(o,{colorBg:"var(--antd-arrow-background-color)"}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",[`${e}-content`]:{display:"inline-block"}}}]},To=o=>{const{componentCls:e}=o;return{[e]:Co.map(t=>{const n=o[`${t}-6`];return{[`&${e}-${t}`]:{"--antd-arrow-background-color":n,[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{background:"transparent"}}}})}},ko=o=>{const{componentCls:e,lineWidth:t,lineType:n,colorSplit:a,paddingSM:f,controlHeight:i,fontSize:p,lineHeight:g,padding:m}=o,C=i-Math.round(p*g),x=C/2,s=C/2-t,v=m;return{[e]:{[`${e}-inner`]:{padding:0},[`${e}-title`]:{margin:0,padding:`${x}px ${v}px ${s}px`,borderBottom:`${t}px ${n} ${a}`},[`${e}-inner-content`]:{padding:`${f}px ${v}px`}}}},wo=M("Popover",o=>{const{colorBgElevated:e,colorText:t,wireframe:n}=o,a=lo(o,{popoverBg:e,popoverColor:t,popoverPadding:12});return[So(a),To(a),n&&ko(a),fo(a,"zoom-big")]},o=>{let{zIndexPopupBase:e}=o;return{zIndexPopup:e+30,width:177}}),Bo=()=>c(c({},Z()),{content:y(),title:y()}),_o=X({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Q(Bo(),c(c({},U()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(o,e){let{expose:t,slots:n,attrs:a}=e;const f=G();L(o.visible===void 0,"popover","`visible` will be removed in next major version, please use `open` instead."),t({getPopupDomNode:()=>{var s,v;return(v=(s=f.value)===null||s===void 0?void 0:s.getPopupDomNode)===null||v===void 0?void 0:v.call(s)}});const{prefixCls:i,configProvider:p}=V("popover",o),[g,m]=wo(i),C=O(()=>p.getPrefixCls()),x=()=>{var s,v;const{title:P=W((s=n.title)===null||s===void 0?void 0:s.call(n)),content:u=W((v=n.content)===null||v===void 0?void 0:v.call(n))}=o,h=!!(Array.isArray(P)?P.length:P),w=!!(Array.isArray(u)?u.length:P);return!h&&!w?null:d(uo,null,[h&&d("div",{class:`${i.value}-title`},[P]),d("div",{class:`${i.value}-inner-content`},[u])])};return()=>{const s=K(o.overlayClassName,m.value);return g(d(vo,b(b(b({},J(o,["title","content"])),a),{},{prefixCls:i.value,ref:f,overlayClassName:s,transitionName:q(C.value,"zoom-big",o.transitionName),"data-popover-inject":!0}),{title:x,default:n.default}))}}}),No=F(_o),Oo=o=>{const{componentCls:e,iconCls:t,zIndexPopup:n,colorText:a,colorWarning:f,marginXS:i,fontSize:p,fontWeightStrong:g,lineHeight:m}=o;return{[e]:{zIndex:n,[`${e}-inner-content`]:{color:a},[`${e}-message`]:{position:"relative",marginBottom:i,color:a,fontSize:p,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e}-message-icon ${t}`]:{color:f,fontSize:p,flex:"none",lineHeight:1,paddingTop:(Math.round(p*m)-p)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:g}},[`${e}-description`]:{position:"relative",marginInlineStart:p+i,marginBottom:i,color:a,fontSize:p},[`${e}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},zo=M("Popconfirm",o=>Oo(o),o=>{const{zIndexPopupBase:e}=o;return{zIndexPopup:e+60}});var Ao=function(o,e){var t={};for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(o);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(o,n[a])&&(t[n[a]]=o[n[a]]);return t};const Io=()=>c(c({},Z()),{prefixCls:String,content:y(),title:y(),description:y(),okType:po("primary"),disabled:{type:Boolean,default:!1},okText:y(),cancelText:y(),icon:y(),okButtonProps:R(),cancelButtonProps:R(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Do=X({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Q(Io(),c(c({},U()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(o,e){let{slots:t,emit:n,expose:a,attrs:f}=e;const i=G();L(o.visible===void 0,"Popconfirm","`visible` will be removed in next major version, please use `open` instead."),a({getPopupDomNode:()=>{var r,l;return(l=(r=i.value)===null||r===void 0?void 0:r.getPopupDomNode)===null||l===void 0?void 0:l.call(r)}});const[p,g]=Po(!1,{value:mo(o,"open")}),m=(r,l)=>{o.open===void 0&&g(r),n("update:open",r),n("openChange",r,l)},C=r=>{m(!1,r)},x=r=>{var l;return(l=o.onConfirm)===null||l===void 0?void 0:l.call(o,r)},s=r=>{var l;m(!1,r),(l=o.onCancel)===null||l===void 0||l.call(o,r)},v=r=>{r.keyCode===bo.ESC&&p&&m(!1,r)},P=r=>{const{disabled:l}=o;l||m(r)},{prefixCls:u,getPrefixCls:h}=V("popconfirm",o),w=O(()=>h()),Y=O(()=>h("btn")),[oo]=zo(u),[z]=so("Popconfirm",co.Popconfirm),eo=()=>{var r,l,$,S,T;const{okButtonProps:k,cancelButtonProps:B,title:_=(r=t.title)===null||r===void 0?void 0:r.call(t),description:N=(l=t.description)===null||l===void 0?void 0:l.call(t),cancelText:to=($=t.cancel)===null||$===void 0?void 0:$.call(t),okText:no=(S=t.okText)===null||S===void 0?void 0:S.call(t),okType:A,icon:I=((T=t.icon)===null||T===void 0?void 0:T.call(t))||d(yo,null,null),showCancel:ro=!0}=o,{cancelButton:D,okButton:j}=t,E=c({onClick:s,size:"small"},B),ao=c(c(c({onClick:x},H(A)),{size:"small"}),k);return d("div",{class:`${u.value}-inner-content`},[d("div",{class:`${u.value}-message`},[I&&d("span",{class:`${u.value}-message-icon`},[I]),d("div",{class:[`${u.value}-message-title`,{[`${u.value}-message-title-only`]:!!N}]},[_])]),N&&d("div",{class:`${u.value}-description`},[N]),d("div",{class:`${u.value}-buttons`},[ro?D?D(E):d(xo,E,{default:()=>[to||z.value.cancelText]}):null,j?j(ao):d($o,{buttonProps:c(c({size:"small"},H(A)),k),actionFn:x,close:C,prefixCls:Y.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[no||z.value.okText]})])])};return()=>{var r;const{placement:l,overlayClassName:$,trigger:S="click"}=o,T=Ao(o,["placement","overlayClassName","trigger"]),k=J(T,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),B=K(u.value,$);return oo(d(No,b(b(b({},k),f),{},{trigger:S,placement:l,onOpenChange:P,open:p.value,overlayClassName:B,transitionName:q(w.value,"zoom-big",o.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[ho(((r=t.default)===null||r===void 0?void 0:r.call(t))||[],{onKeydown:_=>{v(_)}},!1)],content:eo}))}}}),ce=F(Do);export{ce as default,Io as popconfirmProps};
@@ -1,4 +1,4 @@
1
- import{K as ye,P as h,f as $,g as be,h as i,i as U,j as Le,k as Re,l as Ee,m as De,r as We,n as je,o as Ve,p as le,q as _e,w as xe,s as Y,v as K,x as Ge,C as Ke,y as Xe,z as Ue,A as Qe}from"./index-Dmt1HDWZ.js";import{d as A,b as q,c as a,a6 as $e,a3 as Se,r as X,n as ke,a4 as he,s as T,w as Z,f as Ye,e as qe,F as Ze,A as se,u as Je,j as eo}from"./vendor-Bn1JzzAn.js";import{K as ce}from"./KeyCode-D63Tfrq7.js";import{o as we}from"./omit-DxOZvcGQ.js";import{p as oo}from"./pickAttrs-LpzmHdkw.js";import{i as J}from"./initDefaultProps-C_pMmi75.js";import{i as no,P as to,a as lo}from"./motion-BvKgS96o.js";import{b as ao,E as io,C as ro,a as so,I as co}from"./icons-DG5UD-6K.js";import{B as de,c as uo}from"./index-ArZCi1rK.js";import{c as fo}from"./styleChecker-BqknYxTe.js";import{i as mo}from"./zoom-CjbgJYXQ.js";import{A as ue}from"./ActionButton-BBB1VF4j.js";import{t as po}from"./vnode-C8ZuTk8W.js";import"./raf-Deuc0E8-.js";import"./index-nuZaMsMy.js";import"./isVisible-C7tPsqfj.js";import"./useState-CnxtbLoC.js";import"./devWarning-Cwuuqc_f.js";import"./compact-item-DjsoqA5t.js";import"./createContext-CfEdl1in.js";import"./Compact-C-5fAsZ4.js";import"./_getTag-DnrRH4E6.js";const go=new ye("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),vo=new ye("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Co=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,t=`${n}-fade`,l=o?"&":"";return[no(t,go,vo,e.motionDurationMid,o),{[`
1
+ import{K as ye,P as h,f as $,g as be,h as i,i as U,j as Le,k as Re,l as Ee,m as De,r as We,n as je,o as Ve,p as le,q as _e,w as xe,s as Y,v as K,x as Ge,C as Ke,y as Xe,z as Ue,A as Qe}from"./index-COg__P6M.js";import{d as A,b as q,c as a,a6 as $e,a3 as Se,r as X,n as ke,a4 as he,s as T,w as Z,f as Ye,e as qe,F as Ze,A as se,u as Je,j as eo}from"./vendor-Bn1JzzAn.js";import{K as ce}from"./KeyCode-D63Tfrq7.js";import{o as we}from"./omit-C0uA2ytw.js";import{p as oo}from"./pickAttrs-CySaWMPl.js";import{i as J}from"./initDefaultProps-B_Uk-wzg.js";import{i as no,P as to,a as lo}from"./motion-ez7H8y8b.js";import{b as ao,E as io,C as ro,a as so,I as co}from"./icons-DG5UD-6K.js";import{B as de,c as uo}from"./index-CRlJOWsf.js";import{c as fo}from"./styleChecker-DYgBJGDh.js";import{i as mo}from"./zoom-DW7seTGG.js";import{A as ue}from"./ActionButton-4CBfc5E4.js";import{t as po}from"./vnode-D-hXAnHb.js";import"./raf-Deuc0E8-.js";import"./index-z5rYvstM.js";import"./isVisible-C7tPsqfj.js";import"./useState-CnxtbLoC.js";import"./devWarning-BRylvxzY.js";import"./compact-item-BYpsOET5.js";import"./createContext-CoUkR4LQ.js";import"./Compact-BrHim8EB.js";import"./_getTag-DnrRH4E6.js";const go=new ye("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),vo=new ye("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Co=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,t=`${n}-fade`,l=o?"&":"";return[no(t,go,vo,e.motionDurationMid,o),{[`
2
2
  ${l}${t}-enter,
3
3
  ${l}${t}-appear
4
4
  `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${t}-leave`]:{animationTimingFunction:"linear"}}]};function ae(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:h.shape({x:Number,y:Number}).loose,title:h.any,footer:h.any,transitionName:String,maskTransitionName:String,animation:h.any,maskAnimation:h.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:h.any,maskProps:h.any,wrapProps:h.any,getContainer:h.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:h.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function fe(e,o,n){let t=o;return!t&&n&&(t=`${e}-${n}`),t}let me=-1;function yo(){return me+=1,me}function pe(e,o){let n=e[`page${o?"Y":"X"}Offset`];const t=`scroll${o?"Top":"Left"}`;if(typeof n!="number"){const l=e.document;n=l.documentElement[t],typeof n!="number"&&(n=l.body[t])}return n}function bo(e){const o=e.getBoundingClientRect(),n={left:o.left,top:o.top},t=e.ownerDocument,l=t.defaultView||t.parentWindow;return n.left+=pe(l),n.top+=pe(l,!0),n}const xo={width:0,height:0,overflow:"hidden",outline:"none"},$o={outline:"none"},So=A({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:i(i({},ae()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,o){let{expose:n,slots:t,attrs:l}=o;const s=X(),p=X(),g=X();n({focus:()=>{var c;(c=s.value)===null||c===void 0||c.focus({preventScroll:!0})},changeActive:c=>{const{activeElement:r}=document;c&&r===p.value?s.value.focus({preventScroll:!0}):!c&&r===s.value&&p.value.focus({preventScroll:!0})}});const S=X(),m=q(()=>{const{width:c,height:r}=e,C={};return c!==void 0&&(C.width=typeof c=="number"?`${c}px`:c),r!==void 0&&(C.height=typeof r=="number"?`${r}px`:r),S.value&&(C.transformOrigin=S.value),C}),u=()=>{ke(()=>{if(g.value){const c=bo(g.value);S.value=e.mousePosition?`${e.mousePosition.x-c.left}px ${e.mousePosition.y-c.top}px`:""}})},d=c=>{e.onVisibleChanged(c)};return()=>{var c,r,C,y;const{prefixCls:x,footer:f=(c=t.footer)===null||c===void 0?void 0:c.call(t),title:b=(r=t.title)===null||r===void 0?void 0:r.call(t),ariaId:v,closable:w,closeIcon:B=(C=t.closeIcon)===null||C===void 0?void 0:C.call(t),onClose:F,bodyStyle:I,bodyProps:M,onMousedown:H,onMouseup:O,visible:E,modalRender:D=t.modalRender,destroyOnClose:_,motionName:N}=e;let W;f&&(W=a("div",{class:`${x}-footer`},[f]));let j;b&&(j=a("div",{class:`${x}-header`},[a("div",{class:`${x}-title`,id:v},[b])]));let L;w&&(L=a("button",{type:"button",onClick:F,"aria-label":"Close",class:`${x}-close`},[B||a("span",{class:`${x}-close-x`},null)]));const z=a("div",{class:`${x}-content`},[L,j,a("div",$({class:`${x}-body`,style:I},M),[(y=t.default)===null||y===void 0?void 0:y.call(t)]),W]),ee=be(N);return a($e,$($({},ee),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[E||!_?Se(a("div",$($({},l),{},{ref:g,key:"dialog-element",role:"document",style:[m.value,l.style],class:[x,l.class],onMousedown:H,onMouseup:O}),[a("div",{tabindex:0,ref:s,style:$o},[D?D({originVNode:z}):z]),a("div",{tabindex:0,ref:p,style:xo},null)]),[[he,E]]):null]})}}}),ho=A({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,o){return()=>{const{prefixCls:n,visible:t,maskProps:l,motionName:s}=e,p=be(s);return a($e,p,{default:()=>[Se(a("div",$({class:`${n}-mask`},l),null),[[he,t]])]})}}}),ge=A({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:J(i(i({},ae()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,o){let{attrs:n,slots:t}=o;const l=T(),s=T(),p=T(),g=T(e.visible),S=T(`vcDialogTitle${yo()}`),m=f=>{var b,v;if(f)Le(s.value,document.activeElement)||(l.value=document.activeElement,(b=p.value)===null||b===void 0||b.focus());else{const w=g.value;if(g.value=!1,e.mask&&l.value&&e.focusTriggerAfterClose){try{l.value.focus({preventScroll:!0})}catch{}l.value=null}w&&((v=e.afterClose)===null||v===void 0||v.call(e))}},u=f=>{var b;(b=e.onClose)===null||b===void 0||b.call(e,f)},d=T(!1),c=T(),r=()=>{clearTimeout(c.value),d.value=!0},C=()=>{c.value=setTimeout(()=>{d.value=!1})},y=f=>{if(!e.maskClosable)return null;d.value?d.value=!1:s.value===f.target&&u(f)},x=f=>{if(e.keyboard&&f.keyCode===ce.ESC){f.stopPropagation(),u(f);return}e.visible&&f.keyCode===ce.TAB&&p.value.changeActive(!f.shiftKey)};return Z(()=>e.visible,()=>{e.visible&&(g.value=!0)},{flush:"post"}),Ye(()=>{var f;clearTimeout(c.value),(f=e.scrollLocker)===null||f===void 0||f.unLock()}),qe(()=>{var f,b;(f=e.scrollLocker)===null||f===void 0||f.unLock(),g.value&&((b=e.scrollLocker)===null||b===void 0||b.lock())}),()=>{const{prefixCls:f,mask:b,visible:v,maskTransitionName:w,maskAnimation:B,zIndex:F,wrapClassName:I,rootClassName:M,wrapStyle:H,closable:O,maskProps:E,maskStyle:D,transitionName:_,animation:N,wrapProps:W,title:j=t.title}=e,{style:L,class:z}=n;return a("div",$({class:[`${f}-root`,M]},oo(e,{data:!0})),[a(ho,{prefixCls:f,visible:b&&v,motionName:fe(f,w,B),style:i({zIndex:F},D),maskProps:E},null),a("div",$({tabIndex:-1,onKeydown:x,class:U(`${f}-wrap`,I),ref:s,onClick:y,role:"dialog","aria-labelledby":j?S.value:null,style:i(i({zIndex:F},H),{display:g.value?null:"none"})},W),[a(So,$($({},we(e,["scrollLocker"])),{},{style:L,class:z,onMousedown:r,onMouseup:C,ref:p,closable:O,ariaId:S.value,prefixCls:f,visible:v,onClose:u,onVisibleChanged:m,motionName:fe(f,_,N)}),t)])])}}}),wo=ae(),To=A({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:J(wo,{visible:!1}),setup(e,o){let{attrs:n,slots:t}=o;const l=X(e.visible);return Re({},{inTriggerContext:!1}),Z(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:"post"}),()=>{const{visible:s,getContainer:p,forceRender:g,destroyOnClose:S=!1,afterClose:m}=e;let u=i(i(i({},e),n),{ref:"_component",key:"dialog"});return p===!1?a(ge,$($({},u),{},{getOpenCount:()=>2}),t):!g&&S&&!l.value?null:a(to,{autoLock:!0,visible:s,forceRender:g,getContainer:p},{default:d=>(u=i(i(i({},u),d),{afterClose:()=>{m?.(),l.value=!1}}),a(ge,u,t))})}}});function ve(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const Bo=e=>{const{componentCls:o}=e;return[{[`${o}-root`]:{[`${o}${e.antCls}-zoom-enter, ${o}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${o}${e.antCls}-zoom-leave ${o}-content`]:{pointerEvents:"none"},[`${o}-mask`]:i(i({},ve("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${o}-hidden`]:{display:"none"}}),[`${o}-wrap`]:i(i({},ve("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${o}-root`]:Co(e)}]},Po=e=>{const{componentCls:o}=e;return[{[`${o}-root`]:{[`${o}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${o}-wrap-rtl`]:{direction:"rtl"},[`${o}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[o]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[o]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${o}-centered`]:{[o]:{flex:1}}}}},{[o]:i(i({},We(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${o}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${o}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${o}-close`]:i({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},je(e)),[`${o}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${o}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${o}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${o}-open`]:{overflow:"hidden"}})},{[`${o}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${o}-content,
@@ -1 +1 @@
1
- import{l as re,m as ne,h as v,q as I,i as D,f as M,P as p,R as F}from"./index-Dmt1HDWZ.js";import{d as L,c as g,p as Z,b as ae,r as ie,i as le,s as R,w as j,o as se,f as de}from"./vendor-Bn1JzzAn.js";import{a as G,S as ce}from"./injectionKey-BXVc-oGP.js";import{i as ue}from"./initDefaultProps-C_pMmi75.js";import{i as ge}from"./isNumeric-DjvBa-1E.js";import{bf as fe,bc as _,ah as X}from"./icons-DG5UD-6K.js";const pe=e=>{const{componentCls:n,colorBgContainer:o,colorBgBody:s,colorText:a}=e;return{[`${n}-sider-light`]:{background:o,[`${n}-sider-trigger`]:{color:a,background:o},[`${n}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${s}`,borderInlineStart:0}}}},me=e=>{const{antCls:n,componentCls:o,colorText:s,colorTextLightSolid:a,colorBgHeader:f,colorBgBody:d,colorBgTrigger:i,layoutHeaderHeight:c,layoutHeaderPaddingInline:h,layoutHeaderColor:x,layoutFooterPadding:t,layoutTriggerHeight:l,layoutZeroTriggerSize:y,motionDurationMid:S,motionDurationSlow:r,fontSize:m,borderRadius:u}=e;return{[o]:v(v({display:"flex",flex:"auto",flexDirection:"column",color:s,minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},[`${o}-header`]:{height:c,paddingInline:h,color:x,lineHeight:`${c}px`,background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:t,color:s,fontSize:m,background:d},[`${o}-content`]:{flex:"auto",minHeight:0},[`${o}-sider`]:{position:"relative",minWidth:0,background:f,transition:`all ${S}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${n}-menu${n}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:l},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:l,color:a,lineHeight:`${l}px`,textAlign:"center",background:i,cursor:"pointer",transition:`all ${S}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:-y,zIndex:1,width:y,height:y,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:f,borderStartStartRadius:0,borderStartEndRadius:u,borderEndEndRadius:u,borderEndStartRadius:0,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-y,borderStartStartRadius:u,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:u}}}}},pe(e)),{"&-rtl":{direction:"rtl"}})}},he=re("Layout",e=>{const{colorText:n,controlHeightSM:o,controlHeight:s,controlHeightLG:a,marginXXS:f}=e,d=a*1.25,i=ne(e,{layoutHeaderHeight:s*2,layoutHeaderPaddingInline:d,layoutHeaderColor:n,layoutFooterPadding:`${o}px ${d}px`,layoutTriggerHeight:a+f*2,layoutZeroTriggerSize:a});return[me(i)]},e=>{const{colorBgLayout:n}=e;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140"}}),O=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function B(e){let{suffixCls:n,tagName:o,name:s}=e;return a=>L({compatConfig:{MODE:3},name:s,props:O(),setup(d,i){let{slots:c}=i;const{prefixCls:h}=I(n,d);return()=>{const x=v(v({},d),{prefixCls:h.value,tagName:o});return g(a,x,c)}}})}const P=L({compatConfig:{MODE:3},props:O(),setup(e,n){let{slots:o}=n;return()=>g(e.tagName,{class:e.prefixCls},o)}}),xe=L({compatConfig:{MODE:3},inheritAttrs:!1,props:O(),setup(e,n){let{slots:o,attrs:s}=n;const{prefixCls:a,direction:f}=I("",e),[d,i]=he(a),c=ie([]);Z(G,{addSider:t=>{c.value=[...c.value,t]},removeSider:t=>{c.value=c.value.filter(l=>l!==t)}});const x=ae(()=>{const{prefixCls:t,hasSider:l}=e;return{[i.value]:!0,[`${t}`]:!0,[`${t}-has-sider`]:typeof l=="boolean"?l:c.value.length>0,[`${t}-rtl`]:f.value==="rtl"}});return()=>{const{tagName:t}=e;return d(g(t,v(v({},s),{class:[x.value,s.class]}),o))}}}),A=B({suffixCls:"layout",tagName:"section",name:"ALayout"})(xe),C=B({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(P),w=B({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(P),H=B({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(P),K={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},ye=()=>({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:p.any,width:p.oneOfType([p.number,p.string]),collapsedWidth:p.oneOfType([p.number,p.string]),breakpoint:p.oneOf(F("xs","sm","md","lg","xl","xxl","xxxl")),theme:p.oneOf(F("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),ve=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),k=L({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:ue(ye(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,n){let{emit:o,attrs:s,slots:a}=n;const{prefixCls:f}=I("layout-sider",e),d=le(G,void 0),i=R(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),c=R(!1);j(()=>e.collapsed,()=>{i.value=!!e.collapsed}),Z(ce,i);const h=(r,m)=>{e.collapsed===void 0&&(i.value=r),o("update:collapsed",r),o("collapse",r,m)},x=R(r=>{c.value=r.matches,o("breakpoint",r.matches),i.value!==r.matches&&h(r.matches,"responsive")});let t;function l(r){return x.value(r)}const y=ve("ant-sider-");d&&d.addSider(y),se(()=>{j(()=>e.breakpoint,()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}if(typeof window<"u"){const{matchMedia:r}=window;if(r&&e.breakpoint&&e.breakpoint in K){t=r(`(max-width: ${K[e.breakpoint]})`);try{t.addEventListener("change",l)}catch{t.addListener(l)}l(t)}}},{immediate:!0})}),de(()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}d&&d.removeSider(y)});const S=()=>{h(!i.value,"clickTrigger")};return()=>{var r,m;const u=f.value,{collapsedWidth:N,width:U,reverseArrow:T,zeroWidthTriggerStyle:V,trigger:$=(r=a.trigger)===null||r===void 0?void 0:r.call(a),collapsible:W,theme:q}=e,z=i.value?N:U,b=ge(z)?`${z}px`:String(z),E=parseFloat(String(N||0))===0?g("span",{onClick:S,class:D(`${u}-zero-width-trigger`,`${u}-zero-width-trigger-${T?"right":"left"}`),style:V},[$||g(fe,null,null)]):null,J={expanded:T?g(X,null,null):g(_,null,null),collapsed:T?g(_,null,null):g(X,null,null)},Q=i.value?"collapsed":"expanded",Y=J[Q],ee=$!==null?E||g("div",{class:`${u}-trigger`,onClick:S,style:{width:b}},[$||Y]):null,te=[s.style,{flex:`0 0 ${b}`,maxWidth:b,minWidth:b,width:b}],oe=D(u,`${u}-${q}`,{[`${u}-collapsed`]:!!i.value,[`${u}-has-trigger`]:W&&$!==null&&!E,[`${u}-below`]:!!c.value,[`${u}-zero-width`]:parseFloat(b)===0},s.class);return g("aside",M(M({},s),{},{class:oe,style:te}),[g("div",{class:`${u}-children`},[(m=a.default)===null||m===void 0?void 0:m.call(a)]),W||c.value&&E?ee:null])}}}),ke=C,Le=w,Be=k,Te=H,ze=v(A,{Header:C,Footer:w,Content:H,Sider:k,install:e=>(e.component(A.name,A),e.component(C.name,C),e.component(w.name,w),e.component(k.name,k),e.component(H.name,H),e)});export{Te as LayoutContent,Le as LayoutFooter,ke as LayoutHeader,Be as LayoutSider,ze as default};
1
+ import{l as re,m as ne,h as v,q as I,i as D,f as M,P as p,R as F}from"./index-COg__P6M.js";import{d as L,c as g,p as Z,b as ae,r as ie,i as le,s as R,w as j,o as se,f as de}from"./vendor-Bn1JzzAn.js";import{a as G,S as ce}from"./injectionKey-BXVc-oGP.js";import{i as ue}from"./initDefaultProps-B_Uk-wzg.js";import{i as ge}from"./isNumeric-DjvBa-1E.js";import{bf as fe,bc as _,ah as X}from"./icons-DG5UD-6K.js";const pe=e=>{const{componentCls:n,colorBgContainer:o,colorBgBody:s,colorText:a}=e;return{[`${n}-sider-light`]:{background:o,[`${n}-sider-trigger`]:{color:a,background:o},[`${n}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${s}`,borderInlineStart:0}}}},me=e=>{const{antCls:n,componentCls:o,colorText:s,colorTextLightSolid:a,colorBgHeader:f,colorBgBody:d,colorBgTrigger:i,layoutHeaderHeight:c,layoutHeaderPaddingInline:h,layoutHeaderColor:x,layoutFooterPadding:t,layoutTriggerHeight:l,layoutZeroTriggerSize:y,motionDurationMid:S,motionDurationSlow:r,fontSize:m,borderRadius:u}=e;return{[o]:v(v({display:"flex",flex:"auto",flexDirection:"column",color:s,minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},[`${o}-header`]:{height:c,paddingInline:h,color:x,lineHeight:`${c}px`,background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:t,color:s,fontSize:m,background:d},[`${o}-content`]:{flex:"auto",minHeight:0},[`${o}-sider`]:{position:"relative",minWidth:0,background:f,transition:`all ${S}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${n}-menu${n}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:l},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:l,color:a,lineHeight:`${l}px`,textAlign:"center",background:i,cursor:"pointer",transition:`all ${S}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:-y,zIndex:1,width:y,height:y,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:f,borderStartStartRadius:0,borderStartEndRadius:u,borderEndEndRadius:u,borderEndStartRadius:0,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-y,borderStartStartRadius:u,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:u}}}}},pe(e)),{"&-rtl":{direction:"rtl"}})}},he=re("Layout",e=>{const{colorText:n,controlHeightSM:o,controlHeight:s,controlHeightLG:a,marginXXS:f}=e,d=a*1.25,i=ne(e,{layoutHeaderHeight:s*2,layoutHeaderPaddingInline:d,layoutHeaderColor:n,layoutFooterPadding:`${o}px ${d}px`,layoutTriggerHeight:a+f*2,layoutZeroTriggerSize:a});return[me(i)]},e=>{const{colorBgLayout:n}=e;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140"}}),O=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function B(e){let{suffixCls:n,tagName:o,name:s}=e;return a=>L({compatConfig:{MODE:3},name:s,props:O(),setup(d,i){let{slots:c}=i;const{prefixCls:h}=I(n,d);return()=>{const x=v(v({},d),{prefixCls:h.value,tagName:o});return g(a,x,c)}}})}const P=L({compatConfig:{MODE:3},props:O(),setup(e,n){let{slots:o}=n;return()=>g(e.tagName,{class:e.prefixCls},o)}}),xe=L({compatConfig:{MODE:3},inheritAttrs:!1,props:O(),setup(e,n){let{slots:o,attrs:s}=n;const{prefixCls:a,direction:f}=I("",e),[d,i]=he(a),c=ie([]);Z(G,{addSider:t=>{c.value=[...c.value,t]},removeSider:t=>{c.value=c.value.filter(l=>l!==t)}});const x=ae(()=>{const{prefixCls:t,hasSider:l}=e;return{[i.value]:!0,[`${t}`]:!0,[`${t}-has-sider`]:typeof l=="boolean"?l:c.value.length>0,[`${t}-rtl`]:f.value==="rtl"}});return()=>{const{tagName:t}=e;return d(g(t,v(v({},s),{class:[x.value,s.class]}),o))}}}),A=B({suffixCls:"layout",tagName:"section",name:"ALayout"})(xe),C=B({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(P),w=B({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(P),H=B({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(P),K={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},ye=()=>({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:p.any,width:p.oneOfType([p.number,p.string]),collapsedWidth:p.oneOfType([p.number,p.string]),breakpoint:p.oneOf(F("xs","sm","md","lg","xl","xxl","xxxl")),theme:p.oneOf(F("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),ve=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),k=L({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:ue(ye(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,n){let{emit:o,attrs:s,slots:a}=n;const{prefixCls:f}=I("layout-sider",e),d=le(G,void 0),i=R(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),c=R(!1);j(()=>e.collapsed,()=>{i.value=!!e.collapsed}),Z(ce,i);const h=(r,m)=>{e.collapsed===void 0&&(i.value=r),o("update:collapsed",r),o("collapse",r,m)},x=R(r=>{c.value=r.matches,o("breakpoint",r.matches),i.value!==r.matches&&h(r.matches,"responsive")});let t;function l(r){return x.value(r)}const y=ve("ant-sider-");d&&d.addSider(y),se(()=>{j(()=>e.breakpoint,()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}if(typeof window<"u"){const{matchMedia:r}=window;if(r&&e.breakpoint&&e.breakpoint in K){t=r(`(max-width: ${K[e.breakpoint]})`);try{t.addEventListener("change",l)}catch{t.addListener(l)}l(t)}}},{immediate:!0})}),de(()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}d&&d.removeSider(y)});const S=()=>{h(!i.value,"clickTrigger")};return()=>{var r,m;const u=f.value,{collapsedWidth:N,width:U,reverseArrow:T,zeroWidthTriggerStyle:V,trigger:$=(r=a.trigger)===null||r===void 0?void 0:r.call(a),collapsible:W,theme:q}=e,z=i.value?N:U,b=ge(z)?`${z}px`:String(z),E=parseFloat(String(N||0))===0?g("span",{onClick:S,class:D(`${u}-zero-width-trigger`,`${u}-zero-width-trigger-${T?"right":"left"}`),style:V},[$||g(fe,null,null)]):null,J={expanded:T?g(X,null,null):g(_,null,null),collapsed:T?g(_,null,null):g(X,null,null)},Q=i.value?"collapsed":"expanded",Y=J[Q],ee=$!==null?E||g("div",{class:`${u}-trigger`,onClick:S,style:{width:b}},[$||Y]):null,te=[s.style,{flex:`0 0 ${b}`,maxWidth:b,minWidth:b,width:b}],oe=D(u,`${u}-${q}`,{[`${u}-collapsed`]:!!i.value,[`${u}-has-trigger`]:W&&$!==null&&!E,[`${u}-below`]:!!c.value,[`${u}-zero-width`]:parseFloat(b)===0},s.class);return g("aside",M(M({},s),{},{class:oe,style:te}),[g("div",{class:`${u}-children`},[(m=a.default)===null||m===void 0?void 0:m.call(a)]),W||c.value&&E?ee:null])}}}),ke=C,Le=w,Be=k,Te=H,ze=v(A,{Header:C,Footer:w,Content:H,Sider:k,install:e=>(e.component(A.name,A),e.component(C.name,C),e.component(w.name,w),e.component(k.name,k),e.component(H.name,H),e)});export{Te as LayoutContent,Le as LayoutFooter,ke as LayoutHeader,Be as LayoutSider,ze as default};
@@ -1 +1 @@
1
- import{q as Y,P as B,L as lt,f as E,i as ot,a2 as pt,a3 as vt,l as $t,m as ft,h as M,r as ht,v as et,a4 as W,H as it,a5 as St,a6 as q,a7 as yt}from"./index-Dmt1HDWZ.js";import{d as J,c as r,i as xt,r as G,p as bt,b as I,w as Ct,a9 as nt}from"./vendor-Bn1JzzAn.js";import It from"./index-C4k6JGm_.js";import{u as Lt,e as _t,P as zt}from"./index-DTDpF8MS.js";import{A as Mt}from"./Row-C-RorxHs.js";import{C as Pt}from"./Col-8NQiKJJx.js";import{c as wt}from"./vnode-C8ZuTk8W.js";import{i as Et}from"./initDefaultProps-C_pMmi75.js";import{r as at}from"./responsiveObserve-CVZZlhJf.js";import"./icons-DG5UD-6K.js";import"./index-CsEk9s04.js";import"./Trigger-BMNHmxwH.js";import"./raf-Deuc0E8-.js";import"./motion-BvKgS96o.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./KeyCode-D63Tfrq7.js";import"./BaseInput-Bu-PNzC5.js";import"./pickAttrs-LpzmHdkw.js";import"./Overflow-C3jb6knl.js";import"./index-Ds1BfT_C.js";import"./isMobile--2fOlCHx.js";import"./omit-DxOZvcGQ.js";import"./useMergedState-DXbJa_zE.js";import"./useState-CnxtbLoC.js";import"./FormItemContext-gtrW-DdF.js";import"./devWarning-Cwuuqc_f.js";import"./createContext-CfEdl1in.js";import"./statusUtils-LrjHAy63.js";import"./Compact-C-5fAsZ4.js";import"./move-C-1U4R1I.js";import"./slide-DD1xINGx.js";import"./compact-item-DjsoqA5t.js";import"./index-CNeLedtU.js";import"./firstNotUndefined-CLFzEa0p.js";import"./useFlexGapSupport-Dljy3diT.js";import"./styleChecker-BqknYxTe.js";import"./index-BqPuyN4p.js";const Tt=()=>({avatar:B.any,description:B.any,prefixCls:String,title:B.any}),Bt=J({compatConfig:{MODE:3},name:"AListItemMeta",props:Tt(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(t,e){let{slots:i}=e;const{prefixCls:l}=Y("list",t);return()=>{var o,c,p,a,S,d;const m=`${l.value}-item-meta`,u=(o=t.title)!==null&&o!==void 0?o:(c=i.title)===null||c===void 0?void 0:c.call(i),s=(p=t.description)!==null&&p!==void 0?p:(a=i.description)===null||a===void 0?void 0:a.call(i),f=(S=t.avatar)!==null&&S!==void 0?S:(d=i.avatar)===null||d===void 0?void 0:d.call(i),v=r("div",{class:`${l.value}-item-meta-content`},[u&&r("h4",{class:`${l.value}-item-meta-title`},[u]),s&&r("div",{class:`${l.value}-item-meta-description`},[s])]);return r("div",{class:m},[f&&r("div",{class:`${l.value}-item-meta-avatar`},[f]),(u||s)&&v])}}}),rt=Symbol("ListContextKey");var At=function(t,e){var i={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(i[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(t);o<l.length;o++)e.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(t,l[o])&&(i[l[o]]=t[l[o]]);return i};const Ot=()=>({prefixCls:String,extra:B.any,actions:B.array,grid:Object,colStyle:{type:Object,default:void 0}}),Ht=J({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:Bt,props:Ot(),slots:Object,setup(t,e){let{slots:i,attrs:l}=e;const{itemLayout:o,grid:c}=xt(rt,{grid:G(),itemLayout:G()}),{prefixCls:p}=Y("list",t),a=()=>{var d;const m=((d=i.default)===null||d===void 0?void 0:d.call(i))||[];let u;return m.forEach(s=>{pt(s)&&!vt(s)&&(u=!0)}),u&&m.length>1},S=()=>{var d,m;const u=(d=t.extra)!==null&&d!==void 0?d:(m=i.extra)===null||m===void 0?void 0:m.call(i);return o.value==="vertical"?!!u:!a()};return()=>{var d,m,u,s,f;const{class:v}=l,b=At(l,["class"]),h=p.value,L=(d=t.extra)!==null&&d!==void 0?d:(m=i.extra)===null||m===void 0?void 0:m.call(i),A=(u=i.default)===null||u===void 0?void 0:u.call(i);let $=(s=t.actions)!==null&&s!==void 0?s:lt((f=i.actions)===null||f===void 0?void 0:f.call(i));$=$&&!Array.isArray($)?[$]:$;const P=$&&$.length>0&&r("ul",{class:`${h}-item-action`,key:"actions"},[$.map((C,T)=>r("li",{key:`${h}-item-action-${T}`},[C,T!==$.length-1&&r("em",{class:`${h}-item-action-split`},null)]))]),O=c.value?"div":"li",H=r(O,E(E({},b),{},{class:ot(`${h}-item`,{[`${h}-item-no-flex`]:!S()},v)}),{default:()=>[o.value==="vertical"&&L?[r("div",{class:`${h}-item-main`,key:"content"},[A,P]),r("div",{class:`${h}-item-extra`,key:"extra"},[L])]:[A,P,wt(L,{key:"extra"})]]});return c.value?r(Pt,{flex:1,style:t.colStyle},{default:()=>[H]}):H}}}),jt=t=>{const{listBorderedCls:e,componentCls:i,paddingLG:l,margin:o,padding:c,listItemPaddingSM:p,marginLG:a,borderRadiusLG:S}=t;return{[`${e}`]:{border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:S,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:l},[`${i}-pagination`]:{margin:`${o}px ${a}px`}},[`${e}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:p}},[`${e}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:`${c}px ${l}px`}}}},Wt=t=>{const{componentCls:e,screenSM:i,screenMD:l,marginLG:o,marginSM:c,margin:p}=t;return{[`@media screen and (max-width:${l})`]:{[`${e}`]:{[`${e}-item`]:{[`${e}-item-action`]:{marginInlineStart:o}}},[`${e}-vertical`]:{[`${e}-item`]:{[`${e}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${i})`]:{[`${e}`]:{[`${e}-item`]:{flexWrap:"wrap",[`${e}-action`]:{marginInlineStart:c}}},[`${e}-vertical`]:{[`${e}-item`]:{flexWrap:"wrap-reverse",[`${e}-item-main`]:{minWidth:t.contentWidth},[`${e}-item-extra`]:{margin:`auto auto ${p}px`}}}}}},Gt=t=>{const{componentCls:e,antCls:i,controlHeight:l,minHeight:o,paddingSM:c,marginLG:p,padding:a,listItemPadding:S,colorPrimary:d,listItemPaddingSM:m,listItemPaddingLG:u,paddingXS:s,margin:f,colorText:v,colorTextDescription:b,motionDurationSlow:h,lineWidth:L}=t;return{[`${e}`]:M(M({},ht(t)),{position:"relative","*":{outline:"none"},[`${e}-header, ${e}-footer`]:{background:"transparent",paddingBlock:c},[`${e}-pagination`]:{marginBlockStart:p,textAlign:"end",[`${i}-pagination-options`]:{textAlign:"start"}},[`${e}-spin`]:{minHeight:o,textAlign:"center"},[`${e}-items`]:{margin:0,padding:0,listStyle:"none"},[`${e}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:S,color:v,[`${e}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${e}-item-meta-avatar`]:{marginInlineEnd:a},[`${e}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${e}-item-meta-title`]:{marginBottom:t.marginXXS,color:v,fontSize:t.fontSize,lineHeight:t.lineHeight,"> a":{color:v,transition:`all ${h}`,"&:hover":{color:d}}},[`${e}-item-meta-description`]:{color:b,fontSize:t.fontSize,lineHeight:t.lineHeight}},[`${e}-item-action`]:{flex:"0 0 auto",marginInlineStart:t.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${s}px`,color:b,fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${e}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:L,height:Math.ceil(t.fontSize*t.lineHeight)-t.marginXXS*2,transform:"translateY(-50%)",backgroundColor:t.colorSplit}}},[`${e}-empty`]:{padding:`${a}px 0`,color:b,fontSize:t.fontSizeSM,textAlign:"center"},[`${e}-empty-text`]:{padding:a,color:t.colorTextDisabled,fontSize:t.fontSize,textAlign:"center"},[`${e}-item-no-flex`]:{display:"block"}}),[`${e}-grid ${i}-col > ${e}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${e}-vertical ${e}-item`]:{alignItems:"initial",[`${e}-item-main`]:{display:"block",flex:1},[`${e}-item-extra`]:{marginInlineStart:p},[`${e}-item-meta`]:{marginBlockEnd:a,[`${e}-item-meta-title`]:{marginBlockEnd:c,color:v,fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}},[`${e}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${e}-split ${e}-item`]:{borderBlockEnd:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${e}-split ${e}-header`]:{borderBlockEnd:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`},[`${e}-split${e}-empty ${e}-footer`]:{borderTop:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`},[`${e}-loading ${e}-spin-nested-loading`]:{minHeight:l},[`${e}-split${e}-something-after-last-item ${i}-spin-container > ${e}-items > ${e}-item:last-child`]:{borderBlockEnd:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`},[`${e}-lg ${e}-item`]:{padding:u},[`${e}-sm ${e}-item`]:{padding:m},[`${e}:not(${e}-vertical)`]:{[`${e}-item-no-flex`]:{[`${e}-item-action`]:{float:"right"}}}}},Dt=$t("List",t=>{const e=ft(t,{listBorderedCls:`${t.componentCls}-bordered`,minHeight:t.controlHeightLG,listItemPadding:`${t.paddingContentVertical}px ${t.paddingContentHorizontalLG}px`,listItemPaddingSM:`${t.paddingContentVerticalSM}px ${t.paddingContentHorizontal}px`,listItemPaddingLG:`${t.paddingContentVerticalLG}px ${t.paddingContentHorizontalLG}px`});return[Gt(e),jt(e),Wt(e)]},{contentWidth:220}),Kt=()=>({bordered:it(),dataSource:yt(),extra:W(),grid:et(),itemLayout:String,loading:q([Boolean,Object]),loadMore:W(),pagination:q([Boolean,Object]),prefixCls:String,rowKey:q([String,Number,Function]),renderItem:St(),size:String,split:it(),header:W(),footer:W(),locale:et()}),z=J({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:Ht,props:Et(Kt(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(t,e){let{slots:i,attrs:l}=e;var o,c;bt(rt,{grid:nt(t,"grid"),itemLayout:nt(t,"itemLayout")});const p={current:1,total:0},{prefixCls:a,direction:S,renderEmpty:d}=Y("list",t),[m,u]=Dt(a),s=I(()=>t.pagination&&typeof t.pagination=="object"?t.pagination:{}),f=G((o=s.value.defaultCurrent)!==null&&o!==void 0?o:1),v=G((c=s.value.defaultPageSize)!==null&&c!==void 0?c:10);Ct(s,()=>{"current"in s.value&&(f.value=s.value.current),"pageSize"in s.value&&(v.value=s.value.pageSize)});const b=[],h=n=>(g,y)=>{f.value=g,v.value=y,s.value[n]&&s.value[n](g,y)},L=h("onChange"),A=h("onShowSizeChange"),$=I(()=>typeof t.loading=="boolean"?{spinning:t.loading}:t.loading),P=I(()=>$.value&&$.value.spinning),O=I(()=>{let n="";switch(t.size){case"large":n="lg";break;case"small":n="sm";break}return n}),H=I(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:t.itemLayout==="vertical",[`${a.value}-${O.value}`]:O.value,[`${a.value}-split`]:t.split,[`${a.value}-bordered`]:t.bordered,[`${a.value}-loading`]:P.value,[`${a.value}-grid`]:!!t.grid,[`${a.value}-rtl`]:S.value==="rtl"})),C=I(()=>{const n=M(M(M({},p),{total:t.dataSource.length,current:f.value,pageSize:v.value}),t.pagination||{}),g=Math.ceil(n.total/n.pageSize);return n.current>g&&(n.current=g),n}),T=I(()=>{let n=[...t.dataSource];return t.pagination&&t.dataSource.length>(C.value.current-1)*C.value.pageSize&&(n=[...t.dataSource].splice((C.value.current-1)*C.value.pageSize,C.value.pageSize)),n}),st=Lt(),D=_t(()=>{for(let n=0;n<at.length;n+=1){const g=at[n];if(st.value[g])return g}}),dt=I(()=>{if(!t.grid)return;const n=D.value&&t.grid[D.value]?t.grid[D.value]:t.grid.column;if(n)return{width:`${100/n}%`,maxWidth:`${100/n}%`}}),ct=(n,g)=>{var y;const w=(y=t.renderItem)!==null&&y!==void 0?y:i.renderItem;if(!w)return null;let x;const _=typeof t.rowKey;return _==="function"?x=t.rowKey(n):_==="string"||_==="number"?x=n[t.rowKey]:x=n.key,x||(x=`list-item-${g}`),b[g]=x,w({item:n,index:g})};return()=>{var n,g,y,w,x,_,K,N;const Q=(n=t.loadMore)!==null&&n!==void 0?n:(g=i.loadMore)===null||g===void 0?void 0:g.call(i),X=(y=t.footer)!==null&&y!==void 0?y:(w=i.footer)===null||w===void 0?void 0:w.call(i),U=(x=t.header)!==null&&x!==void 0?x:(_=i.header)===null||_===void 0?void 0:_.call(i),Z=lt((K=i.default)===null||K===void 0?void 0:K.call(i)),mt=!!(Q||t.pagination||X),ut=ot(M(M({},H.value),{[`${a.value}-something-after-last-item`]:mt}),l.class,u.value),k=t.pagination?r("div",{class:`${a.value}-pagination`},[r(zt,E(E({},C.value),{},{onChange:L,onShowSizeChange:A}),null)]):null;let R=P.value&&r("div",{style:{minHeight:"53px"}},null);if(T.value.length>0){b.length=0;const tt=T.value.map((V,F)=>ct(V,F)),gt=tt.map((V,F)=>r("div",{key:b[F],style:dt.value},[V]));R=t.grid?r(Mt,{gutter:t.grid.gutter},{default:()=>[gt]}):r("ul",{class:`${a.value}-items`},[tt])}else!Z.length&&!P.value&&(R=r("div",{class:`${a.value}-empty-text`},[((N=t.locale)===null||N===void 0?void 0:N.emptyText)||d("List")]));const j=C.value.position||"bottom";return m(r("div",E(E({},l),{},{class:ut}),[(j==="top"||j==="both")&&k,U&&r("div",{class:`${a.value}-header`},[U]),r(It,$.value,{default:()=>[R,Z]}),X&&r("div",{class:`${a.value}-footer`},[X]),Q||(j==="bottom"||j==="both")&&k]))}}});z.install=function(t){return t.component(z.name,z),t.component(z.Item.name,z.Item),t.component(z.Item.Meta.name,z.Item.Meta),t};export{Ht as ListItem,Bt as ListItemMeta,z as default,Kt as listProps};
1
+ import{q as Y,P as B,L as lt,f as E,i as ot,a2 as pt,a3 as vt,l as $t,m as ft,h as M,r as ht,v as et,a4 as W,H as it,a5 as St,a6 as q,a7 as yt}from"./index-COg__P6M.js";import{d as J,c as r,i as xt,r as G,p as bt,b as I,w as Ct,a9 as nt}from"./vendor-Bn1JzzAn.js";import It from"./index-CH6XEWdj.js";import{u as Lt,e as _t,P as zt}from"./index-DcozYrXV.js";import{A as Mt}from"./Row-DzpHyTuz.js";import{C as Pt}from"./Col-BuueEwZW.js";import{c as wt}from"./vnode-D-hXAnHb.js";import{i as Et}from"./initDefaultProps-B_Uk-wzg.js";import{r as at}from"./responsiveObserve-BRy_wJog.js";import"./icons-DG5UD-6K.js";import"./index-DStN9E7o.js";import"./Trigger-ClBDWdLo.js";import"./raf-Deuc0E8-.js";import"./motion-ez7H8y8b.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./KeyCode-D63Tfrq7.js";import"./BaseInput-BpEvDrNt.js";import"./pickAttrs-CySaWMPl.js";import"./Overflow-CzOhNGE6.js";import"./index-djikyGz3.js";import"./isMobile--2fOlCHx.js";import"./omit-C0uA2ytw.js";import"./useMergedState-DXbJa_zE.js";import"./useState-CnxtbLoC.js";import"./FormItemContext-DdPW81BY.js";import"./devWarning-BRylvxzY.js";import"./createContext-CoUkR4LQ.js";import"./statusUtils-C_7SYY0K.js";import"./Compact-BrHim8EB.js";import"./move-CKWUhhhX.js";import"./slide-DmmvSaBD.js";import"./compact-item-BYpsOET5.js";import"./index-ZPdNPhUq.js";import"./firstNotUndefined-CLFzEa0p.js";import"./useFlexGapSupport-nPkoZkT6.js";import"./styleChecker-DYgBJGDh.js";import"./index-CScG8TAY.js";const Tt=()=>({avatar:B.any,description:B.any,prefixCls:String,title:B.any}),Bt=J({compatConfig:{MODE:3},name:"AListItemMeta",props:Tt(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(t,e){let{slots:i}=e;const{prefixCls:l}=Y("list",t);return()=>{var o,c,p,a,S,d;const m=`${l.value}-item-meta`,u=(o=t.title)!==null&&o!==void 0?o:(c=i.title)===null||c===void 0?void 0:c.call(i),s=(p=t.description)!==null&&p!==void 0?p:(a=i.description)===null||a===void 0?void 0:a.call(i),f=(S=t.avatar)!==null&&S!==void 0?S:(d=i.avatar)===null||d===void 0?void 0:d.call(i),v=r("div",{class:`${l.value}-item-meta-content`},[u&&r("h4",{class:`${l.value}-item-meta-title`},[u]),s&&r("div",{class:`${l.value}-item-meta-description`},[s])]);return r("div",{class:m},[f&&r("div",{class:`${l.value}-item-meta-avatar`},[f]),(u||s)&&v])}}}),rt=Symbol("ListContextKey");var At=function(t,e){var i={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(i[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(t);o<l.length;o++)e.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(t,l[o])&&(i[l[o]]=t[l[o]]);return i};const Ot=()=>({prefixCls:String,extra:B.any,actions:B.array,grid:Object,colStyle:{type:Object,default:void 0}}),Ht=J({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:Bt,props:Ot(),slots:Object,setup(t,e){let{slots:i,attrs:l}=e;const{itemLayout:o,grid:c}=xt(rt,{grid:G(),itemLayout:G()}),{prefixCls:p}=Y("list",t),a=()=>{var d;const m=((d=i.default)===null||d===void 0?void 0:d.call(i))||[];let u;return m.forEach(s=>{pt(s)&&!vt(s)&&(u=!0)}),u&&m.length>1},S=()=>{var d,m;const u=(d=t.extra)!==null&&d!==void 0?d:(m=i.extra)===null||m===void 0?void 0:m.call(i);return o.value==="vertical"?!!u:!a()};return()=>{var d,m,u,s,f;const{class:v}=l,b=At(l,["class"]),h=p.value,L=(d=t.extra)!==null&&d!==void 0?d:(m=i.extra)===null||m===void 0?void 0:m.call(i),A=(u=i.default)===null||u===void 0?void 0:u.call(i);let $=(s=t.actions)!==null&&s!==void 0?s:lt((f=i.actions)===null||f===void 0?void 0:f.call(i));$=$&&!Array.isArray($)?[$]:$;const P=$&&$.length>0&&r("ul",{class:`${h}-item-action`,key:"actions"},[$.map((C,T)=>r("li",{key:`${h}-item-action-${T}`},[C,T!==$.length-1&&r("em",{class:`${h}-item-action-split`},null)]))]),O=c.value?"div":"li",H=r(O,E(E({},b),{},{class:ot(`${h}-item`,{[`${h}-item-no-flex`]:!S()},v)}),{default:()=>[o.value==="vertical"&&L?[r("div",{class:`${h}-item-main`,key:"content"},[A,P]),r("div",{class:`${h}-item-extra`,key:"extra"},[L])]:[A,P,wt(L,{key:"extra"})]]});return c.value?r(Pt,{flex:1,style:t.colStyle},{default:()=>[H]}):H}}}),jt=t=>{const{listBorderedCls:e,componentCls:i,paddingLG:l,margin:o,padding:c,listItemPaddingSM:p,marginLG:a,borderRadiusLG:S}=t;return{[`${e}`]:{border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:S,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:l},[`${i}-pagination`]:{margin:`${o}px ${a}px`}},[`${e}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:p}},[`${e}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:`${c}px ${l}px`}}}},Wt=t=>{const{componentCls:e,screenSM:i,screenMD:l,marginLG:o,marginSM:c,margin:p}=t;return{[`@media screen and (max-width:${l})`]:{[`${e}`]:{[`${e}-item`]:{[`${e}-item-action`]:{marginInlineStart:o}}},[`${e}-vertical`]:{[`${e}-item`]:{[`${e}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${i})`]:{[`${e}`]:{[`${e}-item`]:{flexWrap:"wrap",[`${e}-action`]:{marginInlineStart:c}}},[`${e}-vertical`]:{[`${e}-item`]:{flexWrap:"wrap-reverse",[`${e}-item-main`]:{minWidth:t.contentWidth},[`${e}-item-extra`]:{margin:`auto auto ${p}px`}}}}}},Gt=t=>{const{componentCls:e,antCls:i,controlHeight:l,minHeight:o,paddingSM:c,marginLG:p,padding:a,listItemPadding:S,colorPrimary:d,listItemPaddingSM:m,listItemPaddingLG:u,paddingXS:s,margin:f,colorText:v,colorTextDescription:b,motionDurationSlow:h,lineWidth:L}=t;return{[`${e}`]:M(M({},ht(t)),{position:"relative","*":{outline:"none"},[`${e}-header, ${e}-footer`]:{background:"transparent",paddingBlock:c},[`${e}-pagination`]:{marginBlockStart:p,textAlign:"end",[`${i}-pagination-options`]:{textAlign:"start"}},[`${e}-spin`]:{minHeight:o,textAlign:"center"},[`${e}-items`]:{margin:0,padding:0,listStyle:"none"},[`${e}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:S,color:v,[`${e}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${e}-item-meta-avatar`]:{marginInlineEnd:a},[`${e}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${e}-item-meta-title`]:{marginBottom:t.marginXXS,color:v,fontSize:t.fontSize,lineHeight:t.lineHeight,"> a":{color:v,transition:`all ${h}`,"&:hover":{color:d}}},[`${e}-item-meta-description`]:{color:b,fontSize:t.fontSize,lineHeight:t.lineHeight}},[`${e}-item-action`]:{flex:"0 0 auto",marginInlineStart:t.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${s}px`,color:b,fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${e}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:L,height:Math.ceil(t.fontSize*t.lineHeight)-t.marginXXS*2,transform:"translateY(-50%)",backgroundColor:t.colorSplit}}},[`${e}-empty`]:{padding:`${a}px 0`,color:b,fontSize:t.fontSizeSM,textAlign:"center"},[`${e}-empty-text`]:{padding:a,color:t.colorTextDisabled,fontSize:t.fontSize,textAlign:"center"},[`${e}-item-no-flex`]:{display:"block"}}),[`${e}-grid ${i}-col > ${e}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${e}-vertical ${e}-item`]:{alignItems:"initial",[`${e}-item-main`]:{display:"block",flex:1},[`${e}-item-extra`]:{marginInlineStart:p},[`${e}-item-meta`]:{marginBlockEnd:a,[`${e}-item-meta-title`]:{marginBlockEnd:c,color:v,fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}},[`${e}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${e}-split ${e}-item`]:{borderBlockEnd:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${e}-split ${e}-header`]:{borderBlockEnd:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`},[`${e}-split${e}-empty ${e}-footer`]:{borderTop:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`},[`${e}-loading ${e}-spin-nested-loading`]:{minHeight:l},[`${e}-split${e}-something-after-last-item ${i}-spin-container > ${e}-items > ${e}-item:last-child`]:{borderBlockEnd:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`},[`${e}-lg ${e}-item`]:{padding:u},[`${e}-sm ${e}-item`]:{padding:m},[`${e}:not(${e}-vertical)`]:{[`${e}-item-no-flex`]:{[`${e}-item-action`]:{float:"right"}}}}},Dt=$t("List",t=>{const e=ft(t,{listBorderedCls:`${t.componentCls}-bordered`,minHeight:t.controlHeightLG,listItemPadding:`${t.paddingContentVertical}px ${t.paddingContentHorizontalLG}px`,listItemPaddingSM:`${t.paddingContentVerticalSM}px ${t.paddingContentHorizontal}px`,listItemPaddingLG:`${t.paddingContentVerticalLG}px ${t.paddingContentHorizontalLG}px`});return[Gt(e),jt(e),Wt(e)]},{contentWidth:220}),Kt=()=>({bordered:it(),dataSource:yt(),extra:W(),grid:et(),itemLayout:String,loading:q([Boolean,Object]),loadMore:W(),pagination:q([Boolean,Object]),prefixCls:String,rowKey:q([String,Number,Function]),renderItem:St(),size:String,split:it(),header:W(),footer:W(),locale:et()}),z=J({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:Ht,props:Et(Kt(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(t,e){let{slots:i,attrs:l}=e;var o,c;bt(rt,{grid:nt(t,"grid"),itemLayout:nt(t,"itemLayout")});const p={current:1,total:0},{prefixCls:a,direction:S,renderEmpty:d}=Y("list",t),[m,u]=Dt(a),s=I(()=>t.pagination&&typeof t.pagination=="object"?t.pagination:{}),f=G((o=s.value.defaultCurrent)!==null&&o!==void 0?o:1),v=G((c=s.value.defaultPageSize)!==null&&c!==void 0?c:10);Ct(s,()=>{"current"in s.value&&(f.value=s.value.current),"pageSize"in s.value&&(v.value=s.value.pageSize)});const b=[],h=n=>(g,y)=>{f.value=g,v.value=y,s.value[n]&&s.value[n](g,y)},L=h("onChange"),A=h("onShowSizeChange"),$=I(()=>typeof t.loading=="boolean"?{spinning:t.loading}:t.loading),P=I(()=>$.value&&$.value.spinning),O=I(()=>{let n="";switch(t.size){case"large":n="lg";break;case"small":n="sm";break}return n}),H=I(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:t.itemLayout==="vertical",[`${a.value}-${O.value}`]:O.value,[`${a.value}-split`]:t.split,[`${a.value}-bordered`]:t.bordered,[`${a.value}-loading`]:P.value,[`${a.value}-grid`]:!!t.grid,[`${a.value}-rtl`]:S.value==="rtl"})),C=I(()=>{const n=M(M(M({},p),{total:t.dataSource.length,current:f.value,pageSize:v.value}),t.pagination||{}),g=Math.ceil(n.total/n.pageSize);return n.current>g&&(n.current=g),n}),T=I(()=>{let n=[...t.dataSource];return t.pagination&&t.dataSource.length>(C.value.current-1)*C.value.pageSize&&(n=[...t.dataSource].splice((C.value.current-1)*C.value.pageSize,C.value.pageSize)),n}),st=Lt(),D=_t(()=>{for(let n=0;n<at.length;n+=1){const g=at[n];if(st.value[g])return g}}),dt=I(()=>{if(!t.grid)return;const n=D.value&&t.grid[D.value]?t.grid[D.value]:t.grid.column;if(n)return{width:`${100/n}%`,maxWidth:`${100/n}%`}}),ct=(n,g)=>{var y;const w=(y=t.renderItem)!==null&&y!==void 0?y:i.renderItem;if(!w)return null;let x;const _=typeof t.rowKey;return _==="function"?x=t.rowKey(n):_==="string"||_==="number"?x=n[t.rowKey]:x=n.key,x||(x=`list-item-${g}`),b[g]=x,w({item:n,index:g})};return()=>{var n,g,y,w,x,_,K,N;const Q=(n=t.loadMore)!==null&&n!==void 0?n:(g=i.loadMore)===null||g===void 0?void 0:g.call(i),X=(y=t.footer)!==null&&y!==void 0?y:(w=i.footer)===null||w===void 0?void 0:w.call(i),U=(x=t.header)!==null&&x!==void 0?x:(_=i.header)===null||_===void 0?void 0:_.call(i),Z=lt((K=i.default)===null||K===void 0?void 0:K.call(i)),mt=!!(Q||t.pagination||X),ut=ot(M(M({},H.value),{[`${a.value}-something-after-last-item`]:mt}),l.class,u.value),k=t.pagination?r("div",{class:`${a.value}-pagination`},[r(zt,E(E({},C.value),{},{onChange:L,onShowSizeChange:A}),null)]):null;let R=P.value&&r("div",{style:{minHeight:"53px"}},null);if(T.value.length>0){b.length=0;const tt=T.value.map((V,F)=>ct(V,F)),gt=tt.map((V,F)=>r("div",{key:b[F],style:dt.value},[V]));R=t.grid?r(Mt,{gutter:t.grid.gutter},{default:()=>[gt]}):r("ul",{class:`${a.value}-items`},[tt])}else!Z.length&&!P.value&&(R=r("div",{class:`${a.value}-empty-text`},[((N=t.locale)===null||N===void 0?void 0:N.emptyText)||d("List")]));const j=C.value.position||"bottom";return m(r("div",E(E({},l),{},{class:ut}),[(j==="top"||j==="both")&&k,U&&r("div",{class:`${a.value}-header`},[U]),r(It,$.value,{default:()=>[R,Z]}),X&&r("div",{class:`${a.value}-footer`},[X]),Q||(j==="bottom"||j==="both")&&k]))}}});z.install=function(t){return t.component(z.name,z),t.component(z.Item.name,z.Item),t.component(z.Item.Meta.name,z.Item.Meta),t};export{Ht as ListItem,Bt as ListItemMeta,z as default,Kt as listProps};
@@ -0,0 +1 @@
1
+ import{A as o}from"./Row-DzpHyTuz.js";import{a0 as t}from"./index-COg__P6M.js";import"./vendor-Bn1JzzAn.js";import"./responsiveObserve-BRy_wJog.js";import"./useFlexGapSupport-nPkoZkT6.js";import"./styleChecker-DYgBJGDh.js";import"./index-CScG8TAY.js";import"./icons-DG5UD-6K.js";const l=t(o);export{l as default};
@@ -1,3 +1,3 @@
1
- import{af as w,a6 as F,v as G,ag as E,H as K,a5 as q,h as P,f as $,l as V,m as Y,r as Q,K as U,q as J,a0 as Z}from"./index-Dmt1HDWZ.js";import{d as D,b as u,c as g,F as B,q as ee,r as H}from"./vendor-Bn1JzzAn.js";import{i as L}from"./initDefaultProps-C_pMmi75.js";import{bg as _,C as te,b as re,a as oe,ak as se}from"./icons-DG5UD-6K.js";import{d as I}from"./devWarning-Cwuuqc_f.js";import{u as ne}from"./useRefs-BrCfMLMc.js";import{T as ie}from"./index-BcDeMCUK.js";import"./Trigger-BMNHmxwH.js";import"./raf-Deuc0E8-.js";import"./motion-BvKgS96o.js";import"./vnode-C8ZuTk8W.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./placementArrow-Bm--qom1.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-DLP70JGe.js";import"./zoom-CjbgJYXQ.js";const le=["normal","exception","active","success"],j=()=>({prefixCls:String,type:w(),percent:Number,format:q(),status:w(),showInfo:K(),strokeWidth:Number,strokeLinecap:w(),strokeColor:E(),trailColor:String,width:Number,success:G(),gapDegree:Number,gapPosition:w(),size:F([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:w()});function x(e){return!e||e<0?0:e>100?100:e}function W(e){let{success:t,successPercent:o}=e,r=o;return t&&"progress"in t&&(I(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function ae(e){let{percent:t,success:o,successPercent:r}=e;const s=x(W({success:o,successPercent:r}));return[s,x(x(t)-s)]}function ce(e){let{success:t={},strokeColor:o}=e;const{strokeColor:r}=t;return[r||_.green,o||null]}const A=(e,t,o)=>{var r,s,f,i;let n=-1,l=-1;if(t==="step"){const v=o.steps,d=o.strokeWidth;typeof e=="string"||typeof e>"u"?(n=e==="small"?2:14,l=d??8):typeof e=="number"?[n,l]=[e,e]:[n=14,l=8]=e,n*=v}else if(t==="line"){const v=o?.strokeWidth;typeof e=="string"||typeof e>"u"?l=v||(e==="small"?6:8):typeof e=="number"?[n,l]=[e,e]:[n=-1,l=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[n,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[n,l]=[e,e]:(I(!1,"Progress",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'),n=(s=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&s!==void 0?s:120,l=(i=(f=e[0])!==null&&f!==void 0?f:e[1])!==null&&i!==void 0?i:120));return{width:n,height:l}};var ue=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};const de=()=>P(P({},j()),{strokeColor:E(),direction:w()}),ge=e=>{let t=[];return Object.keys(e).forEach(o=>{const r=parseFloat(o.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[o]})}),t=t.sort((o,r)=>o.key-r.key),t.map(o=>{let{key:r,value:s}=o;return`${s} ${r}%`}).join(", ")},pe=(e,t)=>{const{from:o=_.blue,to:r=_.blue,direction:s=t==="rtl"?"to left":"to right"}=e,f=ue(e,["from","to","direction"]);if(Object.keys(f).length!==0){const i=ge(f);return{backgroundImage:`linear-gradient(${s}, ${i})`}}return{backgroundImage:`linear-gradient(${s}, ${o}, ${r})`}},fe=D({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:de(),setup(e,t){let{slots:o,attrs:r}=t;const s=u(()=>{const{strokeColor:a,direction:p}=e;return a&&typeof a!="string"?pe(a,p):{backgroundColor:a}}),f=u(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=u(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),n=u(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),l=u(()=>A(n.value,"line",{strokeWidth:e.strokeWidth}));I("strokeWidth"in e,"Progress","`strokeWidth` is deprecated. Please use `size` instead.");const v=u(()=>{const{percent:a}=e;return P({width:`${x(a)}%`,height:`${l.value.height}px`,borderRadius:f.value},s.value)}),d=u(()=>W(e)),C=u(()=>{const{success:a}=e;return{width:`${x(d.value)}%`,height:`${l.value.height}px`,borderRadius:f.value,backgroundColor:a?.strokeColor}}),m={width:l.value.width<0?"100%":l.value.width,height:`${l.value.height}px`};return()=>{var a;return g(B,null,[g("div",$($({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,m]}),[g("div",{class:`${e.prefixCls}-inner`,style:i.value},[g("div",{class:`${e.prefixCls}-bg`,style:v.value},null),d.value!==void 0?g("div",{class:`${e.prefixCls}-success-bg`,style:C.value},null):null])]),(a=o.default)===null||a===void 0?void 0:a.call(o)])}}}),me={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},ve=e=>{const t=H(null);return ee(()=>{const o=Date.now();let r=!1;e.value.forEach(s=>{const f=s?.$el||s;if(!f)return;r=!0;const i=f.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&o-t.value<100&&(i.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},he={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var ye=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};let R=0;function T(e){return+e.replace("%","")}function M(e){return Array.isArray(e)?e:[e]}function X(e,t,o,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,f=arguments.length>5?arguments[5]:void 0;const i=50-r/2;let n=0,l=-i,v=0,d=-2*i;switch(f){case"left":n=-i,l=0,v=2*i,d=0;break;case"right":n=i,l=0,v=-2*i,d=0;break;case"bottom":l=i,d=2*i;break}const C=`M 50,50 m ${n},${l}
1
+ import{af as w,a6 as F,v as G,ag as E,H as K,a5 as q,h as P,f as $,l as V,m as Y,r as Q,K as U,q as J,a0 as Z}from"./index-COg__P6M.js";import{d as D,b as u,c as g,F as B,q as ee,r as H}from"./vendor-Bn1JzzAn.js";import{i as L}from"./initDefaultProps-B_Uk-wzg.js";import{bg as _,C as te,b as re,a as oe,ak as se}from"./icons-DG5UD-6K.js";import{d as I}from"./devWarning-BRylvxzY.js";import{u as ne}from"./useRefs-BrCfMLMc.js";import{T as ie}from"./index-DjbMaBLf.js";import"./Trigger-ClBDWdLo.js";import"./raf-Deuc0E8-.js";import"./motion-ez7H8y8b.js";import"./vnode-D-hXAnHb.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./placementArrow-BWL3-3xo.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-AMRhrRzS.js";import"./zoom-DW7seTGG.js";const le=["normal","exception","active","success"],j=()=>({prefixCls:String,type:w(),percent:Number,format:q(),status:w(),showInfo:K(),strokeWidth:Number,strokeLinecap:w(),strokeColor:E(),trailColor:String,width:Number,success:G(),gapDegree:Number,gapPosition:w(),size:F([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:w()});function x(e){return!e||e<0?0:e>100?100:e}function W(e){let{success:t,successPercent:o}=e,r=o;return t&&"progress"in t&&(I(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function ae(e){let{percent:t,success:o,successPercent:r}=e;const s=x(W({success:o,successPercent:r}));return[s,x(x(t)-s)]}function ce(e){let{success:t={},strokeColor:o}=e;const{strokeColor:r}=t;return[r||_.green,o||null]}const A=(e,t,o)=>{var r,s,f,i;let n=-1,l=-1;if(t==="step"){const v=o.steps,d=o.strokeWidth;typeof e=="string"||typeof e>"u"?(n=e==="small"?2:14,l=d??8):typeof e=="number"?[n,l]=[e,e]:[n=14,l=8]=e,n*=v}else if(t==="line"){const v=o?.strokeWidth;typeof e=="string"||typeof e>"u"?l=v||(e==="small"?6:8):typeof e=="number"?[n,l]=[e,e]:[n=-1,l=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[n,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[n,l]=[e,e]:(I(!1,"Progress",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'),n=(s=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&s!==void 0?s:120,l=(i=(f=e[0])!==null&&f!==void 0?f:e[1])!==null&&i!==void 0?i:120));return{width:n,height:l}};var ue=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};const de=()=>P(P({},j()),{strokeColor:E(),direction:w()}),ge=e=>{let t=[];return Object.keys(e).forEach(o=>{const r=parseFloat(o.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[o]})}),t=t.sort((o,r)=>o.key-r.key),t.map(o=>{let{key:r,value:s}=o;return`${s} ${r}%`}).join(", ")},pe=(e,t)=>{const{from:o=_.blue,to:r=_.blue,direction:s=t==="rtl"?"to left":"to right"}=e,f=ue(e,["from","to","direction"]);if(Object.keys(f).length!==0){const i=ge(f);return{backgroundImage:`linear-gradient(${s}, ${i})`}}return{backgroundImage:`linear-gradient(${s}, ${o}, ${r})`}},fe=D({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:de(),setup(e,t){let{slots:o,attrs:r}=t;const s=u(()=>{const{strokeColor:a,direction:p}=e;return a&&typeof a!="string"?pe(a,p):{backgroundColor:a}}),f=u(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=u(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),n=u(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),l=u(()=>A(n.value,"line",{strokeWidth:e.strokeWidth}));I("strokeWidth"in e,"Progress","`strokeWidth` is deprecated. Please use `size` instead.");const v=u(()=>{const{percent:a}=e;return P({width:`${x(a)}%`,height:`${l.value.height}px`,borderRadius:f.value},s.value)}),d=u(()=>W(e)),C=u(()=>{const{success:a}=e;return{width:`${x(d.value)}%`,height:`${l.value.height}px`,borderRadius:f.value,backgroundColor:a?.strokeColor}}),m={width:l.value.width<0?"100%":l.value.width,height:`${l.value.height}px`};return()=>{var a;return g(B,null,[g("div",$($({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,m]}),[g("div",{class:`${e.prefixCls}-inner`,style:i.value},[g("div",{class:`${e.prefixCls}-bg`,style:v.value},null),d.value!==void 0?g("div",{class:`${e.prefixCls}-success-bg`,style:C.value},null):null])]),(a=o.default)===null||a===void 0?void 0:a.call(o)])}}}),me={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},ve=e=>{const t=H(null);return ee(()=>{const o=Date.now();let r=!1;e.value.forEach(s=>{const f=s?.$el||s;if(!f)return;r=!0;const i=f.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&o-t.value<100&&(i.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},he={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var ye=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};let R=0;function T(e){return+e.replace("%","")}function M(e){return Array.isArray(e)?e:[e]}function X(e,t,o,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,f=arguments.length>5?arguments[5]:void 0;const i=50-r/2;let n=0,l=-i,v=0,d=-2*i;switch(f){case"left":n=-i,l=0,v=2*i,d=0;break;case"right":n=i,l=0,v=-2*i,d=0;break;case"bottom":l=i,d=2*i;break}const C=`M 50,50 m ${n},${l}
2
2
  a ${i},${i} 0 1 1 ${v},${-d}
3
3
  a ${i},${i} 0 1 1 ${-v},${d}`,m=Math.PI*2*i,a={stroke:o,strokeDasharray:`${t/100*(m-s)}px ${m}px`,strokeDashoffset:`-${s/2+e/100*(m-s)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:C,pathStyle:a}}const Ce=D({compatConfig:{MODE:3},name:"VCCircle",props:L(he,me),setup(e){R+=1;const t=H(R),o=u(()=>M(e.percent)),r=u(()=>M(e.strokeColor)),[s,f]=ne();ve(f);const i=()=>{const{prefixCls:n,strokeWidth:l,strokeLinecap:v,gapDegree:d,gapPosition:C}=e;let m=0;return o.value.map((a,p)=>{const c=r.value[p]||r.value[r.value.length-1],b=Object.prototype.toString.call(c)==="[object Object]"?`url(#${n}-gradient-${t.value})`:"",{pathString:y,pathStyle:S}=X(m,a,c,l,d,C);m+=a;const k={key:p,d:y,stroke:b,"stroke-linecap":v,"stroke-width":l,opacity:a===0?0:1,"fill-opacity":"0",class:`${n}-circle-path`,style:S};return g("path",$({ref:s(p)},k),null)})};return()=>{const{prefixCls:n,strokeWidth:l,trailWidth:v,gapDegree:d,gapPosition:C,trailColor:m,strokeLinecap:a,strokeColor:p}=e,c=ye(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:b,pathStyle:y}=X(0,100,m,l,d,C);delete c.percent;const S=r.value.find(h=>Object.prototype.toString.call(h)==="[object Object]"),k={d:b,stroke:m,"stroke-linecap":a,"stroke-width":v||l,"fill-opacity":"0",class:`${n}-circle-trail`,style:y};return g("svg",$({class:`${n}-circle`,viewBox:"0 0 100 100"},c),[S&&g("defs",null,[g("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(S).sort((h,O)=>T(h)-T(O)).map((h,O)=>g("stop",{key:O,offset:h,"stop-color":S[h]},null))])]),g("path",k,null),i().reverse()])}}}),be=()=>P(P({},j()),{strokeColor:E()}),$e=3,Se=e=>$e/e*100,ke=D({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:L(be(),{trailColor:null}),setup(e,t){let{slots:o,attrs:r}=t;const s=u(()=>{var c;return(c=e.width)!==null&&c!==void 0?c:120}),f=u(()=>{var c;return(c=e.size)!==null&&c!==void 0?c:[s.value,s.value]}),i=u(()=>A(f.value,"circle")),n=u(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),l=u(()=>({width:`${i.value.width}px`,height:`${i.value.height}px`,fontSize:`${i.value.width*.15+6}px`})),v=u(()=>{var c;return(c=e.strokeWidth)!==null&&c!==void 0?c:Math.max(Se(i.value.width),6)}),d=u(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),C=u(()=>ae(e)),m=u(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),a=u(()=>ce({success:e.success,strokeColor:e.strokeColor})),p=u(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:m.value}));return()=>{var c;const b=g(Ce,{percent:C.value,strokeWidth:v.value,trailWidth:v.value,strokeColor:a.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:n.value,gapPosition:d.value},null);return g("div",$($({},r),{},{class:[p.value,r.class],style:[r.style,l.value]}),[i.value.width<=20?g(ie,null,{default:()=>[g("span",null,[b])],title:o.default}):g(B,null,[b,(c=o.default)===null||c===void 0?void 0:c.call(o)])])}}}),Pe=()=>P(P({},j()),{steps:Number,strokeColor:F(),trailColor:String}),xe=D({compatConfig:{MODE:3},name:"Steps",props:Pe(),setup(e,t){let{slots:o}=t;const r=u(()=>Math.round(e.steps*((e.percent||0)/100))),s=u(()=>{var n;return(n=e.size)!==null&&n!==void 0?n:[e.size==="small"?2:14,e.strokeWidth||8]}),f=u(()=>A(s.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),i=u(()=>{const{steps:n,strokeColor:l,trailColor:v,prefixCls:d}=e,C=[];for(let m=0;m<n;m+=1){const a=Array.isArray(l)?l[m]:l,p={[`${d}-steps-item`]:!0,[`${d}-steps-item-active`]:m<=r.value-1};C.push(g("div",{key:m,class:p,style:{backgroundColor:m<=r.value-1?a:v,width:`${f.value.width/n}px`,height:`${f.value.height}px`}},null))}return C});return()=>{var n;return g("div",{class:`${e.prefixCls}-steps-outer`},[i.value,(n=o.default)===null||n===void 0?void 0:n.call(o)])}}}),we=new U("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),Oe=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:P(P({},Q(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:we,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Ie=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},De=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},We=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},je=V("Progress",e=>{const t=e.marginXXS/2,o=Y(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Oe(o),Ie(o),De(o),We(o)]});var Ae=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};const _e=D({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:L(j(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:s,direction:f}=J("progress",e),[i,n]=je(s);I("successPercent"in e,"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),I("width"in e,"Progress","`width` is deprecated. Please use `size` instead.");const l=u(()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),v=u(()=>{const{percent:p=0}=e,c=W(e);return parseInt(c!==void 0?c.toString():p.toString(),10)}),d=u(()=>{const{status:p}=e;return!le.includes(p)&&v.value>=100?"success":p||"normal"}),C=u(()=>{const{type:p,showInfo:c,size:b}=e,y=s.value;return{[y]:!0,[`${y}-inline-circle`]:p==="circle"&&A(b,"circle").width<=20,[`${y}-${p==="dashboard"&&"circle"||p}`]:!0,[`${y}-status-${d.value}`]:!0,[`${y}-show-info`]:c,[`${y}-${b}`]:b,[`${y}-rtl`]:f.value==="rtl",[n.value]:!0}}),m=u(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),a=()=>{const{showInfo:p,format:c,type:b,percent:y,title:S}=e,k=W(e);if(!p)return null;let h;const O=c||o?.format||(z=>`${z}%`),N=b==="line";return c||o?.format||d.value!=="exception"&&d.value!=="success"?h=O(x(y),x(k)):d.value==="exception"?h=N?g(te,null,null):g(re,null,null):d.value==="success"&&(h=N?g(oe,null,null):g(se,null,null)),g("span",{class:`${s.value}-text`,title:S===void 0&&typeof h=="string"?h:void 0},[h])};return()=>{const{type:p,steps:c,title:b}=e,{class:y}=r,S=Ae(r,["class"]),k=a();let h;return p==="line"?h=c?g(xe,$($({},e),{},{strokeColor:m.value,prefixCls:s.value,steps:c}),{default:()=>[k]}):g(fe,$($({},e),{},{strokeColor:l.value,prefixCls:s.value,direction:f.value}),{default:()=>[k]}):(p==="circle"||p==="dashboard")&&(h=g(ke,$($({},e),{},{prefixCls:s.value,strokeColor:l.value,progressStatus:d.value}),{default:()=>[k]})),i(g("div",$($({role:"progressbar"},S),{},{class:[C.value,y],title:b}),[h]))}}}),Je=Z(_e);export{Je as default};
@@ -1,2 +1,2 @@
1
- import{l as oo,m as eo,h as I,r as H,K as to,at as K,M as _,q as M,i as V,f as D,P as L,a5 as E,H as z,af as j,a7 as ro}from"./index-Dmt1HDWZ.js";import{p as U,i as N,d as W,b as O,c as T,r as F,w as no,n as ao}from"./vendor-Bn1JzzAn.js";import{V as io}from"./Checkbox-BxL6xm7Z.js";import{u as X,F as lo}from"./FormItemContext-gtrW-DdF.js";import{o as so}from"./omit-DxOZvcGQ.js";import"./icons-DG5UD-6K.js";import"./initDefaultProps-C_pMmi75.js";import"./devWarning-Cwuuqc_f.js";import"./createContext-CfEdl1in.js";const q=Symbol("radioGroupContextKey"),co=o=>{U(q,o)},uo=()=>N(q,void 0),J=Symbol("radioOptionTypeContextKey"),po=o=>{U(J,o)},bo=()=>N(J,void 0),go=new to("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ho=o=>{const{componentCls:r,antCls:n}=o,t=`${r}-group`;return{[t]:I(I({},H(o)),{display:"inline-block",fontSize:0,[`&${t}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},fo=o=>{const{componentCls:r,radioWrapperMarginRight:n,radioCheckedColor:t,radioSize:e,motionDurationSlow:d,motionDurationMid:s,motionEaseInOut:w,motionEaseInOutCirc:f,radioButtonBg:b,colorBorder:B,lineWidth:g,radioDotSize:C,colorBgContainerDisabled:x,colorTextDisabled:c,paddingXS:h,radioDotDisabledColor:a,lineType:m,radioDotDisabledSize:u,wireframe:p,colorWhite:y}=o,i=`${r}-inner`;return{[`${r}-wrapper`]:I(I({},H(o)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${r}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:o.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${r}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${g}px ${m} ${t}`,borderRadius:"50%",visibility:"hidden",animationName:go,animationDuration:d,animationTimingFunction:w,animationFillMode:"both",content:'""'},[r]:I(I({},H(o)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${r}-wrapper:hover &,
1
+ import{l as oo,m as eo,h as I,r as H,K as to,at as K,M as _,q as M,i as V,f as D,P as L,a5 as E,H as z,af as j,a7 as ro}from"./index-COg__P6M.js";import{p as U,i as N,d as W,b as O,c as T,r as F,w as no,n as ao}from"./vendor-Bn1JzzAn.js";import{V as io}from"./Checkbox-C6pW60Br.js";import{u as X,F as lo}from"./FormItemContext-DdPW81BY.js";import{o as so}from"./omit-C0uA2ytw.js";import"./icons-DG5UD-6K.js";import"./initDefaultProps-B_Uk-wzg.js";import"./devWarning-BRylvxzY.js";import"./createContext-CoUkR4LQ.js";const q=Symbol("radioGroupContextKey"),co=o=>{U(q,o)},uo=()=>N(q,void 0),J=Symbol("radioOptionTypeContextKey"),po=o=>{U(J,o)},bo=()=>N(J,void 0),go=new to("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ho=o=>{const{componentCls:r,antCls:n}=o,t=`${r}-group`;return{[t]:I(I({},H(o)),{display:"inline-block",fontSize:0,[`&${t}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},fo=o=>{const{componentCls:r,radioWrapperMarginRight:n,radioCheckedColor:t,radioSize:e,motionDurationSlow:d,motionDurationMid:s,motionEaseInOut:w,motionEaseInOutCirc:f,radioButtonBg:b,colorBorder:B,lineWidth:g,radioDotSize:C,colorBgContainerDisabled:x,colorTextDisabled:c,paddingXS:h,radioDotDisabledColor:a,lineType:m,radioDotDisabledSize:u,wireframe:p,colorWhite:y}=o,i=`${r}-inner`;return{[`${r}-wrapper`]:I(I({},H(o)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${r}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:o.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${r}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${g}px ${m} ${t}`,borderRadius:"50%",visibility:"hidden",animationName:go,animationDuration:d,animationTimingFunction:w,animationFillMode:"both",content:'""'},[r]:I(I({},H(o)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${r}-wrapper:hover &,
2
2
  &:hover ${i}`]:{borderColor:t},[`${r}-input:focus-visible + ${i}`]:I({},K(o)),[`${r}:hover::after, ${r}-wrapper:hover &::after`]:{visibility:"visible"},[`${r}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:e,height:e,marginBlockStart:e/-2,marginInlineStart:e/-2,backgroundColor:p?t:y,borderBlockStart:0,borderInlineStart:0,borderRadius:e,transform:"scale(0)",opacity:0,transition:`all ${d} ${f}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:e,height:e,backgroundColor:b,borderColor:B,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${s}`},[`${r}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${r}-checked`]:{[i]:{borderColor:t,backgroundColor:p?b:t,"&::after":{transform:`scale(${C/e})`,opacity:1,transition:`all ${d} ${f}`}}},[`${r}-disabled`]:{cursor:"not-allowed",[i]:{backgroundColor:x,borderColor:B,cursor:"not-allowed","&::after":{backgroundColor:a}},[`${r}-input`]:{cursor:"not-allowed"},[`${r}-disabled + span`]:{color:c,cursor:"not-allowed"},[`&${r}-checked`]:{[i]:{"&::after":{transform:`scale(${u/e})`}}}},[`span${r} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},Co=o=>{const{radioButtonColor:r,controlHeight:n,componentCls:t,lineWidth:e,lineType:d,colorBorder:s,motionDurationSlow:w,motionDurationMid:f,radioButtonPaddingHorizontal:b,fontSize:B,radioButtonBg:g,fontSizeLG:C,controlHeightLG:x,controlHeightSM:c,paddingXS:h,borderRadius:a,borderRadiusSM:m,borderRadiusLG:u,radioCheckedColor:p,radioButtonCheckedBg:y,radioButtonHoverColor:i,radioButtonActiveColor:v,radioSolidCheckedColor:R,colorTextDisabled:l,colorBgContainerDisabled:S,radioDisabledButtonCheckedColor:P,radioDisabledButtonCheckedBg:G}=o;return{[`${t}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:b,paddingBlock:0,color:r,fontSize:B,lineHeight:`${n-e*2}px`,background:g,border:`${e}px ${d} ${s}`,borderBlockStartWidth:e+.02,borderInlineStartWidth:0,borderInlineEndWidth:e,cursor:"pointer",transition:[`color ${f}`,`background ${f}`,`border-color ${f}`,`box-shadow ${f}`].join(","),a:{color:r},[`> ${t}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-e,insetInlineStart:-e,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:e,paddingInline:0,backgroundColor:s,transition:`background-color ${w}`,content:'""'}},"&:first-child":{borderInlineStart:`${e}px ${d} ${s}`,borderStartStartRadius:a,borderEndStartRadius:a},"&:last-child":{borderStartEndRadius:a,borderEndEndRadius:a},"&:first-child:last-child":{borderRadius:a},[`${t}-group-large &`]:{height:x,fontSize:C,lineHeight:`${x-e*2}px`,"&:first-child":{borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u}},[`${t}-group-small &`]:{height:c,paddingInline:h-e,paddingBlock:0,lineHeight:`${c-e*2}px`,"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:p},"&:has(:focus-visible)":I({},K(o)),[`${t}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${t}-button-wrapper-disabled)`]:{zIndex:1,color:p,background:y,borderColor:p,"&::before":{backgroundColor:p},"&:first-child":{borderColor:p},"&:hover":{color:i,borderColor:i,"&::before":{backgroundColor:i}},"&:active":{color:v,borderColor:v,"&::before":{backgroundColor:v}}},[`${t}-group-solid &-checked:not(${t}-button-wrapper-disabled)`]:{color:R,background:p,borderColor:p,"&:hover":{color:R,background:i,borderColor:i},"&:active":{color:R,background:v,borderColor:v}},"&-disabled":{color:l,backgroundColor:S,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:l,backgroundColor:S,borderColor:s}},[`&-disabled${t}-button-wrapper-checked`]:{color:P,backgroundColor:G,borderColor:s,boxShadow:"none"}}}},Q=oo("Radio",o=>{const{padding:r,lineWidth:n,controlItemBgActiveDisabled:t,colorTextDisabled:e,colorBgContainer:d,fontSizeLG:s,controlOutline:w,colorPrimaryHover:f,colorPrimaryActive:b,colorText:B,colorPrimary:g,marginXS:C,controlOutlineWidth:x,colorTextLightSolid:c,wireframe:h}=o,a=`0 0 0 ${x}px ${w}`,m=a,u=s,p=4,y=u-p*2,i=h?y:u-(p+n)*2,v=g,R=B,l=f,S=b,P=r-n,$=eo(o,{radioFocusShadow:a,radioButtonFocusShadow:m,radioSize:u,radioDotSize:i,radioDotDisabledSize:y,radioCheckedColor:v,radioDotDisabledColor:e,radioSolidCheckedColor:c,radioButtonBg:d,radioButtonCheckedBg:d,radioButtonColor:R,radioButtonHoverColor:l,radioButtonActiveColor:S,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:t,radioDisabledButtonCheckedColor:e,radioWrapperMarginRight:C});return[ho($),fo($),Co($)]});var vo=function(o,r){var n={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(n[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,t=Object.getOwnPropertySymbols(o);e<t.length;e++)r.indexOf(t[e])<0&&Object.prototype.propertyIsEnumerable.call(o,t[e])&&(n[t[e]]=o[t[e]]);return n};const Y=()=>({prefixCls:String,checked:z(),disabled:z(),isGroup:z(),value:L.any,name:String,id:String,autofocus:z(),onChange:E(),onFocus:E(),onBlur:E(),onClick:E(),"onUpdate:checked":E(),"onUpdate:value":E()}),k=W({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:Y(),setup(o,r){let{emit:n,expose:t,slots:e,attrs:d}=r;const s=X(),w=lo.useInject(),f=bo(),b=uo(),B=_(),g=O(()=>{var l;return(l=h.value)!==null&&l!==void 0?l:B.value}),C=F(),{prefixCls:x,direction:c,disabled:h}=M("radio",o),a=O(()=>b?.optionType.value==="button"||f==="button"?`${x.value}-button`:x.value),m=_(),[u,p]=Q(x);t({focus:()=>{C.value.focus()},blur:()=>{C.value.blur()}});const v=l=>{const S=l.target.checked;n("update:checked",S),n("update:value",S),n("change",l),s.onFieldChange()},R=l=>{n("change",l),b&&b.onChange&&b.onChange(l)};return()=>{var l;const S=b,{prefixCls:P,id:G=s.id.value}=o,A=vo(o,["prefixCls","id"]),$=I(I({prefixCls:a.value,id:G},so(A,["onUpdate:checked","onUpdate:value"])),{disabled:(l=h.value)!==null&&l!==void 0?l:m.value});S?($.name=S.name.value,$.onChange=R,$.checked=o.value===S.value.value,$.disabled=g.value||S.disabled.value):$.onChange=v;const Z=V({[`${a.value}-wrapper`]:!0,[`${a.value}-wrapper-checked`]:$.checked,[`${a.value}-wrapper-disabled`]:$.disabled,[`${a.value}-wrapper-rtl`]:c.value==="rtl",[`${a.value}-wrapper-in-form-item`]:w.isFormItemInput},d.class,p.value);return u(T("label",D(D({},d),{},{class:Z}),[T(io,D(D({},$),{},{type:"radio",ref:C}),null),e.default&&T("span",null,[e.default()])]))}}}),mo=()=>({prefixCls:String,value:L.any,size:j(),options:ro(),disabled:z(),name:String,buttonStyle:j("outline"),id:String,optionType:j("default"),onChange:E(),"onUpdate:value":E()}),So=W({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:mo(),setup(o,r){let{slots:n,emit:t,attrs:e}=r;const d=X(),{prefixCls:s,direction:w,size:f}=M("radio",o),[b,B]=Q(s),g=F(o.value),C=F(!1);return no(()=>o.value,c=>{g.value=c,C.value=!1}),co({onChange:c=>{const h=g.value,{value:a}=c.target;"value"in o||(g.value=a),!C.value&&a!==h&&(C.value=!0,t("update:value",a),t("change",c),d.onFieldChange()),ao(()=>{C.value=!1})},value:g,disabled:O(()=>o.disabled),name:O(()=>o.name),optionType:O(()=>o.optionType)}),()=>{var c;const{options:h,buttonStyle:a,id:m=d.id.value}=o,u=`${s.value}-group`,p=V(u,`${u}-${a}`,{[`${u}-${f.value}`]:f.value,[`${u}-rtl`]:w.value==="rtl"},e.class,B.value);let y=null;return h&&h.length>0?y=h.map(i=>{if(typeof i=="string"||typeof i=="number")return T(k,{key:i,prefixCls:s.value,disabled:o.disabled,value:i,checked:g.value===i},{default:()=>[i]});const{value:v,disabled:R,label:l}=i;return T(k,{key:`radio-group-value-options-${v}`,prefixCls:s.value,disabled:R||o.disabled,value:v,checked:g.value===v},{default:()=>[l]})}):y=(c=n.default)===null||c===void 0?void 0:c.call(n),b(T("div",D(D({},e),{},{class:p,id:m}),[y]))}}}),$o=W({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:Y(),setup(o,r){let{slots:n,attrs:t}=r;const{prefixCls:e}=M("radio",o);return po("button"),()=>{var d;return T(k,D(D(D({},t),o),{},{prefixCls:e.value}),{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]})}}});k.Group=So;k.Button=$o;k.install=function(o){return o.component(k.name,k),o.component(k.Group.name,k.Group),o.component(k.Button.name,k.Button),o};export{$o as Button,So as Group,$o as RadioButton,So as RadioGroup,k as default};
@@ -1 +1 @@
1
- import{l as E,m as L,h as x,r as X,K as M,q as P,f as I,N as _,a1 as G,P as T}from"./index-Dmt1HDWZ.js";import{d as A,s as B,w as H,f as j,c as r,k as N,a7 as O}from"./vendor-Bn1JzzAn.js";import{i as R}from"./initDefaultProps-C_pMmi75.js";import"./icons-DG5UD-6K.js";function V(n,e,c){var t=c||{},i=t.noTrailing,m=i===void 0?!1:i,b=t.noLeading,$=b===void 0?!1:b,y=t.debounceMode,a=y===void 0?void 0:y,o,g=!1,f=0;function D(){o&&clearTimeout(o)}function z(d){var v=d||{},p=v.upcomingOnly,h=p===void 0?!1:p;D(),g=!h}function S(){for(var d=arguments.length,v=new Array(d),p=0;p<d;p++)v[p]=arguments[p];var h=this,l=Date.now()-f;if(g)return;function u(){f=Date.now(),e.apply(h,v)}function s(){o=void 0}!$&&a&&!o&&u(),D(),a===void 0&&l>n?$?(f=Date.now(),m||(o=setTimeout(a?s:u,n))):u():m!==!0&&(o=setTimeout(a?s:u,a===void 0?n-l:n))}return S.cancel=z,S}function F(n,e,c){var t={},i=t.atBegin,m=i===void 0?!1:i;return V(n,e,{debounceMode:m!==!1})}const K=new M("antSpinMove",{to:{opacity:1}}),q=new M("antRotate",{to:{transform:"rotate(405deg)"}}),U=n=>({[`${n.componentCls}`]:x(x({},X(n)),{position:"absolute",display:"none",color:n.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${n.motionDurationSlow} ${n.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${n.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:n.contentHeight,[`${n.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-n.spinDotSize/2},[`${n.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(n.spinDotSize-n.fontSize)/2+2,textShadow:`0 1px 2px ${n.colorBgContainer}`},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSize/2)-10},"&-sm":{[`${n.componentCls}-dot`]:{margin:-n.spinDotSizeSM/2},[`${n.componentCls}-text`]:{paddingTop:(n.spinDotSizeSM-n.fontSize)/2+2},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSizeSM/2)-10}},"&-lg":{[`${n.componentCls}-dot`]:{margin:-(n.spinDotSizeLG/2)},[`${n.componentCls}-text`]:{paddingTop:(n.spinDotSizeLG-n.fontSize)/2+2},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSizeLG/2)-10}}},[`${n.componentCls}-container`]:{position:"relative",transition:`opacity ${n.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:n.colorBgContainer,opacity:0,transition:`all ${n.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${n.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:n.spinDotDefault},[`${n.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:n.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(n.spinDotSize-n.marginXXS/2)/2,height:(n.spinDotSize-n.marginXXS/2)/2,backgroundColor:n.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:K,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:q,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${n.componentCls}-dot`]:{fontSize:n.spinDotSizeSM,i:{width:(n.spinDotSizeSM-n.marginXXS/2)/2,height:(n.spinDotSizeSM-n.marginXXS/2)/2}},[`&-lg ${n.componentCls}-dot`]:{fontSize:n.spinDotSizeLG,i:{width:(n.spinDotSizeLG-n.marginXXS)/2,height:(n.spinDotSizeLG-n.marginXXS)/2}},[`&${n.componentCls}-show-text ${n.componentCls}-text`]:{display:"block"}})}),J=E("Spin",n=>{const e=L(n,{spinDotDefault:n.colorTextDescription,spinDotSize:n.controlHeightLG/2,spinDotSizeSM:n.controlHeightLG*.35,spinDotSizeLG:n.controlHeight});return[U(e)]},{contentHeight:400});var Q=function(n,e){var c={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(c[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(n);i<t.length;i++)e.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(n,t[i])&&(c[t[i]]=n[t[i]]);return c};const W=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:T.any,delay:Number,indicator:T.any});let C=null;function Y(n,e){return!!n&&!!e&&!isNaN(Number(e))}function Z(n){const e=n.indicator;C=typeof e=="function"?e:()=>r(e,null,null)}const w=A({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:R(W(),{size:"default",spinning:!0,wrapperClassName:""}),setup(n,e){let{attrs:c,slots:t}=e;const{prefixCls:i,size:m,direction:b}=P("spin",n),[$,y]=J(i),a=B(n.spinning&&!Y(n.spinning,n.delay));let o;return H([()=>n.spinning,()=>n.delay],()=>{o?.cancel(),o=F(n.delay,()=>{a.value=n.spinning}),o?.()},{immediate:!0,flush:"post"}),j(()=>{o?.cancel()}),()=>{var g,f;const{class:D}=c,z=Q(c,["class"]),{tip:S=(g=t.tip)===null||g===void 0?void 0:g.call(t)}=n,d=(f=t.default)===null||f===void 0?void 0:f.call(t),v={[y.value]:!0,[i.value]:!0,[`${i.value}-sm`]:m.value==="small",[`${i.value}-lg`]:m.value==="large",[`${i.value}-spinning`]:a.value,[`${i.value}-show-text`]:!!S,[`${i.value}-rtl`]:b.value==="rtl",[D]:!!D};function p(l){const u=`${l}-dot`;let s=G(t,n,"indicator");return s===null?null:(Array.isArray(s)&&(s=s.length===1?s[0]:s),N(s)?O(s,{class:u}):C&&N(C())?O(C(),{class:u}):r("span",{class:`${u} ${l}-dot-spin`},[r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null)]))}const h=r("div",I(I({},z),{},{class:v,"aria-live":"polite","aria-busy":a.value}),[p(i.value),S?r("div",{class:`${i.value}-text`},[S]):null]);if(d&&_(d).length){const l={[`${i.value}-container`]:!0,[`${i.value}-blur`]:a.value};return $(r("div",{class:[`${i.value}-nested-loading`,n.wrapperClassName,y.value]},[a.value&&r("div",{key:"loading"},[h]),r("div",{class:l,key:"container"},[d])]))}return $(h)}}});w.setDefaultIndicator=Z;w.install=function(n){return n.component(w.name,w),n};export{w as default,W as spinProps};
1
+ import{l as E,m as L,h as x,r as X,K as M,q as P,f as I,N as _,a1 as G,P as T}from"./index-COg__P6M.js";import{d as A,s as B,w as H,f as j,c as r,k as N,a7 as O}from"./vendor-Bn1JzzAn.js";import{i as R}from"./initDefaultProps-B_Uk-wzg.js";import"./icons-DG5UD-6K.js";function V(n,e,c){var t=c||{},i=t.noTrailing,m=i===void 0?!1:i,b=t.noLeading,$=b===void 0?!1:b,y=t.debounceMode,a=y===void 0?void 0:y,o,g=!1,f=0;function D(){o&&clearTimeout(o)}function z(d){var v=d||{},p=v.upcomingOnly,h=p===void 0?!1:p;D(),g=!h}function S(){for(var d=arguments.length,v=new Array(d),p=0;p<d;p++)v[p]=arguments[p];var h=this,l=Date.now()-f;if(g)return;function u(){f=Date.now(),e.apply(h,v)}function s(){o=void 0}!$&&a&&!o&&u(),D(),a===void 0&&l>n?$?(f=Date.now(),m||(o=setTimeout(a?s:u,n))):u():m!==!0&&(o=setTimeout(a?s:u,a===void 0?n-l:n))}return S.cancel=z,S}function F(n,e,c){var t={},i=t.atBegin,m=i===void 0?!1:i;return V(n,e,{debounceMode:m!==!1})}const K=new M("antSpinMove",{to:{opacity:1}}),q=new M("antRotate",{to:{transform:"rotate(405deg)"}}),U=n=>({[`${n.componentCls}`]:x(x({},X(n)),{position:"absolute",display:"none",color:n.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${n.motionDurationSlow} ${n.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${n.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:n.contentHeight,[`${n.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-n.spinDotSize/2},[`${n.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(n.spinDotSize-n.fontSize)/2+2,textShadow:`0 1px 2px ${n.colorBgContainer}`},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSize/2)-10},"&-sm":{[`${n.componentCls}-dot`]:{margin:-n.spinDotSizeSM/2},[`${n.componentCls}-text`]:{paddingTop:(n.spinDotSizeSM-n.fontSize)/2+2},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSizeSM/2)-10}},"&-lg":{[`${n.componentCls}-dot`]:{margin:-(n.spinDotSizeLG/2)},[`${n.componentCls}-text`]:{paddingTop:(n.spinDotSizeLG-n.fontSize)/2+2},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSizeLG/2)-10}}},[`${n.componentCls}-container`]:{position:"relative",transition:`opacity ${n.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:n.colorBgContainer,opacity:0,transition:`all ${n.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${n.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:n.spinDotDefault},[`${n.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:n.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(n.spinDotSize-n.marginXXS/2)/2,height:(n.spinDotSize-n.marginXXS/2)/2,backgroundColor:n.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:K,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:q,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${n.componentCls}-dot`]:{fontSize:n.spinDotSizeSM,i:{width:(n.spinDotSizeSM-n.marginXXS/2)/2,height:(n.spinDotSizeSM-n.marginXXS/2)/2}},[`&-lg ${n.componentCls}-dot`]:{fontSize:n.spinDotSizeLG,i:{width:(n.spinDotSizeLG-n.marginXXS)/2,height:(n.spinDotSizeLG-n.marginXXS)/2}},[`&${n.componentCls}-show-text ${n.componentCls}-text`]:{display:"block"}})}),J=E("Spin",n=>{const e=L(n,{spinDotDefault:n.colorTextDescription,spinDotSize:n.controlHeightLG/2,spinDotSizeSM:n.controlHeightLG*.35,spinDotSizeLG:n.controlHeight});return[U(e)]},{contentHeight:400});var Q=function(n,e){var c={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(c[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(n);i<t.length;i++)e.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(n,t[i])&&(c[t[i]]=n[t[i]]);return c};const W=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:T.any,delay:Number,indicator:T.any});let C=null;function Y(n,e){return!!n&&!!e&&!isNaN(Number(e))}function Z(n){const e=n.indicator;C=typeof e=="function"?e:()=>r(e,null,null)}const w=A({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:R(W(),{size:"default",spinning:!0,wrapperClassName:""}),setup(n,e){let{attrs:c,slots:t}=e;const{prefixCls:i,size:m,direction:b}=P("spin",n),[$,y]=J(i),a=B(n.spinning&&!Y(n.spinning,n.delay));let o;return H([()=>n.spinning,()=>n.delay],()=>{o?.cancel(),o=F(n.delay,()=>{a.value=n.spinning}),o?.()},{immediate:!0,flush:"post"}),j(()=>{o?.cancel()}),()=>{var g,f;const{class:D}=c,z=Q(c,["class"]),{tip:S=(g=t.tip)===null||g===void 0?void 0:g.call(t)}=n,d=(f=t.default)===null||f===void 0?void 0:f.call(t),v={[y.value]:!0,[i.value]:!0,[`${i.value}-sm`]:m.value==="small",[`${i.value}-lg`]:m.value==="large",[`${i.value}-spinning`]:a.value,[`${i.value}-show-text`]:!!S,[`${i.value}-rtl`]:b.value==="rtl",[D]:!!D};function p(l){const u=`${l}-dot`;let s=G(t,n,"indicator");return s===null?null:(Array.isArray(s)&&(s=s.length===1?s[0]:s),N(s)?O(s,{class:u}):C&&N(C())?O(C(),{class:u}):r("span",{class:`${u} ${l}-dot-spin`},[r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null),r("i",{class:`${l}-dot-item`},null)]))}const h=r("div",I(I({},z),{},{class:v,"aria-live":"polite","aria-busy":a.value}),[p(i.value),S?r("div",{class:`${i.value}-text`},[S]):null]);if(d&&_(d).length){const l={[`${i.value}-container`]:!0,[`${i.value}-blur`]:a.value};return $(r("div",{class:[`${i.value}-nested-loading`,n.wrapperClassName,y.value]},[a.value&&r("div",{key:"loading"},[h]),r("div",{class:l,key:"container"},[d])]))}return $(h)}}});w.setDefaultIndicator=Z;w.install=function(n){return n.component(w.name,w),n};export{w as default,W as spinProps};
@@ -1,4 +1,4 @@
1
- import{l as te,m as le,K as ie,h as s,r as E,at as se,H as m,a5 as I,a7 as A,P as ce,af as de,q as K,M as ue,w as be,L as ve,i as N,f as D}from"./index-Dmt1HDWZ.js";import{d as X,i as fe,b as S,e as he,f as me,o as pe,c as k,r as w,w as U,p as ge}from"./vendor-Bn1JzzAn.js";import{V as xe}from"./Checkbox-BxL6xm7Z.js";import{u as L,F as Ce}from"./FormItemContext-gtrW-DdF.js";const $e=new ie("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ye=e=>{const{checkboxCls:a}=e,n=`${a}-wrapper`;return[{[`${a}-group`]:s(s({},E(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:s(s({},E(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[a]:s(s({},E(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${a}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${a}-inner`]:s({},se(e))},[`${a}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[a]:{"&-indeterminate":{[`${a}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${a}:after`]:{visibility:"visible"},[`
1
+ import{l as te,m as le,K as ie,h as s,r as E,at as se,H as m,a5 as I,a7 as A,P as ce,af as de,q as K,M as ue,w as be,L as ve,i as N,f as D}from"./index-COg__P6M.js";import{d as X,i as fe,b as S,e as he,f as me,o as pe,c as k,r as w,w as U,p as ge}from"./vendor-Bn1JzzAn.js";import{V as xe}from"./Checkbox-C6pW60Br.js";import{u as L,F as Ce}from"./FormItemContext-DdPW81BY.js";const $e=new ie("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ye=e=>{const{checkboxCls:a}=e,n=`${a}-wrapper`;return[{[`${a}-group`]:s(s({},E(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:s(s({},E(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[a]:s(s({},E(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${a}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${a}-inner`]:s({},se(e))},[`${a}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[a]:{"&-indeterminate":{[`${a}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${a}:after`]:{visibility:"visible"},[`
2
2
  ${n}:not(${n}-disabled),
3
3
  ${a}:not(${a}-disabled)
4
4
  `]:{[`&:hover ${a}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${a}-checked:not(${a}-disabled) ${a}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${a}-checked:not(${a}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${a}-checked`]:{[`${a}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:$e,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`
@@ -1,4 +1,4 @@
1
- import{l as Ce,m as Te,h as r,r as ze,o as A,ab as ie,q as v,i as I,f as m,ac as y,L as Be,a3 as Me,P as x,a1 as q,a4 as j}from"./index-Dmt1HDWZ.js";import{d as $,b as T,c as o,k as ae}from"./vendor-Bn1JzzAn.js";import oe from"./index-DAcBi6F-.js";import{i as we}from"./isPlainObject-BWRMT62c.js";import{d as Ae}from"./devWarning-Cwuuqc_f.js";import{u as D,E as X,s as H,S as s,a as ne}from"./Skeleton-C9Ipj0A6.js";import{i as re}from"./initDefaultProps-C_pMmi75.js";import{o as le}from"./omit-DxOZvcGQ.js";import{a as Ie}from"./vnode-C8ZuTk8W.js";import"./icons-DG5UD-6K.js";import"./raf-Deuc0E8-.js";import"./KeyCode-D63Tfrq7.js";import"./index-B4gCFHtB.js";import"./Trigger-BMNHmxwH.js";import"./motion-BvKgS96o.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./_arrayIncludes-B8uzE354.js";import"./injectionKey-BXVc-oGP.js";import"./Overflow-C3jb6knl.js";import"./index-Ds1BfT_C.js";import"./index-BcDeMCUK.js";import"./placementArrow-Bm--qom1.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-DLP70JGe.js";import"./zoom-CjbgJYXQ.js";import"./collapseMotion-CqM1QOwM.js";import"./slide-DD1xINGx.js";import"./OverrideContext-C0w0P4A3.js";import"./Dropdown-U-iuPB0n.js";import"./useState-CnxtbLoC.js";import"./useRefs-BrCfMLMc.js";import"./hasIn-DWwHHlBG.js";import"./isSymbol-S5WZT7lS.js";import"./isMobile--2fOlCHx.js";import"./useMergedState-DXbJa_zE.js";const De=e=>{const{antCls:t,componentCls:a,cardHeadHeight:i,cardPaddingBase:n,cardHeadTabsMarginBottom:d}=e;return r(r({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${n}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},A()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":r(r({display:"inline-block",flex:1},ie),{[`
1
+ import{l as Ce,m as Te,h as r,r as ze,o as A,ab as ie,q as v,i as I,f as m,ac as y,L as Be,a3 as Me,P as x,a1 as q,a4 as j}from"./index-COg__P6M.js";import{d as $,b as T,c as o,k as ae}from"./vendor-Bn1JzzAn.js";import oe from"./index-OJmXGn8n.js";import{i as we}from"./isPlainObject-BWRMT62c.js";import{d as Ae}from"./devWarning-BRylvxzY.js";import{u as D,E as X,s as H,S as s,a as ne}from"./Skeleton-B2sMLqKQ.js";import{i as re}from"./initDefaultProps-B_Uk-wzg.js";import{o as le}from"./omit-C0uA2ytw.js";import{a as Ie}from"./vnode-D-hXAnHb.js";import"./icons-DG5UD-6K.js";import"./raf-Deuc0E8-.js";import"./KeyCode-D63Tfrq7.js";import"./index-CdL9cQIE.js";import"./Trigger-ClBDWdLo.js";import"./motion-ez7H8y8b.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./_arrayIncludes-B8uzE354.js";import"./injectionKey-BXVc-oGP.js";import"./Overflow-CzOhNGE6.js";import"./index-djikyGz3.js";import"./index-DjbMaBLf.js";import"./placementArrow-BWL3-3xo.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-AMRhrRzS.js";import"./zoom-DW7seTGG.js";import"./collapseMotion-CqM1QOwM.js";import"./slide-DmmvSaBD.js";import"./OverrideContext-C0w0P4A3.js";import"./Dropdown-BCjMLam9.js";import"./useState-CnxtbLoC.js";import"./useRefs-BrCfMLMc.js";import"./hasIn-CJKJMKki.js";import"./isSymbol-S5WZT7lS.js";import"./isMobile--2fOlCHx.js";import"./useMergedState-DXbJa_zE.js";const De=e=>{const{antCls:t,componentCls:a,cardHeadHeight:i,cardPaddingBase:n,cardHeadTabsMarginBottom:d}=e;return r(r({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${n}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},A()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":r(r({display:"inline-block",flex:1},ie),{[`
2
2
  > ${a}-typography,
3
3
  > ${a}-typography-edit-content
4
4
  `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:d,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},He=e=>{const{cardPaddingBase:t,colorBorderSecondary:a,cardShadow:i,lineWidth:n}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`