@gobolt/genesis 0.0.7 → 0.0.9

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 (254) hide show
  1. package/README.md +18 -2
  2. package/dist/{AntdIcon-Bsnbyy6g.js → AntdIcon-BoLh1dP8.js} +37 -35
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-DXCxlIQL.js} +2 -2
  5. package/dist/CloseOutlined-ClXDNn82.js +13 -0
  6. package/dist/{Compact-CJBo3f0u.js → Compact-CGY560JF.js} +45 -53
  7. package/dist/{ContextIsolator-CGkdKtc3.js → ContextIsolator-D5x2Ih51.js} +2 -2
  8. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-C0Kj5KQV.js} +2 -2
  9. package/dist/{CheckOutlined-DAynWe12.js → KeyCode-DM2sFh3-.js} +10 -20
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/Overflow-PBZD-PFm.js +360 -0
  12. package/dist/PurePanel-BqPLRtc2.js +203 -0
  13. package/dist/SearchOutlined-BP3Z2K6j.js +13 -0
  14. package/dist/{TextArea-3MOYYuAQ.js → TextArea-DKwCct3i.js} +26 -16
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-BNV2qdrP.js → button-CDQgO1OK.js} +200 -197
  18. package/dist/collapse-Dtpt-6W_.js +20 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +103 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +18 -0
  23. package/dist/components/Badge/icons/ASN.d.ts +2 -0
  24. package/dist/components/Badge/icons/ASN.js +23 -0
  25. package/dist/components/Badge/icons/Appointment.d.ts +2 -0
  26. package/dist/components/Badge/icons/Appointment.js +23 -0
  27. package/dist/components/Badge/icons/Inventory.d.ts +2 -0
  28. package/dist/components/Badge/icons/Inventory.js +23 -0
  29. package/dist/components/Badge/icons/Parcel.d.ts +2 -0
  30. package/dist/components/Badge/icons/Parcel.js +23 -0
  31. package/dist/components/Badge/icons/Product.d.ts +2 -0
  32. package/dist/components/Badge/icons/Product.js +23 -0
  33. package/dist/components/Badge/icons/Route.d.ts +2 -0
  34. package/dist/components/Badge/icons/Route.js +23 -0
  35. package/dist/components/Badge/icons/Shipment.d.ts +2 -0
  36. package/dist/components/Badge/icons/Shipment.js +23 -0
  37. package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
  38. package/dist/components/Badge/icons/ShoppingCart.js +23 -0
  39. package/dist/components/Badge/icons/System.d.ts +2 -0
  40. package/dist/components/Badge/icons/System.js +23 -0
  41. package/dist/components/Badge/index.d.ts +2 -0
  42. package/dist/components/Badge/index.js +4 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +34 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +22 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
  49. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
  50. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +23 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +4 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +27 -0
  54. package/dist/components/Breadcrumb/styles.js +2436 -0
  55. package/dist/components/Button/Button.d.ts +14 -0
  56. package/dist/components/Button/Button.js +22 -0
  57. package/dist/components/Button/__tests__/Button.test.js +16 -0
  58. package/dist/components/Button/styles.d.ts +16 -0
  59. package/dist/components/{atoms/button → Button}/styles.js +12 -12
  60. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  61. package/dist/components/Checkbox/Checkbox.js +40 -0
  62. package/dist/components/{atoms/checkbox → Checkbox}/__tests__/Checkbox.test.js +1 -1
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +5 -0
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +97 -96
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
  66. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +40 -0
  67. package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +22 -21
  69. package/dist/components/Form/Form.d.ts +26 -0
  70. package/dist/components/Form/Form.js +8 -0
  71. package/dist/components/Form/__stories__/FormStory.js +93 -0
  72. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  73. package/dist/components/Form/__tests__/form.test.js +18 -0
  74. package/dist/components/Form/index.js +4 -0
  75. package/dist/components/Form/styles.d.ts +3 -0
  76. package/dist/components/Form/styles.js +5 -0
  77. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  78. package/dist/components/Input/Input.js +19 -0
  79. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  80. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  81. package/dist/components/Input/__tests__/Input.test.js +24 -0
  82. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -0
  83. package/dist/components/Input/styles.js +529 -0
  84. package/dist/components/Message/Message.d.ts +13 -0
  85. package/dist/components/Message/Message.js +78 -0
  86. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  87. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  88. package/dist/components/Message/__tests__/Message.test.js +42 -0
  89. package/dist/components/Message/index.d.ts +2 -0
  90. package/dist/components/Message/index.js +4 -0
  91. package/dist/components/Message/styles.d.ts +8 -0
  92. package/dist/components/Message/styles.js +41 -0
  93. package/dist/components/Notification/Notification.d.ts +17 -0
  94. package/dist/components/Notification/Notification.js +1370 -0
  95. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  96. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  97. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  98. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  99. package/dist/components/Notification/__tests__/Notification.test.js +15 -0
  100. package/dist/components/Notification/index.d.ts +2 -0
  101. package/dist/components/Notification/index.js +4 -0
  102. package/dist/components/Notification/styles.d.ts +16 -0
  103. package/dist/components/Notification/styles.js +65 -0
  104. package/dist/components/Radio/Radio.d.ts +14 -0
  105. package/dist/components/Radio/Radio.js +28 -0
  106. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  107. package/dist/components/Radio/RadioGroup.js +33 -0
  108. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  109. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  110. package/dist/components/Radio/__tests__/RadioGroup.test.js +30 -0
  111. package/dist/components/Radio/index.d.ts +2 -0
  112. package/dist/components/Radio/index.js +4 -0
  113. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  114. package/dist/components/Radio/states/RadioChecked.js +18 -0
  115. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  116. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  117. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  118. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  119. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  120. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  121. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  122. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  123. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  124. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  125. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  126. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  127. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  128. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  129. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  130. package/dist/components/Select/DropdownChevron.js +23 -0
  131. package/dist/components/Select/Select.d.ts +16 -0
  132. package/dist/components/Select/Select.js +36 -0
  133. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  134. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  135. package/dist/components/{atoms/select → Select}/__tests__/Select.test.js +1165 -1140
  136. package/dist/components/Select/styles.d.ts +32 -0
  137. package/dist/components/{atoms/select → Select}/styles.js +1517 -1651
  138. package/dist/components/Toast/Toast.d.ts +14 -0
  139. package/dist/components/Toast/Toast.js +19 -0
  140. package/dist/components/Toast/__stories__/Toast.stories.d.ts +16 -0
  141. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  142. package/dist/components/Toast/__tests__/Toast.test.js +18 -0
  143. package/dist/components/Toast/index.d.ts +2 -0
  144. package/dist/components/Toast/index.js +4 -0
  145. package/dist/components/Toast/styles.d.ts +10 -0
  146. package/dist/components/Toast/styles.js +54 -0
  147. package/dist/components/Typography/Typography.d.ts +15 -0
  148. package/dist/components/Typography/Typography.js +8 -0
  149. package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +1 -0
  150. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  151. package/dist/components/Typography/__tests__/Typography.test.js +23 -0
  152. package/dist/components/Typography/index.js +4 -0
  153. package/dist/components/Typography/styles.d.ts +21 -0
  154. package/dist/components/Typography/styles.js +48 -0
  155. package/dist/components/index.d.ts +26 -14
  156. package/dist/components/index.js +23 -13
  157. package/dist/constants/index.d.ts +104 -0
  158. package/dist/constants/index.js +41 -7
  159. package/dist/{context-CZsFJmh6.js → context-BMW3aJEf.js} +162 -161
  160. package/dist/genesis/GenesisThemeBreakdown.js +54 -24
  161. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  162. package/dist/genesis/GenesisThemeDemo.js +3 -4
  163. package/dist/genesis/styles.js +1095 -2186
  164. package/dist/{index-C7kFNqp2.js → index-1CBpubM3.js} +36 -36
  165. package/dist/{index-3MWkSVA1.js → index-BZAhCB_K.js} +6 -5
  166. package/dist/{index-D1v_7IIx.js → index-C0SmxWLS.js} +95 -94
  167. package/dist/index-C8haFnXI.js +1112 -0
  168. package/dist/{index-VDH3iLaC.js → index-CfDY25LP.js} +298 -309
  169. package/dist/{index-SAAXFt-P.js → index-DPW8XdWj.js} +255 -249
  170. package/dist/{index-BQO27mgE.js → index-bKlRxQp4.js} +52 -51
  171. package/dist/index-oK7z6jnz.js +22795 -0
  172. package/dist/index.d.ts +2 -0
  173. package/dist/index.js +31 -18
  174. package/dist/{isVisible-CNQjrJPN.js → isVisible-A-IfeFoT.js} +34 -33
  175. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-D2FWSwU3.js} +1 -1
  176. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-B0YTfcV1.js} +16 -26
  177. package/dist/providers/GenesisProvider.js +9 -5
  178. package/dist/providers/ThemeProvider.d.ts +2 -2
  179. package/dist/providers/ThemeProvider.js +4 -1
  180. package/dist/providers/ToastProvider.d.ts +13 -0
  181. package/dist/providers/ToastProvider.js +20 -0
  182. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  183. package/dist/providers/index.d.ts +1 -1
  184. package/dist/providers/index.js +4 -4
  185. package/dist/providers/useGenesis.d.ts +7 -0
  186. package/dist/providers/useGenesis.js +6 -0
  187. package/dist/{setup-CMYVZCPF.js → setup-BvfREoHl.js} +6948 -6940
  188. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +22 -16
  189. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +21 -15
  190. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  191. package/dist/styles/design-tokens/variables.d.ts +17 -17
  192. package/dist/styles/design-tokens/variables.js +48 -48
  193. package/dist/styles/global-styles.d.ts +1 -0
  194. package/dist/styles/global-styles.js +13 -29
  195. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  196. package/dist/styles/theme/genesis-theme.js +461 -277
  197. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  198. package/dist/{Form-Cylpi4M4.js → styles-CT_fyXBd.js} +417 -424
  199. package/dist/test/setup.js +2 -1
  200. package/dist/useLocale-DT-z_vQ6.js +16 -0
  201. package/dist/{useVariants-CEpw6Ww6.js → useVariants-DvhXfgJY.js} +9 -8
  202. package/dist/warning-C63HNL9U.js +789 -0
  203. package/package.json +10 -4
  204. package/dist/Overflow-CP1M4Z0s.js +0 -369
  205. package/dist/components/atoms/button/Button.d.ts +0 -12
  206. package/dist/components/atoms/button/Button.js +0 -27
  207. package/dist/components/atoms/button/styles.d.ts +0 -12
  208. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  209. package/dist/components/atoms/index.d.ts +0 -1
  210. package/dist/components/atoms/index.js +0 -3
  211. package/dist/components/atoms/input/Input.js +0 -12
  212. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  213. package/dist/components/atoms/input/styles.js +0 -415
  214. package/dist/components/atoms/select/Select.d.ts +0 -11
  215. package/dist/components/atoms/select/Select.js +0 -24
  216. package/dist/components/atoms/select/styles.d.ts +0 -15
  217. package/dist/components/atoms/typography/Typography.d.ts +0 -11
  218. package/dist/components/atoms/typography/Typography.js +0 -44
  219. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  220. package/dist/components/atoms/typography/index.js +0 -4
  221. package/dist/components/atoms/typography/styles.d.ts +0 -11
  222. package/dist/components/atoms/typography/styles.js +0 -28
  223. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +0 -10
  224. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  225. package/dist/components/molecules/error-boundary-fallback/index.d.ts +0 -1
  226. package/dist/components/molecules/form/Form.d.ts +0 -15
  227. package/dist/components/molecules/form/Form.js +0 -7
  228. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  229. package/dist/components/molecules/form/index.js +0 -4
  230. package/dist/index-BPtFqhcp.js +0 -19110
  231. package/dist/index-BWys7dkb.js +0 -4462
  232. package/dist/styles/theme/global-styles.d.ts +0 -1
  233. package/dist/styles/theme/global-styles.js +0 -35
  234. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  235. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  236. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  237. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  239. /package/dist/components/{atoms/button → Button}/index.js +0 -0
  240. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/checkbox → Checkbox}/index.js +0 -0
  244. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  245. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.js +0 -0
  246. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.d.ts +0 -0
  247. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  248. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  249. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  250. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  251. /package/dist/components/{atoms/input → Input}/index.js +0 -0
  252. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/select → Select}/index.js +0 -0
  254. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
@@ -0,0 +1,2436 @@
1
+ import { d as Re } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
+ import * as l from "react";
3
+ import { useContext as we, useState as Oe, useEffect as be, useRef as _e, createContext as tt, forwardRef as Ae, useImperativeHandle as nt, useMemo as ot } from "react";
4
+ import { a as Se, c as P, F as Be } from "../../warning-C63HNL9U.js";
5
+ import { o as Q, t as ne, u as rt } from "../../isVisible-A-IfeFoT.js";
6
+ import { p as Le } from "../../pickAttrs-B0YTfcV1.js";
7
+ import { c as ee } from "../../reactNode-sKPeiqPL.js";
8
+ import { g as te, q as h, C as Z, X as it, j as lt, h as at, p as st, Y as dt, m as oe, F as Ee, o as Ie, H as ct, v as se, b as ke, I as he, E as ut } from "../../index-oK7z6jnz.js";
9
+ import { i as Ne, g as mt, R as pt } from "../../PurePanel-BqPLRtc2.js";
10
+ import { I as ye } from "../../AntdIcon-BoLh1dP8.js";
11
+ import { D as gt, M as ft, u as bt, S as $t, E as ht, R as vt, a as Ct, b as St } from "../../index-C8haFnXI.js";
12
+ import { u as We, a as It, z as yt } from "../../index-CfDY25LP.js";
13
+ import { T as xt, i as Xe, g as wt, a as Ot, b as Bt, c as Et } from "../../index-DPW8XdWj.js";
14
+ import { u as Ve } from "../../context-BMW3aJEf.js";
15
+ import { C as Nt } from "../../ContextIsolator-D5x2Ih51.js";
16
+ import { g as jt } from "../../collapse-Dtpt-6W_.js";
17
+ import { i as re, s as zt, a as Tt, b as Pt, c as Ht } from "../../Overflow-PBZD-PFm.js";
18
+ var Dt = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, Mt = function(n, t) {
19
+ return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
20
+ ref: t,
21
+ icon: Dt
22
+ }));
23
+ }, qe = /* @__PURE__ */ l.forwardRef(Mt);
24
+ process.env.NODE_ENV !== "production" && (qe.displayName = "BarsOutlined");
25
+ var Rt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, _t = function(n, t) {
26
+ return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
27
+ ref: t,
28
+ icon: Rt
29
+ }));
30
+ }, ve = /* @__PURE__ */ l.forwardRef(_t);
31
+ process.env.NODE_ENV !== "production" && (ve.displayName = "LeftOutlined");
32
+ var At = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Lt = function(n, t) {
33
+ return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
34
+ ref: t,
35
+ icon: At
36
+ }));
37
+ }, ie = /* @__PURE__ */ l.forwardRef(Lt);
38
+ process.env.NODE_ENV !== "production" && (ie.displayName = "RightOutlined");
39
+ const kt = (e) => typeof e != "object" && typeof e != "function" || e === null, Wt = /* @__PURE__ */ l.createContext({
40
+ siderHook: {
41
+ addSider: () => null,
42
+ removeSider: () => null
43
+ }
44
+ }), Xt = (e) => {
45
+ const {
46
+ antCls: n,
47
+ // .ant
48
+ componentCls: t,
49
+ // .ant-layout
50
+ colorText: o,
51
+ footerBg: r,
52
+ headerHeight: a,
53
+ headerPadding: i,
54
+ headerColor: d,
55
+ footerPadding: s,
56
+ fontSize: p,
57
+ bodyBg: g,
58
+ headerBg: S
59
+ } = e;
60
+ return {
61
+ [t]: {
62
+ display: "flex",
63
+ flex: "auto",
64
+ flexDirection: "column",
65
+ /* fix firefox can't set height smaller than content on flex item */
66
+ minHeight: 0,
67
+ background: g,
68
+ "&, *": {
69
+ boxSizing: "border-box"
70
+ },
71
+ [`&${t}-has-sider`]: {
72
+ flexDirection: "row",
73
+ [`> ${t}, > ${t}-content`]: {
74
+ // https://segmentfault.com/a/1190000019498300
75
+ width: 0
76
+ }
77
+ },
78
+ [`${t}-header, &${t}-footer`]: {
79
+ flex: "0 0 auto"
80
+ },
81
+ // RTL
82
+ "&-rtl": {
83
+ direction: "rtl"
84
+ }
85
+ },
86
+ // ==================== Header ====================
87
+ [`${t}-header`]: {
88
+ height: a,
89
+ padding: i,
90
+ color: d,
91
+ lineHeight: h(a),
92
+ background: S,
93
+ // Other components/menu/style/index.less line:686
94
+ // Integration with header element so menu items have the same height
95
+ [`${n}-menu`]: {
96
+ lineHeight: "inherit"
97
+ }
98
+ },
99
+ // ==================== Footer ====================
100
+ [`${t}-footer`]: {
101
+ padding: s,
102
+ color: o,
103
+ fontSize: p,
104
+ background: r
105
+ },
106
+ // =================== Content ====================
107
+ [`${t}-content`]: {
108
+ flex: "auto",
109
+ color: o,
110
+ // fix firefox can't set height smaller than content on flex item
111
+ minHeight: 0
112
+ }
113
+ };
114
+ }, Fe = (e) => {
115
+ const {
116
+ colorBgLayout: n,
117
+ controlHeight: t,
118
+ controlHeightLG: o,
119
+ colorText: r,
120
+ controlHeightSM: a,
121
+ marginXXS: i,
122
+ colorTextLightSolid: d,
123
+ colorBgContainer: s
124
+ } = e, p = o * 1.25;
125
+ return {
126
+ // Deprecated
127
+ colorBgHeader: "#001529",
128
+ colorBgBody: n,
129
+ colorBgTrigger: "#002140",
130
+ bodyBg: n,
131
+ headerBg: "#001529",
132
+ headerHeight: t * 2,
133
+ headerPadding: `0 ${p}px`,
134
+ headerColor: r,
135
+ footerPadding: `${a}px ${p}px`,
136
+ footerBg: n,
137
+ siderBg: "#001529",
138
+ triggerHeight: o + i * 2,
139
+ triggerBg: "#002140",
140
+ triggerColor: d,
141
+ zeroTriggerWidth: o,
142
+ zeroTriggerHeight: o,
143
+ lightSiderBg: s,
144
+ lightTriggerBg: s,
145
+ lightTriggerColor: r
146
+ };
147
+ }, Ge = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
148
+ te("Layout", (e) => [Xt(e)], Fe, {
149
+ deprecatedTokens: Ge
150
+ });
151
+ const Vt = (e) => {
152
+ const {
153
+ componentCls: n,
154
+ siderBg: t,
155
+ motionDurationMid: o,
156
+ motionDurationSlow: r,
157
+ antCls: a,
158
+ triggerHeight: i,
159
+ triggerColor: d,
160
+ triggerBg: s,
161
+ headerHeight: p,
162
+ zeroTriggerWidth: g,
163
+ zeroTriggerHeight: S,
164
+ borderRadiusLG: u,
165
+ lightSiderBg: $,
166
+ lightTriggerColor: c,
167
+ lightTriggerBg: m,
168
+ bodyBg: v
169
+ } = e;
170
+ return {
171
+ [n]: {
172
+ position: "relative",
173
+ // fix firefox can't set width smaller than content on flex item
174
+ minWidth: 0,
175
+ background: t,
176
+ transition: `all ${o}, background 0s`,
177
+ "&-has-trigger": {
178
+ paddingBottom: i
179
+ },
180
+ "&-right": {
181
+ order: 1
182
+ },
183
+ [`${n}-children`]: {
184
+ height: "100%",
185
+ // Hack for fixing margin collapse bug
186
+ // https://github.com/ant-design/ant-design/issues/7967
187
+ // solution from https://stackoverflow.com/a/33132624/3040605
188
+ marginTop: -0.1,
189
+ paddingTop: 0.1,
190
+ [`${a}-menu${a}-menu-inline-collapsed`]: {
191
+ width: "auto"
192
+ }
193
+ },
194
+ [`${n}-trigger`]: {
195
+ position: "fixed",
196
+ bottom: 0,
197
+ zIndex: 1,
198
+ height: i,
199
+ color: d,
200
+ lineHeight: h(i),
201
+ textAlign: "center",
202
+ background: s,
203
+ cursor: "pointer",
204
+ transition: `all ${o}`
205
+ },
206
+ [`${n}-zero-width`]: {
207
+ "> *": {
208
+ overflow: "hidden"
209
+ },
210
+ "&-trigger": {
211
+ position: "absolute",
212
+ top: p,
213
+ insetInlineEnd: e.calc(g).mul(-1).equal(),
214
+ zIndex: 1,
215
+ width: g,
216
+ height: S,
217
+ color: d,
218
+ fontSize: e.fontSizeXL,
219
+ display: "flex",
220
+ alignItems: "center",
221
+ justifyContent: "center",
222
+ background: t,
223
+ borderRadius: `0 ${h(u)} ${h(u)} 0`,
224
+ cursor: "pointer",
225
+ transition: `background ${r} ease`,
226
+ "&::after": {
227
+ position: "absolute",
228
+ inset: 0,
229
+ background: "transparent",
230
+ transition: `all ${r}`,
231
+ content: '""'
232
+ },
233
+ "&:hover::after": {
234
+ background: "rgba(255, 255, 255, 0.2)"
235
+ },
236
+ "&-right": {
237
+ insetInlineStart: e.calc(g).mul(-1).equal(),
238
+ borderRadius: `${h(u)} 0 0 ${h(u)}`
239
+ }
240
+ }
241
+ },
242
+ // Light
243
+ "&-light": {
244
+ background: $,
245
+ [`${n}-trigger`]: {
246
+ color: c,
247
+ background: m
248
+ },
249
+ [`${n}-zero-width-trigger`]: {
250
+ color: c,
251
+ background: m,
252
+ border: `1px solid ${v}`,
253
+ // Safe to modify to any other color
254
+ borderInlineStart: 0
255
+ }
256
+ }
257
+ }
258
+ };
259
+ }, qt = te(["Layout", "Sider"], (e) => [Vt(e)], Fe, {
260
+ deprecatedTokens: Ge
261
+ });
262
+ var Ft = function(e, n) {
263
+ var t = {};
264
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
265
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
266
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
267
+ return t;
268
+ };
269
+ const je = {
270
+ xs: "479.98px",
271
+ sm: "575.98px",
272
+ md: "767.98px",
273
+ lg: "991.98px",
274
+ xl: "1199.98px",
275
+ xxl: "1599.98px"
276
+ }, Gt = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), xe = /* @__PURE__ */ l.createContext({}), Yt = /* @__PURE__ */ (() => {
277
+ let e = 0;
278
+ return function() {
279
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
280
+ return e += 1, `${n}${e}`;
281
+ };
282
+ })(), Ut = /* @__PURE__ */ l.forwardRef((e, n) => {
283
+ const {
284
+ prefixCls: t,
285
+ className: o,
286
+ trigger: r,
287
+ children: a,
288
+ defaultCollapsed: i = !1,
289
+ theme: d = "dark",
290
+ style: s = {},
291
+ collapsible: p = !1,
292
+ reverseArrow: g = !1,
293
+ width: S = 200,
294
+ collapsedWidth: u = 80,
295
+ zeroWidthTriggerStyle: $,
296
+ breakpoint: c,
297
+ onCollapse: m,
298
+ onBreakpoint: v
299
+ } = e, I = Ft(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
300
+ siderHook: B
301
+ } = we(Wt), [x, b] = Oe("collapsed" in e ? e.collapsed : i), [E, N] = Oe(!1);
302
+ be(() => {
303
+ "collapsed" in e && b(e.collapsed);
304
+ }, [e.collapsed]);
305
+ const _ = (T, A) => {
306
+ "collapsed" in e || b(T), m == null || m(T, A);
307
+ }, {
308
+ getPrefixCls: w,
309
+ direction: C
310
+ } = we(Z), f = w("layout-sider", t), [j, D, M] = qt(f), y = _e(null);
311
+ y.current = (T) => {
312
+ N(T.matches), v == null || v(T.matches), x !== T.matches && _(T.matches, "responsive");
313
+ }, be(() => {
314
+ function T(Y) {
315
+ return y.current(Y);
316
+ }
317
+ let A;
318
+ if (typeof window < "u") {
319
+ const {
320
+ matchMedia: Y
321
+ } = window;
322
+ if (Y && c && c in je) {
323
+ A = Y(`screen and (max-width: ${je[c]})`);
324
+ try {
325
+ A.addEventListener("change", T);
326
+ } catch {
327
+ A.addListener(T);
328
+ }
329
+ T(A);
330
+ }
331
+ }
332
+ return () => {
333
+ try {
334
+ A == null || A.removeEventListener("change", T);
335
+ } catch {
336
+ A == null || A.removeListener(T);
337
+ }
338
+ };
339
+ }, [c]), be(() => {
340
+ const T = Yt("ant-sider-");
341
+ return B.addSider(T), () => B.removeSider(T);
342
+ }, []);
343
+ const H = () => {
344
+ _(!x, "clickTrigger");
345
+ }, L = Q(I, ["collapsed"]), k = x ? u : S, R = Gt(k) ? `${k}px` : String(k), W = parseFloat(String(u || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
346
+ onClick: H,
347
+ className: P(`${f}-zero-width-trigger`, `${f}-zero-width-trigger-${g ? "right" : "left"}`),
348
+ style: $
349
+ }, r || /* @__PURE__ */ l.createElement(qe, null)) : null, V = C === "rtl" == !g, X = {
350
+ expanded: V ? /* @__PURE__ */ l.createElement(ie, null) : /* @__PURE__ */ l.createElement(ve, null),
351
+ collapsed: V ? /* @__PURE__ */ l.createElement(ve, null) : /* @__PURE__ */ l.createElement(ie, null)
352
+ }[x ? "collapsed" : "expanded"], q = r !== null ? W || /* @__PURE__ */ l.createElement("div", {
353
+ className: `${f}-trigger`,
354
+ onClick: H,
355
+ style: {
356
+ width: R
357
+ }
358
+ }, r || X) : null, G = Object.assign(Object.assign({}, s), {
359
+ flex: `0 0 ${R}`,
360
+ maxWidth: R,
361
+ minWidth: R,
362
+ width: R
363
+ }), me = P(f, `${f}-${d}`, {
364
+ [`${f}-collapsed`]: !!x,
365
+ [`${f}-has-trigger`]: p && r !== null && !W,
366
+ [`${f}-below`]: !!E,
367
+ [`${f}-zero-width`]: parseFloat(R) === 0
368
+ }, o, D, M), pe = l.useMemo(() => ({
369
+ siderCollapsed: x
370
+ }), [x]);
371
+ return j(/* @__PURE__ */ l.createElement(xe.Provider, {
372
+ value: pe
373
+ }, /* @__PURE__ */ l.createElement("aside", Object.assign({
374
+ className: me
375
+ }, L, {
376
+ style: G,
377
+ ref: n
378
+ }), /* @__PURE__ */ l.createElement("div", {
379
+ className: `${f}-children`
380
+ }, a), p || E && W ? q : null)));
381
+ });
382
+ process.env.NODE_ENV !== "production" && (Ut.displayName = "Sider");
383
+ const le = /* @__PURE__ */ tt({
384
+ prefixCls: "",
385
+ firstLevel: !0,
386
+ inlineCollapsed: !1
387
+ });
388
+ var Kt = function(e, n) {
389
+ var t = {};
390
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
391
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
392
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
393
+ return t;
394
+ };
395
+ const Ye = (e) => {
396
+ const {
397
+ prefixCls: n,
398
+ className: t,
399
+ dashed: o
400
+ } = e, r = Kt(e, ["prefixCls", "className", "dashed"]), {
401
+ getPrefixCls: a
402
+ } = l.useContext(Z), i = a("menu", n), d = P({
403
+ [`${i}-item-divider-dashed`]: !!o
404
+ }, t);
405
+ return /* @__PURE__ */ l.createElement(gt, Object.assign({
406
+ className: d
407
+ }, r));
408
+ }, Ue = (e) => {
409
+ var n;
410
+ const {
411
+ className: t,
412
+ children: o,
413
+ icon: r,
414
+ title: a,
415
+ danger: i,
416
+ extra: d
417
+ } = e, {
418
+ prefixCls: s,
419
+ firstLevel: p,
420
+ direction: g,
421
+ disableMenuItemTitleTooltip: S,
422
+ inlineCollapsed: u
423
+ } = l.useContext(le), $ = (x) => {
424
+ const b = o == null ? void 0 : o[0], E = /* @__PURE__ */ l.createElement("span", {
425
+ className: P(`${s}-title-content`, {
426
+ [`${s}-title-content-with-extra`]: !!d || d === 0
427
+ })
428
+ }, o);
429
+ return (!r || /* @__PURE__ */ l.isValidElement(o) && o.type === "span") && o && x && p && typeof b == "string" ? /* @__PURE__ */ l.createElement("div", {
430
+ className: `${s}-inline-collapsed-noicon`
431
+ }, b.charAt(0)) : E;
432
+ }, {
433
+ siderCollapsed: c
434
+ } = l.useContext(xe);
435
+ let m = a;
436
+ typeof a > "u" ? m = p ? o : "" : a === !1 && (m = "");
437
+ const v = {
438
+ title: m
439
+ };
440
+ !c && !u && (v.title = null, v.open = !1);
441
+ const I = ne(o).length;
442
+ let B = /* @__PURE__ */ l.createElement(ft, Object.assign({}, Q(e, ["title", "icon", "danger"]), {
443
+ className: P({
444
+ [`${s}-item-danger`]: i,
445
+ [`${s}-item-only-child`]: (r ? I + 1 : I) === 1
446
+ }, t),
447
+ title: typeof a == "string" ? a : void 0
448
+ }), ee(r, {
449
+ className: P(/* @__PURE__ */ l.isValidElement(r) ? (n = r.props) === null || n === void 0 ? void 0 : n.className : "", `${s}-item-icon`)
450
+ }), $(u));
451
+ return S || (B = /* @__PURE__ */ l.createElement(xt, Object.assign({}, v, {
452
+ placement: g === "rtl" ? "left" : "right",
453
+ classNames: {
454
+ root: `${s}-inline-collapsed-tooltip`
455
+ }
456
+ }), B)), B;
457
+ };
458
+ var Zt = function(e, n) {
459
+ var t = {};
460
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
461
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
462
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
463
+ return t;
464
+ };
465
+ const ae = /* @__PURE__ */ l.createContext(null), Jt = /* @__PURE__ */ l.forwardRef((e, n) => {
466
+ const {
467
+ children: t
468
+ } = e, o = Zt(e, ["children"]), r = l.useContext(ae), a = l.useMemo(() => Object.assign(Object.assign({}, r), o), [
469
+ r,
470
+ o.prefixCls,
471
+ // restProps.expandIcon, Not mark as deps since this is a ReactNode
472
+ o.mode,
473
+ o.selectable,
474
+ o.rootClassName
475
+ // restProps.validator, Not mark as deps since this is a function
476
+ ]), i = it(t), d = lt(n, i ? at(t) : null);
477
+ return /* @__PURE__ */ l.createElement(ae.Provider, {
478
+ value: a
479
+ }, /* @__PURE__ */ l.createElement(Nt, {
480
+ space: !0
481
+ }, i ? /* @__PURE__ */ l.cloneElement(t, {
482
+ ref: d
483
+ }) : t));
484
+ }), Qt = (e) => {
485
+ const {
486
+ componentCls: n,
487
+ motionDurationSlow: t,
488
+ horizontalLineHeight: o,
489
+ colorSplit: r,
490
+ lineWidth: a,
491
+ lineType: i,
492
+ itemPaddingInline: d
493
+ } = e;
494
+ return {
495
+ [`${n}-horizontal`]: {
496
+ lineHeight: o,
497
+ border: 0,
498
+ borderBottom: `${h(a)} ${i} ${r}`,
499
+ boxShadow: "none",
500
+ "&::after": {
501
+ display: "block",
502
+ clear: "both",
503
+ height: 0,
504
+ content: '"\\20"'
505
+ },
506
+ // ======================= Item =======================
507
+ [`${n}-item, ${n}-submenu`]: {
508
+ position: "relative",
509
+ display: "inline-block",
510
+ verticalAlign: "bottom",
511
+ paddingInline: d
512
+ },
513
+ [`> ${n}-item:hover,
514
+ > ${n}-item-active,
515
+ > ${n}-submenu ${n}-submenu-title:hover`]: {
516
+ backgroundColor: "transparent"
517
+ },
518
+ [`${n}-item, ${n}-submenu-title`]: {
519
+ transition: [`border-color ${t}`, `background ${t}`].join(",")
520
+ },
521
+ // ===================== Sub Menu =====================
522
+ [`${n}-submenu-arrow`]: {
523
+ display: "none"
524
+ }
525
+ }
526
+ };
527
+ }, en = (e) => {
528
+ let {
529
+ componentCls: n,
530
+ menuArrowOffset: t,
531
+ calc: o
532
+ } = e;
533
+ return {
534
+ [`${n}-rtl`]: {
535
+ direction: "rtl"
536
+ },
537
+ [`${n}-submenu-rtl`]: {
538
+ transformOrigin: "100% 0"
539
+ },
540
+ // Vertical Arrow
541
+ [`${n}-rtl${n}-vertical,
542
+ ${n}-submenu-rtl ${n}-vertical`]: {
543
+ [`${n}-submenu-arrow`]: {
544
+ "&::before": {
545
+ transform: `rotate(-45deg) translateY(${h(o(t).mul(-1).equal())})`
546
+ },
547
+ "&::after": {
548
+ transform: `rotate(45deg) translateY(${h(t)})`
549
+ }
550
+ }
551
+ }
552
+ };
553
+ }, ze = (e) => Object.assign({}, st(e)), Te = (e, n) => {
554
+ const {
555
+ componentCls: t,
556
+ itemColor: o,
557
+ itemSelectedColor: r,
558
+ subMenuItemSelectedColor: a,
559
+ groupTitleColor: i,
560
+ itemBg: d,
561
+ subMenuItemBg: s,
562
+ itemSelectedBg: p,
563
+ activeBarHeight: g,
564
+ activeBarWidth: S,
565
+ activeBarBorderWidth: u,
566
+ motionDurationSlow: $,
567
+ motionEaseInOut: c,
568
+ motionEaseOut: m,
569
+ itemPaddingInline: v,
570
+ motionDurationMid: I,
571
+ itemHoverColor: B,
572
+ lineType: x,
573
+ colorSplit: b,
574
+ // Disabled
575
+ itemDisabledColor: E,
576
+ // Danger
577
+ dangerItemColor: N,
578
+ dangerItemHoverColor: _,
579
+ dangerItemSelectedColor: w,
580
+ dangerItemActiveBg: C,
581
+ dangerItemSelectedBg: f,
582
+ // Bg
583
+ popupBg: j,
584
+ itemHoverBg: D,
585
+ itemActiveBg: M,
586
+ menuSubMenuBg: y,
587
+ // Horizontal
588
+ horizontalItemSelectedColor: H,
589
+ horizontalItemSelectedBg: L,
590
+ horizontalItemBorderRadius: k,
591
+ horizontalItemHoverBg: R
592
+ } = e;
593
+ return {
594
+ [`${t}-${n}, ${t}-${n} > ${t}`]: {
595
+ color: o,
596
+ background: d,
597
+ [`&${t}-root:focus-visible`]: Object.assign({}, ze(e)),
598
+ // ======================== Item ========================
599
+ [`${t}-item`]: {
600
+ "&-group-title, &-extra": {
601
+ color: i
602
+ }
603
+ },
604
+ [`${t}-submenu-selected > ${t}-submenu-title`]: {
605
+ color: a
606
+ },
607
+ [`${t}-item, ${t}-submenu-title`]: {
608
+ color: o,
609
+ [`&:not(${t}-item-disabled):focus-visible`]: Object.assign({}, ze(e))
610
+ },
611
+ // Disabled
612
+ [`${t}-item-disabled, ${t}-submenu-disabled`]: {
613
+ color: `${E} !important`
614
+ },
615
+ // Hover
616
+ [`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
617
+ [`&:hover, > ${t}-submenu-title:hover`]: {
618
+ color: B
619
+ }
620
+ },
621
+ [`&:not(${t}-horizontal)`]: {
622
+ [`${t}-item:not(${t}-item-selected)`]: {
623
+ "&:hover": {
624
+ backgroundColor: D
625
+ },
626
+ "&:active": {
627
+ backgroundColor: M
628
+ }
629
+ },
630
+ [`${t}-submenu-title`]: {
631
+ "&:hover": {
632
+ backgroundColor: D
633
+ },
634
+ "&:active": {
635
+ backgroundColor: M
636
+ }
637
+ }
638
+ },
639
+ // Danger - only Item has
640
+ [`${t}-item-danger`]: {
641
+ color: N,
642
+ [`&${t}-item:hover`]: {
643
+ [`&:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
644
+ color: _
645
+ }
646
+ },
647
+ [`&${t}-item:active`]: {
648
+ background: C
649
+ }
650
+ },
651
+ [`${t}-item a`]: {
652
+ "&, &:hover": {
653
+ color: "inherit"
654
+ }
655
+ },
656
+ [`${t}-item-selected`]: {
657
+ color: r,
658
+ // Danger
659
+ [`&${t}-item-danger`]: {
660
+ color: w
661
+ },
662
+ "a, a:hover": {
663
+ color: "inherit"
664
+ }
665
+ },
666
+ [`& ${t}-item-selected`]: {
667
+ backgroundColor: p,
668
+ // Danger
669
+ [`&${t}-item-danger`]: {
670
+ backgroundColor: f
671
+ }
672
+ },
673
+ [`&${t}-submenu > ${t}`]: {
674
+ backgroundColor: y
675
+ },
676
+ // ===== 设置浮层的颜色 =======
677
+ // !dark 模式会被popupBg 会被rest 为 darkPopupBg
678
+ [`&${t}-popup > ${t}`]: {
679
+ backgroundColor: j
680
+ },
681
+ [`&${t}-submenu-popup > ${t}`]: {
682
+ backgroundColor: j
683
+ },
684
+ // ===== 设置浮层的颜色 end =======
685
+ // ====================== Horizontal ======================
686
+ [`&${t}-horizontal`]: Object.assign(Object.assign({}, n === "dark" ? {
687
+ borderBottom: 0
688
+ } : {}), {
689
+ [`> ${t}-item, > ${t}-submenu`]: {
690
+ top: u,
691
+ marginTop: e.calc(u).mul(-1).equal(),
692
+ marginBottom: 0,
693
+ borderRadius: k,
694
+ "&::after": {
695
+ position: "absolute",
696
+ insetInline: v,
697
+ bottom: 0,
698
+ borderBottom: `${h(g)} solid transparent`,
699
+ transition: `border-color ${$} ${c}`,
700
+ content: '""'
701
+ },
702
+ "&:hover, &-active, &-open": {
703
+ background: R,
704
+ "&::after": {
705
+ borderBottomWidth: g,
706
+ borderBottomColor: H
707
+ }
708
+ },
709
+ "&-selected": {
710
+ color: H,
711
+ backgroundColor: L,
712
+ "&:hover": {
713
+ backgroundColor: L
714
+ },
715
+ "&::after": {
716
+ borderBottomWidth: g,
717
+ borderBottomColor: H
718
+ }
719
+ }
720
+ }
721
+ }),
722
+ // ================== Inline & Vertical ===================
723
+ //
724
+ [`&${t}-root`]: {
725
+ [`&${t}-inline, &${t}-vertical`]: {
726
+ borderInlineEnd: `${h(u)} ${x} ${b}`
727
+ }
728
+ },
729
+ // ======================== Inline ========================
730
+ [`&${t}-inline`]: {
731
+ // Sub
732
+ [`${t}-sub${t}-inline`]: {
733
+ background: s
734
+ },
735
+ [`${t}-item`]: {
736
+ position: "relative",
737
+ "&::after": {
738
+ position: "absolute",
739
+ insetBlock: 0,
740
+ insetInlineEnd: 0,
741
+ borderInlineEnd: `${h(S)} solid ${r}`,
742
+ transform: "scaleY(0.0001)",
743
+ opacity: 0,
744
+ transition: [`transform ${I} ${m}`, `opacity ${I} ${m}`].join(","),
745
+ content: '""'
746
+ },
747
+ // Danger
748
+ [`&${t}-item-danger`]: {
749
+ "&::after": {
750
+ borderInlineEndColor: w
751
+ }
752
+ }
753
+ },
754
+ [`${t}-selected, ${t}-item-selected`]: {
755
+ "&::after": {
756
+ transform: "scaleY(1)",
757
+ opacity: 1,
758
+ transition: [`transform ${I} ${c}`, `opacity ${I} ${c}`].join(",")
759
+ }
760
+ }
761
+ }
762
+ }
763
+ };
764
+ }, Pe = (e) => {
765
+ const {
766
+ componentCls: n,
767
+ itemHeight: t,
768
+ itemMarginInline: o,
769
+ padding: r,
770
+ menuArrowSize: a,
771
+ marginXS: i,
772
+ itemMarginBlock: d,
773
+ itemWidth: s,
774
+ itemPaddingInline: p
775
+ } = e, g = e.calc(a).add(r).add(i).equal();
776
+ return {
777
+ [`${n}-item`]: {
778
+ position: "relative",
779
+ overflow: "hidden"
780
+ },
781
+ [`${n}-item, ${n}-submenu-title`]: {
782
+ height: t,
783
+ lineHeight: h(t),
784
+ paddingInline: p,
785
+ overflow: "hidden",
786
+ textOverflow: "ellipsis",
787
+ marginInline: o,
788
+ marginBlock: d,
789
+ width: s
790
+ },
791
+ [`> ${n}-item,
792
+ > ${n}-submenu > ${n}-submenu-title`]: {
793
+ height: t,
794
+ lineHeight: h(t)
795
+ },
796
+ [`${n}-item-group-list ${n}-submenu-title,
797
+ ${n}-submenu-title`]: {
798
+ paddingInlineEnd: g
799
+ }
800
+ };
801
+ }, tn = (e) => {
802
+ const {
803
+ componentCls: n,
804
+ iconCls: t,
805
+ itemHeight: o,
806
+ colorTextLightSolid: r,
807
+ dropdownWidth: a,
808
+ controlHeightLG: i,
809
+ motionEaseOut: d,
810
+ paddingXL: s,
811
+ itemMarginInline: p,
812
+ fontSizeLG: g,
813
+ motionDurationFast: S,
814
+ motionDurationSlow: u,
815
+ paddingXS: $,
816
+ boxShadowSecondary: c,
817
+ collapsedWidth: m,
818
+ collapsedIconSize: v
819
+ } = e, I = {
820
+ height: o,
821
+ lineHeight: h(o),
822
+ listStylePosition: "inside",
823
+ listStyleType: "disc"
824
+ };
825
+ return [
826
+ {
827
+ [n]: {
828
+ "&-inline, &-vertical": Object.assign({
829
+ [`&${n}-root`]: {
830
+ boxShadow: "none"
831
+ }
832
+ }, Pe(e))
833
+ },
834
+ [`${n}-submenu-popup`]: {
835
+ [`${n}-vertical`]: Object.assign(Object.assign({}, Pe(e)), {
836
+ boxShadow: c
837
+ })
838
+ }
839
+ },
840
+ // Vertical only
841
+ {
842
+ [`${n}-submenu-popup ${n}-vertical${n}-sub`]: {
843
+ minWidth: a,
844
+ maxHeight: `calc(100vh - ${h(e.calc(i).mul(2.5).equal())})`,
845
+ padding: "0",
846
+ overflow: "hidden",
847
+ borderInlineEnd: 0,
848
+ // https://github.com/ant-design/ant-design/issues/22244
849
+ // https://github.com/ant-design/ant-design/issues/26812
850
+ "&:not([class*='-active'])": {
851
+ overflowX: "hidden",
852
+ overflowY: "auto"
853
+ }
854
+ }
855
+ },
856
+ // Inline Only
857
+ {
858
+ [`${n}-inline`]: {
859
+ width: "100%",
860
+ // Motion enhance for first level
861
+ [`&${n}-root`]: {
862
+ [`${n}-item, ${n}-submenu-title`]: {
863
+ display: "flex",
864
+ alignItems: "center",
865
+ transition: [`border-color ${u}`, `background ${u}`, `padding ${S} ${d}`].join(","),
866
+ [`> ${n}-title-content`]: {
867
+ flex: "auto",
868
+ minWidth: 0,
869
+ overflow: "hidden",
870
+ textOverflow: "ellipsis"
871
+ },
872
+ "> *": {
873
+ flex: "none"
874
+ }
875
+ }
876
+ },
877
+ // >>>>> Sub
878
+ [`${n}-sub${n}-inline`]: {
879
+ padding: 0,
880
+ border: 0,
881
+ borderRadius: 0,
882
+ boxShadow: "none",
883
+ [`& > ${n}-submenu > ${n}-submenu-title`]: I,
884
+ [`& ${n}-item-group-title`]: {
885
+ paddingInlineStart: s
886
+ }
887
+ },
888
+ // >>>>> Item
889
+ [`${n}-item`]: I
890
+ }
891
+ },
892
+ // Inline Collapse Only
893
+ {
894
+ [`${n}-inline-collapsed`]: {
895
+ width: m,
896
+ [`&${n}-root`]: {
897
+ [`${n}-item, ${n}-submenu ${n}-submenu-title`]: {
898
+ [`> ${n}-inline-collapsed-noicon`]: {
899
+ fontSize: g,
900
+ textAlign: "center"
901
+ }
902
+ }
903
+ },
904
+ [`> ${n}-item,
905
+ > ${n}-item-group > ${n}-item-group-list > ${n}-item,
906
+ > ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
907
+ > ${n}-submenu > ${n}-submenu-title`]: {
908
+ insetInlineStart: 0,
909
+ paddingInline: `calc(50% - ${h(e.calc(v).div(2).equal())} - ${h(p)})`,
910
+ textOverflow: "clip",
911
+ [`
912
+ ${n}-submenu-arrow,
913
+ ${n}-submenu-expand-icon
914
+ `]: {
915
+ opacity: 0
916
+ },
917
+ [`${n}-item-icon, ${t}`]: {
918
+ margin: 0,
919
+ fontSize: v,
920
+ lineHeight: h(o),
921
+ "+ span": {
922
+ display: "inline-block",
923
+ opacity: 0
924
+ }
925
+ }
926
+ },
927
+ [`${n}-item-icon, ${t}`]: {
928
+ display: "inline-block"
929
+ },
930
+ "&-tooltip": {
931
+ pointerEvents: "none",
932
+ [`${n}-item-icon, ${t}`]: {
933
+ display: "none"
934
+ },
935
+ "a, a:hover": {
936
+ color: r
937
+ }
938
+ },
939
+ [`${n}-item-group-title`]: Object.assign(Object.assign({}, dt), {
940
+ paddingInline: $
941
+ })
942
+ }
943
+ }
944
+ ];
945
+ }, He = (e) => {
946
+ const {
947
+ componentCls: n,
948
+ motionDurationSlow: t,
949
+ motionDurationMid: o,
950
+ motionEaseInOut: r,
951
+ motionEaseOut: a,
952
+ iconCls: i,
953
+ iconSize: d,
954
+ iconMarginInlineEnd: s
955
+ } = e;
956
+ return {
957
+ // >>>>> Item
958
+ [`${n}-item, ${n}-submenu-title`]: {
959
+ position: "relative",
960
+ display: "block",
961
+ margin: 0,
962
+ whiteSpace: "nowrap",
963
+ cursor: "pointer",
964
+ transition: [`border-color ${t}`, `background ${t}`, `padding calc(${t} + 0.1s) ${r}`].join(","),
965
+ [`${n}-item-icon, ${i}`]: {
966
+ minWidth: d,
967
+ fontSize: d,
968
+ transition: [`font-size ${o} ${a}`, `margin ${t} ${r}`, `color ${t}`].join(","),
969
+ "+ span": {
970
+ marginInlineStart: s,
971
+ opacity: 1,
972
+ transition: [`opacity ${t} ${r}`, `margin ${t}`, `color ${t}`].join(",")
973
+ }
974
+ },
975
+ [`${n}-item-icon`]: Object.assign({}, ct()),
976
+ [`&${n}-item-only-child`]: {
977
+ [`> ${i}, > ${n}-item-icon`]: {
978
+ marginInlineEnd: 0
979
+ }
980
+ }
981
+ },
982
+ // Disabled state sets text to gray and nukes hover/tab effects
983
+ [`${n}-item-disabled, ${n}-submenu-disabled`]: {
984
+ background: "none !important",
985
+ cursor: "not-allowed",
986
+ "&::after": {
987
+ borderColor: "transparent !important"
988
+ },
989
+ a: {
990
+ color: "inherit !important",
991
+ cursor: "not-allowed",
992
+ pointerEvents: "none"
993
+ },
994
+ [`> ${n}-submenu-title`]: {
995
+ color: "inherit !important",
996
+ cursor: "not-allowed"
997
+ }
998
+ }
999
+ };
1000
+ }, De = (e) => {
1001
+ const {
1002
+ componentCls: n,
1003
+ motionDurationSlow: t,
1004
+ motionEaseInOut: o,
1005
+ borderRadius: r,
1006
+ menuArrowSize: a,
1007
+ menuArrowOffset: i
1008
+ } = e;
1009
+ return {
1010
+ [`${n}-submenu`]: {
1011
+ "&-expand-icon, &-arrow": {
1012
+ position: "absolute",
1013
+ top: "50%",
1014
+ insetInlineEnd: e.margin,
1015
+ width: a,
1016
+ color: "currentcolor",
1017
+ transform: "translateY(-50%)",
1018
+ transition: `transform ${t} ${o}, opacity ${t}`
1019
+ },
1020
+ "&-arrow": {
1021
+ // →
1022
+ "&::before, &::after": {
1023
+ position: "absolute",
1024
+ width: e.calc(a).mul(0.6).equal(),
1025
+ height: e.calc(a).mul(0.15).equal(),
1026
+ backgroundColor: "currentcolor",
1027
+ borderRadius: r,
1028
+ transition: [`background ${t} ${o}`, `transform ${t} ${o}`, `top ${t} ${o}`, `color ${t} ${o}`].join(","),
1029
+ content: '""'
1030
+ },
1031
+ "&::before": {
1032
+ transform: `rotate(45deg) translateY(${h(e.calc(i).mul(-1).equal())})`
1033
+ },
1034
+ "&::after": {
1035
+ transform: `rotate(-45deg) translateY(${h(i)})`
1036
+ }
1037
+ }
1038
+ }
1039
+ };
1040
+ }, nn = (e) => {
1041
+ const {
1042
+ antCls: n,
1043
+ componentCls: t,
1044
+ fontSize: o,
1045
+ motionDurationSlow: r,
1046
+ motionDurationMid: a,
1047
+ motionEaseInOut: i,
1048
+ paddingXS: d,
1049
+ padding: s,
1050
+ colorSplit: p,
1051
+ lineWidth: g,
1052
+ zIndexPopup: S,
1053
+ borderRadiusLG: u,
1054
+ subMenuItemBorderRadius: $,
1055
+ menuArrowSize: c,
1056
+ menuArrowOffset: m,
1057
+ lineType: v,
1058
+ groupTitleLineHeight: I,
1059
+ groupTitleFontSize: B
1060
+ } = e;
1061
+ return [
1062
+ // Misc
1063
+ {
1064
+ "": {
1065
+ [t]: Object.assign(Object.assign({}, Ee()), {
1066
+ // Hidden
1067
+ "&-hidden": {
1068
+ display: "none"
1069
+ }
1070
+ })
1071
+ },
1072
+ [`${t}-submenu-hidden`]: {
1073
+ display: "none"
1074
+ }
1075
+ },
1076
+ {
1077
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ie(e)), Ee()), {
1078
+ marginBottom: 0,
1079
+ paddingInlineStart: 0,
1080
+ // Override default ul/ol
1081
+ fontSize: o,
1082
+ lineHeight: 0,
1083
+ listStyle: "none",
1084
+ outline: "none",
1085
+ // Magic cubic here but smooth transition
1086
+ transition: `width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,
1087
+ "ul, ol": {
1088
+ margin: 0,
1089
+ padding: 0,
1090
+ listStyle: "none"
1091
+ },
1092
+ // Overflow ellipsis
1093
+ "&-overflow": {
1094
+ display: "flex",
1095
+ [`${t}-item`]: {
1096
+ flex: "none"
1097
+ }
1098
+ },
1099
+ [`${t}-item, ${t}-submenu, ${t}-submenu-title`]: {
1100
+ borderRadius: e.itemBorderRadius
1101
+ },
1102
+ [`${t}-item-group-title`]: {
1103
+ padding: `${h(d)} ${h(s)}`,
1104
+ fontSize: B,
1105
+ lineHeight: I,
1106
+ transition: `all ${r}`
1107
+ },
1108
+ [`&-horizontal ${t}-submenu`]: {
1109
+ transition: [`border-color ${r} ${i}`, `background ${r} ${i}`].join(",")
1110
+ },
1111
+ [`${t}-submenu, ${t}-submenu-inline`]: {
1112
+ transition: [`border-color ${r} ${i}`, `background ${r} ${i}`, `padding ${a} ${i}`].join(",")
1113
+ },
1114
+ [`${t}-submenu ${t}-sub`]: {
1115
+ cursor: "initial",
1116
+ transition: [`background ${r} ${i}`, `padding ${r} ${i}`].join(",")
1117
+ },
1118
+ [`${t}-title-content`]: {
1119
+ transition: `color ${r}`,
1120
+ "&-with-extra": {
1121
+ display: "inline-flex",
1122
+ alignItems: "center",
1123
+ width: "100%"
1124
+ },
1125
+ // https://github.com/ant-design/ant-design/issues/41143
1126
+ [`> ${n}-typography-ellipsis-single-line`]: {
1127
+ display: "inline",
1128
+ verticalAlign: "unset"
1129
+ },
1130
+ [`${t}-item-extra`]: {
1131
+ marginInlineStart: "auto",
1132
+ paddingInlineStart: e.padding
1133
+ }
1134
+ },
1135
+ [`${t}-item a`]: {
1136
+ "&::before": {
1137
+ position: "absolute",
1138
+ inset: 0,
1139
+ backgroundColor: "transparent",
1140
+ content: '""'
1141
+ }
1142
+ },
1143
+ // Removed a Badge related style seems it's safe
1144
+ // https://github.com/ant-design/ant-design/issues/19809
1145
+ // >>>>> Divider
1146
+ [`${t}-item-divider`]: {
1147
+ overflow: "hidden",
1148
+ lineHeight: 0,
1149
+ borderColor: p,
1150
+ borderStyle: v,
1151
+ borderWidth: 0,
1152
+ borderTopWidth: g,
1153
+ marginBlock: g,
1154
+ padding: 0,
1155
+ "&-dashed": {
1156
+ borderStyle: "dashed"
1157
+ }
1158
+ }
1159
+ }), He(e)), {
1160
+ [`${t}-item-group`]: {
1161
+ [`${t}-item-group-list`]: {
1162
+ margin: 0,
1163
+ padding: 0,
1164
+ [`${t}-item, ${t}-submenu-title`]: {
1165
+ paddingInline: `${h(e.calc(o).mul(2).equal())} ${h(s)}`
1166
+ }
1167
+ }
1168
+ },
1169
+ // ======================= Sub Menu =======================
1170
+ "&-submenu": {
1171
+ "&-popup": {
1172
+ position: "absolute",
1173
+ zIndex: S,
1174
+ borderRadius: u,
1175
+ boxShadow: "none",
1176
+ transformOrigin: "0 0",
1177
+ [`&${t}-submenu`]: {
1178
+ background: "transparent"
1179
+ },
1180
+ // https://github.com/ant-design/ant-design/issues/13955
1181
+ "&::before": {
1182
+ position: "absolute",
1183
+ inset: 0,
1184
+ zIndex: -1,
1185
+ width: "100%",
1186
+ height: "100%",
1187
+ opacity: 0,
1188
+ content: '""'
1189
+ },
1190
+ [`> ${t}`]: Object.assign(Object.assign(Object.assign({
1191
+ borderRadius: u
1192
+ }, He(e)), De(e)), {
1193
+ [`${t}-item, ${t}-submenu > ${t}-submenu-title`]: {
1194
+ borderRadius: $
1195
+ },
1196
+ [`${t}-submenu-title::after`]: {
1197
+ transition: `transform ${r} ${i}`
1198
+ }
1199
+ })
1200
+ },
1201
+ "\n &-placement-leftTop,\n &-placement-bottomRight,\n ": {
1202
+ transformOrigin: "100% 0"
1203
+ },
1204
+ "\n &-placement-leftBottom,\n &-placement-topRight,\n ": {
1205
+ transformOrigin: "100% 100%"
1206
+ },
1207
+ "\n &-placement-rightBottom,\n &-placement-topLeft,\n ": {
1208
+ transformOrigin: "0 100%"
1209
+ },
1210
+ "\n &-placement-bottomLeft,\n &-placement-rightTop,\n ": {
1211
+ transformOrigin: "0 0"
1212
+ },
1213
+ "\n &-placement-leftTop,\n &-placement-leftBottom\n ": {
1214
+ paddingInlineEnd: e.paddingXS
1215
+ },
1216
+ "\n &-placement-rightTop,\n &-placement-rightBottom\n ": {
1217
+ paddingInlineStart: e.paddingXS
1218
+ },
1219
+ "\n &-placement-topRight,\n &-placement-topLeft\n ": {
1220
+ paddingBottom: e.paddingXS
1221
+ },
1222
+ "\n &-placement-bottomRight,\n &-placement-bottomLeft\n ": {
1223
+ paddingTop: e.paddingXS
1224
+ }
1225
+ }
1226
+ }), De(e)), {
1227
+ [`&-inline-collapsed ${t}-submenu-arrow,
1228
+ &-inline ${t}-submenu-arrow`]: {
1229
+ // ↓
1230
+ "&::before": {
1231
+ transform: `rotate(-45deg) translateX(${h(m)})`
1232
+ },
1233
+ "&::after": {
1234
+ transform: `rotate(45deg) translateX(${h(e.calc(m).mul(-1).equal())})`
1235
+ }
1236
+ },
1237
+ [`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]: {
1238
+ // ↑
1239
+ transform: `translateY(${h(e.calc(c).mul(0.2).mul(-1).equal())})`,
1240
+ "&::after": {
1241
+ transform: `rotate(-45deg) translateX(${h(e.calc(m).mul(-1).equal())})`
1242
+ },
1243
+ "&::before": {
1244
+ transform: `rotate(45deg) translateX(${h(m)})`
1245
+ }
1246
+ }
1247
+ })
1248
+ },
1249
+ // Integration with header element so menu items have the same height
1250
+ {
1251
+ [`${n}-layout-header`]: {
1252
+ [t]: {
1253
+ lineHeight: "inherit"
1254
+ }
1255
+ }
1256
+ }
1257
+ ];
1258
+ }, on = (e) => {
1259
+ var n, t, o;
1260
+ const {
1261
+ colorPrimary: r,
1262
+ colorError: a,
1263
+ colorTextDisabled: i,
1264
+ colorErrorBg: d,
1265
+ colorText: s,
1266
+ colorTextDescription: p,
1267
+ colorBgContainer: g,
1268
+ colorFillAlter: S,
1269
+ colorFillContent: u,
1270
+ lineWidth: $,
1271
+ lineWidthBold: c,
1272
+ controlItemBgActive: m,
1273
+ colorBgTextHover: v,
1274
+ controlHeightLG: I,
1275
+ lineHeight: B,
1276
+ colorBgElevated: x,
1277
+ marginXXS: b,
1278
+ padding: E,
1279
+ fontSize: N,
1280
+ controlHeightSM: _,
1281
+ fontSizeLG: w,
1282
+ colorTextLightSolid: C,
1283
+ colorErrorHover: f
1284
+ } = e, j = (n = e.activeBarWidth) !== null && n !== void 0 ? n : 0, D = (t = e.activeBarBorderWidth) !== null && t !== void 0 ? t : $, M = (o = e.itemMarginInline) !== null && o !== void 0 ? o : e.marginXXS, y = new Be(C).setA(0.65).toRgbString();
1285
+ return {
1286
+ dropdownWidth: 160,
1287
+ zIndexPopup: e.zIndexPopupBase + 50,
1288
+ radiusItem: e.borderRadiusLG,
1289
+ itemBorderRadius: e.borderRadiusLG,
1290
+ radiusSubMenuItem: e.borderRadiusSM,
1291
+ subMenuItemBorderRadius: e.borderRadiusSM,
1292
+ colorItemText: s,
1293
+ itemColor: s,
1294
+ colorItemTextHover: s,
1295
+ itemHoverColor: s,
1296
+ colorItemTextHoverHorizontal: r,
1297
+ horizontalItemHoverColor: r,
1298
+ colorGroupTitle: p,
1299
+ groupTitleColor: p,
1300
+ colorItemTextSelected: r,
1301
+ itemSelectedColor: r,
1302
+ subMenuItemSelectedColor: r,
1303
+ colorItemTextSelectedHorizontal: r,
1304
+ horizontalItemSelectedColor: r,
1305
+ colorItemBg: g,
1306
+ itemBg: g,
1307
+ colorItemBgHover: v,
1308
+ itemHoverBg: v,
1309
+ colorItemBgActive: u,
1310
+ itemActiveBg: m,
1311
+ colorSubItemBg: S,
1312
+ subMenuItemBg: S,
1313
+ colorItemBgSelected: m,
1314
+ itemSelectedBg: m,
1315
+ colorItemBgSelectedHorizontal: "transparent",
1316
+ horizontalItemSelectedBg: "transparent",
1317
+ colorActiveBarWidth: 0,
1318
+ activeBarWidth: j,
1319
+ colorActiveBarHeight: c,
1320
+ activeBarHeight: c,
1321
+ colorActiveBarBorderSize: $,
1322
+ activeBarBorderWidth: D,
1323
+ // Disabled
1324
+ colorItemTextDisabled: i,
1325
+ itemDisabledColor: i,
1326
+ // Danger
1327
+ colorDangerItemText: a,
1328
+ dangerItemColor: a,
1329
+ colorDangerItemTextHover: a,
1330
+ dangerItemHoverColor: a,
1331
+ colorDangerItemTextSelected: a,
1332
+ dangerItemSelectedColor: a,
1333
+ colorDangerItemBgActive: d,
1334
+ dangerItemActiveBg: d,
1335
+ colorDangerItemBgSelected: d,
1336
+ dangerItemSelectedBg: d,
1337
+ itemMarginInline: M,
1338
+ horizontalItemBorderRadius: 0,
1339
+ horizontalItemHoverBg: "transparent",
1340
+ itemHeight: I,
1341
+ groupTitleLineHeight: B,
1342
+ collapsedWidth: I * 2,
1343
+ popupBg: x,
1344
+ itemMarginBlock: b,
1345
+ itemPaddingInline: E,
1346
+ horizontalLineHeight: `${I * 1.15}px`,
1347
+ iconSize: N,
1348
+ iconMarginInlineEnd: _ - N,
1349
+ collapsedIconSize: w,
1350
+ groupTitleFontSize: N,
1351
+ // Disabled
1352
+ darkItemDisabledColor: new Be(C).setA(0.25).toRgbString(),
1353
+ // Dark
1354
+ darkItemColor: y,
1355
+ darkDangerItemColor: a,
1356
+ darkItemBg: "#001529",
1357
+ darkPopupBg: "#001529",
1358
+ darkSubMenuItemBg: "#000c17",
1359
+ darkItemSelectedColor: C,
1360
+ darkItemSelectedBg: r,
1361
+ darkDangerItemSelectedBg: a,
1362
+ darkItemHoverBg: "transparent",
1363
+ darkGroupTitleColor: y,
1364
+ darkItemHoverColor: C,
1365
+ darkDangerItemHoverColor: f,
1366
+ darkDangerItemSelectedColor: C,
1367
+ darkDangerItemActiveBg: a,
1368
+ // internal
1369
+ itemWidth: j ? `calc(100% + ${D}px)` : `calc(100% - ${M * 2}px)`
1370
+ };
1371
+ }, rn = function(e) {
1372
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
1373
+ return te("Menu", (r) => {
1374
+ const {
1375
+ colorBgElevated: a,
1376
+ controlHeightLG: i,
1377
+ fontSize: d,
1378
+ darkItemColor: s,
1379
+ darkDangerItemColor: p,
1380
+ darkItemBg: g,
1381
+ darkSubMenuItemBg: S,
1382
+ darkItemSelectedColor: u,
1383
+ darkItemSelectedBg: $,
1384
+ darkDangerItemSelectedBg: c,
1385
+ darkItemHoverBg: m,
1386
+ darkGroupTitleColor: v,
1387
+ darkItemHoverColor: I,
1388
+ darkItemDisabledColor: B,
1389
+ darkDangerItemHoverColor: x,
1390
+ darkDangerItemSelectedColor: b,
1391
+ darkDangerItemActiveBg: E,
1392
+ popupBg: N,
1393
+ darkPopupBg: _
1394
+ } = r, w = r.calc(d).div(7).mul(5).equal(), C = oe(r, {
1395
+ menuArrowSize: w,
1396
+ menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
1397
+ menuArrowOffset: r.calc(w).mul(0.25).equal(),
1398
+ menuSubMenuBg: a,
1399
+ calc: r.calc,
1400
+ popupBg: N
1401
+ }), f = oe(C, {
1402
+ itemColor: s,
1403
+ itemHoverColor: I,
1404
+ groupTitleColor: v,
1405
+ itemSelectedColor: u,
1406
+ itemBg: g,
1407
+ popupBg: _,
1408
+ subMenuItemBg: S,
1409
+ itemActiveBg: "transparent",
1410
+ itemSelectedBg: $,
1411
+ activeBarHeight: 0,
1412
+ activeBarBorderWidth: 0,
1413
+ itemHoverBg: m,
1414
+ // Disabled
1415
+ itemDisabledColor: B,
1416
+ // Danger
1417
+ dangerItemColor: p,
1418
+ dangerItemHoverColor: x,
1419
+ dangerItemSelectedColor: b,
1420
+ dangerItemActiveBg: E,
1421
+ dangerItemSelectedBg: c,
1422
+ menuSubMenuBg: S,
1423
+ // Horizontal
1424
+ horizontalItemSelectedColor: u,
1425
+ horizontalItemSelectedBg: $
1426
+ });
1427
+ return [
1428
+ // Basic
1429
+ nn(C),
1430
+ // Horizontal
1431
+ Qt(C),
1432
+ // Hard code for some light style
1433
+ // Vertical
1434
+ tn(C),
1435
+ // Hard code for some light style
1436
+ // Theme
1437
+ Te(C, "light"),
1438
+ Te(f, "dark"),
1439
+ // RTL
1440
+ en(C),
1441
+ // Motion
1442
+ jt(C),
1443
+ re(C, "slide-up"),
1444
+ re(C, "slide-down"),
1445
+ Xe(C, "zoom-big")
1446
+ ];
1447
+ }, on, {
1448
+ deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
1449
+ // Dropdown will handle menu style self. We do not need to handle this.
1450
+ injectStyle: t,
1451
+ unitless: {
1452
+ groupTitleLineHeight: !0
1453
+ }
1454
+ })(e, n);
1455
+ }, Ke = (e) => {
1456
+ var n;
1457
+ const {
1458
+ popupClassName: t,
1459
+ icon: o,
1460
+ title: r,
1461
+ theme: a
1462
+ } = e, i = l.useContext(le), {
1463
+ prefixCls: d,
1464
+ inlineCollapsed: s,
1465
+ theme: p
1466
+ } = i, g = bt();
1467
+ let S;
1468
+ if (!o)
1469
+ S = s && !g.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
1470
+ className: `${d}-inline-collapsed-noicon`
1471
+ }, r.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
1472
+ className: `${d}-title-content`
1473
+ }, r);
1474
+ else {
1475
+ const c = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
1476
+ S = /* @__PURE__ */ l.createElement(l.Fragment, null, ee(o, {
1477
+ className: P(/* @__PURE__ */ l.isValidElement(o) ? (n = o.props) === null || n === void 0 ? void 0 : n.className : "", `${d}-item-icon`)
1478
+ }), c ? r : /* @__PURE__ */ l.createElement("span", {
1479
+ className: `${d}-title-content`
1480
+ }, r));
1481
+ }
1482
+ const u = l.useMemo(() => Object.assign(Object.assign({}, i), {
1483
+ firstLevel: !1
1484
+ }), [i]), [$] = We("Menu");
1485
+ return /* @__PURE__ */ l.createElement(le.Provider, {
1486
+ value: u
1487
+ }, /* @__PURE__ */ l.createElement($t, Object.assign({}, Q(e, ["icon"]), {
1488
+ title: S,
1489
+ popupClassName: P(d, t, `${d}-${a || p}`),
1490
+ popupStyle: Object.assign({
1491
+ zIndex: $
1492
+ }, e.popupStyle)
1493
+ })));
1494
+ };
1495
+ var ln = function(e, n) {
1496
+ var t = {};
1497
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1498
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
1499
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
1500
+ return t;
1501
+ };
1502
+ function $e(e) {
1503
+ return e === null || e === !1;
1504
+ }
1505
+ const an = {
1506
+ item: Ue,
1507
+ submenu: Ke,
1508
+ divider: Ye
1509
+ }, sn = /* @__PURE__ */ Ae((e, n) => {
1510
+ var t;
1511
+ const o = l.useContext(ae), r = o || {}, {
1512
+ getPrefixCls: a,
1513
+ getPopupContainer: i,
1514
+ direction: d,
1515
+ menu: s
1516
+ } = l.useContext(Z), p = a(), {
1517
+ prefixCls: g,
1518
+ className: S,
1519
+ style: u,
1520
+ theme: $ = "light",
1521
+ expandIcon: c,
1522
+ _internalDisableMenuItemTitleTooltip: m,
1523
+ inlineCollapsed: v,
1524
+ siderCollapsed: I,
1525
+ rootClassName: B,
1526
+ mode: x,
1527
+ selectable: b,
1528
+ onClick: E,
1529
+ overflowedIndicatorPopupClassName: N
1530
+ } = e, _ = ln(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), w = Q(_, ["collapsedWidth"]);
1531
+ if (process.env.NODE_ENV !== "production") {
1532
+ const z = se("Menu");
1533
+ process.env.NODE_ENV !== "production" && z(!("inlineCollapsed" in e && x !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), z.deprecated("items" in e && !e.children, "children", "items");
1534
+ }
1535
+ (t = r.validator) === null || t === void 0 || t.call(r, {
1536
+ mode: x
1537
+ });
1538
+ const C = ke(function() {
1539
+ var z;
1540
+ E == null || E.apply(void 0, arguments), (z = r.onClick) === null || z === void 0 || z.call(r);
1541
+ }), f = r.mode || x, j = b ?? r.selectable, D = v ?? I, M = {
1542
+ horizontal: {
1543
+ motionName: `${p}-slide-up`
1544
+ },
1545
+ inline: It(p),
1546
+ other: {
1547
+ motionName: `${p}-zoom-big`
1548
+ }
1549
+ }, y = a("menu", g || r.prefixCls), H = Ve(y), [L, k, R] = rn(y, H, !o), W = P(`${y}-${$}`, s == null ? void 0 : s.className, S), V = l.useMemo(() => {
1550
+ var z, X;
1551
+ if (typeof c == "function" || $e(c))
1552
+ return c || null;
1553
+ if (typeof r.expandIcon == "function" || $e(r.expandIcon))
1554
+ return r.expandIcon || null;
1555
+ if (typeof (s == null ? void 0 : s.expandIcon) == "function" || $e(s == null ? void 0 : s.expandIcon))
1556
+ return (s == null ? void 0 : s.expandIcon) || null;
1557
+ const q = (z = c ?? (r == null ? void 0 : r.expandIcon)) !== null && z !== void 0 ? z : s == null ? void 0 : s.expandIcon;
1558
+ return ee(q, {
1559
+ className: P(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (X = q.props) === null || X === void 0 ? void 0 : X.className : void 0)
1560
+ });
1561
+ }, [c, r == null ? void 0 : r.expandIcon, s == null ? void 0 : s.expandIcon, y]), F = l.useMemo(() => ({
1562
+ prefixCls: y,
1563
+ inlineCollapsed: D || !1,
1564
+ direction: d,
1565
+ firstLevel: !0,
1566
+ theme: $,
1567
+ mode: f,
1568
+ disableMenuItemTitleTooltip: m
1569
+ }), [y, D, d, m, $]);
1570
+ return L(/* @__PURE__ */ l.createElement(ae.Provider, {
1571
+ value: null
1572
+ }, /* @__PURE__ */ l.createElement(le.Provider, {
1573
+ value: F
1574
+ }, /* @__PURE__ */ l.createElement(ht, Object.assign({
1575
+ getPopupContainer: i,
1576
+ overflowedIndicator: /* @__PURE__ */ l.createElement(vt, null),
1577
+ overflowedIndicatorPopupClassName: P(y, `${y}-${$}`, N),
1578
+ mode: f,
1579
+ selectable: j,
1580
+ onClick: C
1581
+ }, w, {
1582
+ inlineCollapsed: D,
1583
+ style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), u),
1584
+ className: W,
1585
+ prefixCls: y,
1586
+ direction: d,
1587
+ defaultMotions: M,
1588
+ expandIcon: V,
1589
+ ref: n,
1590
+ rootClassName: P(B, k, r.rootClassName, R, H),
1591
+ _internalComponents: an
1592
+ })))));
1593
+ }), J = /* @__PURE__ */ Ae((e, n) => {
1594
+ const t = _e(null), o = l.useContext(xe);
1595
+ return nt(n, () => ({
1596
+ menu: t.current,
1597
+ focus: (r) => {
1598
+ var a;
1599
+ (a = t.current) === null || a === void 0 || a.focus(r);
1600
+ }
1601
+ })), /* @__PURE__ */ l.createElement(sn, Object.assign({
1602
+ ref: t
1603
+ }, e, o));
1604
+ });
1605
+ J.Item = Ue;
1606
+ J.SubMenu = Ke;
1607
+ J.Divider = Ye;
1608
+ J.ItemGroup = Ct;
1609
+ process.env.NODE_ENV !== "production" && (J.displayName = "Menu");
1610
+ const dn = (e) => {
1611
+ const {
1612
+ componentCls: n,
1613
+ menuCls: t,
1614
+ colorError: o,
1615
+ colorTextLightSolid: r
1616
+ } = e, a = `${t}-item`;
1617
+ return {
1618
+ [`${n}, ${n}-menu-submenu`]: {
1619
+ [`${t} ${a}`]: {
1620
+ [`&${a}-danger:not(${a}-disabled)`]: {
1621
+ color: o,
1622
+ "&:hover": {
1623
+ color: r,
1624
+ backgroundColor: o
1625
+ }
1626
+ }
1627
+ }
1628
+ }
1629
+ };
1630
+ }, cn = (e) => {
1631
+ const {
1632
+ componentCls: n,
1633
+ menuCls: t,
1634
+ zIndexPopup: o,
1635
+ dropdownArrowDistance: r,
1636
+ sizePopupArrow: a,
1637
+ antCls: i,
1638
+ iconCls: d,
1639
+ motionDurationMid: s,
1640
+ paddingBlock: p,
1641
+ fontSize: g,
1642
+ dropdownEdgeChildPadding: S,
1643
+ colorTextDisabled: u,
1644
+ fontSizeIcon: $,
1645
+ controlPaddingHorizontal: c,
1646
+ colorBgElevated: m
1647
+ } = e;
1648
+ return [
1649
+ {
1650
+ [n]: {
1651
+ position: "absolute",
1652
+ top: -9999,
1653
+ left: {
1654
+ _skip_check_: !0,
1655
+ value: -9999
1656
+ },
1657
+ zIndex: o,
1658
+ display: "block",
1659
+ // A placeholder out of dropdown visible range to avoid close when user moving
1660
+ "&::before": {
1661
+ position: "absolute",
1662
+ insetBlock: e.calc(a).div(2).sub(r).equal(),
1663
+ // insetInlineStart: -7, // FIXME: Seems not work for hidden element
1664
+ zIndex: -9999,
1665
+ opacity: 1e-4,
1666
+ content: '""'
1667
+ },
1668
+ // Makes vertical dropdowns have a scrollbar once they become taller than the viewport.
1669
+ "&-menu-vertical": {
1670
+ maxHeight: "100vh",
1671
+ overflowY: "auto"
1672
+ },
1673
+ [`&-trigger${i}-btn`]: {
1674
+ [`& > ${d}-down, & > ${i}-btn-icon > ${d}-down`]: {
1675
+ fontSize: $
1676
+ }
1677
+ },
1678
+ [`${n}-wrap`]: {
1679
+ position: "relative",
1680
+ [`${i}-btn > ${d}-down`]: {
1681
+ fontSize: $
1682
+ },
1683
+ [`${d}-down::before`]: {
1684
+ transition: `transform ${s}`
1685
+ }
1686
+ },
1687
+ [`${n}-wrap-open`]: {
1688
+ [`${d}-down::before`]: {
1689
+ transform: "rotate(180deg)"
1690
+ }
1691
+ },
1692
+ "\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ": {
1693
+ display: "none"
1694
+ },
1695
+ // =============================================================
1696
+ // == Motion ==
1697
+ // =============================================================
1698
+ // When position is not enough for dropdown, the placement will revert.
1699
+ // We will handle this with revert motion name.
1700
+ [`&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomLeft,
1701
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomLeft,
1702
+ &${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottom,
1703
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottom,
1704
+ &${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomRight,
1705
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomRight`]: {
1706
+ animationName: zt
1707
+ },
1708
+ [`&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topLeft,
1709
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topLeft,
1710
+ &${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-top,
1711
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-top,
1712
+ &${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topRight,
1713
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topRight`]: {
1714
+ animationName: Tt
1715
+ },
1716
+ [`&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomLeft,
1717
+ &${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottom,
1718
+ &${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomRight`]: {
1719
+ animationName: Pt
1720
+ },
1721
+ [`&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topLeft,
1722
+ &${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-top,
1723
+ &${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topRight`]: {
1724
+ animationName: Ht
1725
+ }
1726
+ }
1727
+ },
1728
+ // =============================================================
1729
+ // == Arrow style ==
1730
+ // =============================================================
1731
+ wt(e, m, {
1732
+ arrowPlacement: {
1733
+ top: !0,
1734
+ bottom: !0
1735
+ }
1736
+ }),
1737
+ {
1738
+ // =============================================================
1739
+ // == Menu ==
1740
+ // =============================================================
1741
+ [`${n} ${t}`]: {
1742
+ position: "relative",
1743
+ margin: 0
1744
+ },
1745
+ [`${t}-submenu-popup`]: {
1746
+ position: "absolute",
1747
+ zIndex: o,
1748
+ background: "transparent",
1749
+ boxShadow: "none",
1750
+ transformOrigin: "0 0",
1751
+ "ul, li": {
1752
+ listStyle: "none",
1753
+ margin: 0
1754
+ }
1755
+ },
1756
+ [`${n}, ${n}-menu-submenu`]: Object.assign(Object.assign({}, Ie(e)), {
1757
+ [t]: Object.assign(Object.assign({
1758
+ padding: S,
1759
+ listStyleType: "none",
1760
+ backgroundColor: m,
1761
+ backgroundClip: "padding-box",
1762
+ borderRadius: e.borderRadiusLG,
1763
+ outline: "none",
1764
+ boxShadow: e.boxShadowSecondary
1765
+ }, he(e)), {
1766
+ "&:empty": {
1767
+ padding: 0,
1768
+ boxShadow: "none"
1769
+ },
1770
+ [`${t}-item-group-title`]: {
1771
+ padding: `${h(p)} ${h(c)}`,
1772
+ color: e.colorTextDescription,
1773
+ transition: `all ${s}`
1774
+ },
1775
+ // ======================= Item Content =======================
1776
+ [`${t}-item`]: {
1777
+ position: "relative",
1778
+ display: "flex",
1779
+ alignItems: "center"
1780
+ },
1781
+ [`${t}-item-icon`]: {
1782
+ minWidth: g,
1783
+ marginInlineEnd: e.marginXS,
1784
+ fontSize: e.fontSizeSM
1785
+ },
1786
+ [`${t}-title-content`]: {
1787
+ flex: "auto",
1788
+ "&-with-extra": {
1789
+ display: "inline-flex",
1790
+ alignItems: "center",
1791
+ width: "100%"
1792
+ },
1793
+ "> a": {
1794
+ color: "inherit",
1795
+ transition: `all ${s}`,
1796
+ "&:hover": {
1797
+ color: "inherit"
1798
+ },
1799
+ "&::after": {
1800
+ position: "absolute",
1801
+ inset: 0,
1802
+ content: '""'
1803
+ }
1804
+ },
1805
+ [`${t}-item-extra`]: {
1806
+ paddingInlineStart: e.padding,
1807
+ marginInlineStart: "auto",
1808
+ fontSize: e.fontSizeSM,
1809
+ color: e.colorTextDescription
1810
+ }
1811
+ },
1812
+ // =========================== Item ===========================
1813
+ [`${t}-item, ${t}-submenu-title`]: Object.assign(Object.assign({
1814
+ display: "flex",
1815
+ margin: 0,
1816
+ padding: `${h(p)} ${h(c)}`,
1817
+ color: e.colorText,
1818
+ fontWeight: "normal",
1819
+ fontSize: g,
1820
+ lineHeight: e.lineHeight,
1821
+ cursor: "pointer",
1822
+ transition: `all ${s}`,
1823
+ borderRadius: e.borderRadiusSM,
1824
+ "&:hover, &-active": {
1825
+ backgroundColor: e.controlItemBgHover
1826
+ }
1827
+ }, he(e)), {
1828
+ "&-selected": {
1829
+ color: e.colorPrimary,
1830
+ backgroundColor: e.controlItemBgActive,
1831
+ "&:hover, &-active": {
1832
+ backgroundColor: e.controlItemBgActiveHover
1833
+ }
1834
+ },
1835
+ "&-disabled": {
1836
+ color: u,
1837
+ cursor: "not-allowed",
1838
+ "&:hover": {
1839
+ color: u,
1840
+ backgroundColor: m,
1841
+ cursor: "not-allowed"
1842
+ },
1843
+ a: {
1844
+ pointerEvents: "none"
1845
+ }
1846
+ },
1847
+ "&-divider": {
1848
+ height: 1,
1849
+ // By design
1850
+ margin: `${h(e.marginXXS)} 0`,
1851
+ overflow: "hidden",
1852
+ lineHeight: 0,
1853
+ backgroundColor: e.colorSplit
1854
+ },
1855
+ [`${n}-menu-submenu-expand-icon`]: {
1856
+ position: "absolute",
1857
+ insetInlineEnd: e.paddingXS,
1858
+ [`${n}-menu-submenu-arrow-icon`]: {
1859
+ marginInlineEnd: "0 !important",
1860
+ color: e.colorTextDescription,
1861
+ fontSize: $,
1862
+ fontStyle: "normal"
1863
+ }
1864
+ }
1865
+ }),
1866
+ [`${t}-item-group-list`]: {
1867
+ margin: `0 ${h(e.marginXS)}`,
1868
+ padding: 0,
1869
+ listStyle: "none"
1870
+ },
1871
+ [`${t}-submenu-title`]: {
1872
+ paddingInlineEnd: e.calc(c).add(e.fontSizeSM).equal()
1873
+ },
1874
+ [`${t}-submenu-vertical`]: {
1875
+ position: "relative"
1876
+ },
1877
+ [`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]: {
1878
+ [`&, ${n}-menu-submenu-arrow-icon`]: {
1879
+ color: u,
1880
+ backgroundColor: m,
1881
+ cursor: "not-allowed"
1882
+ }
1883
+ },
1884
+ // https://github.com/ant-design/ant-design/issues/19264
1885
+ [`${t}-submenu-selected ${n}-menu-submenu-title`]: {
1886
+ color: e.colorPrimary
1887
+ }
1888
+ })
1889
+ })
1890
+ },
1891
+ // Follow code may reuse in other components
1892
+ [re(e, "slide-up"), re(e, "slide-down"), Ne(e, "move-up"), Ne(e, "move-down"), Xe(e, "zoom-big")]
1893
+ ];
1894
+ }, un = (e) => Object.assign(Object.assign({
1895
+ zIndexPopup: e.zIndexPopupBase + 50,
1896
+ paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
1897
+ }, Ot({
1898
+ contentRadius: e.borderRadiusLG,
1899
+ limitVerticalRadius: !0
1900
+ })), Bt(e)), mn = te("Dropdown", (e) => {
1901
+ const {
1902
+ marginXXS: n,
1903
+ sizePopupArrow: t,
1904
+ paddingXXS: o,
1905
+ componentCls: r
1906
+ } = e, a = oe(e, {
1907
+ menuCls: `${r}-menu`,
1908
+ dropdownArrowDistance: e.calc(t).div(2).add(n).equal(),
1909
+ dropdownEdgeChildPadding: o
1910
+ });
1911
+ return [cn(a), dn(a)];
1912
+ }, un, {
1913
+ resetStyle: !1
1914
+ }), de = (e) => {
1915
+ var n;
1916
+ const {
1917
+ menu: t,
1918
+ arrow: o,
1919
+ prefixCls: r,
1920
+ children: a,
1921
+ trigger: i,
1922
+ disabled: d,
1923
+ dropdownRender: s,
1924
+ getPopupContainer: p,
1925
+ overlayClassName: g,
1926
+ rootClassName: S,
1927
+ overlayStyle: u,
1928
+ open: $,
1929
+ onOpenChange: c,
1930
+ // Deprecated
1931
+ visible: m,
1932
+ onVisibleChange: v,
1933
+ mouseEnterDelay: I = 0.15,
1934
+ mouseLeaveDelay: B = 0.1,
1935
+ autoAdjustOverflow: x = !0,
1936
+ placement: b = "",
1937
+ overlay: E,
1938
+ transitionName: N
1939
+ } = e, {
1940
+ getPopupContainer: _,
1941
+ getPrefixCls: w,
1942
+ direction: C,
1943
+ dropdown: f
1944
+ } = l.useContext(Z), j = se("Dropdown");
1945
+ process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
1946
+ let [U, K] = O;
1947
+ j.deprecated(!(U in e), U, K);
1948
+ }), j.deprecated(!("overlay" in e), "overlay", "menu"));
1949
+ const D = l.useMemo(() => {
1950
+ const O = w();
1951
+ return N !== void 0 ? N : b.includes("top") ? `${O}-slide-down` : `${O}-slide-up`;
1952
+ }, [w, b, N]), M = l.useMemo(() => b ? b.includes("Center") ? b.slice(0, b.indexOf("Center")) : b : C === "rtl" ? "bottomRight" : "bottomLeft", [b, C]);
1953
+ if (process.env.NODE_ENV !== "production") {
1954
+ if (b.includes("Center")) {
1955
+ const O = b.slice(0, b.indexOf("Center"));
1956
+ process.env.NODE_ENV !== "production" && j(!b.includes("Center"), "deprecated", `You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${O}' instead.`);
1957
+ }
1958
+ [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
1959
+ let [U, K] = O;
1960
+ j.deprecated(!(U in e), U, K);
1961
+ });
1962
+ }
1963
+ const y = w("dropdown", r), H = Ve(y), [L, k, R] = mn(y, H), [, W] = ut(), V = l.Children.only(kt(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), F = ee(V, {
1964
+ className: P(`${y}-trigger`, {
1965
+ [`${y}-rtl`]: C === "rtl"
1966
+ }, V.props.className),
1967
+ disabled: (n = V.props.disabled) !== null && n !== void 0 ? n : d
1968
+ }), z = d ? [] : i, X = !!(z != null && z.includes("contextMenu")), [q, G] = rt(!1, {
1969
+ value: $ ?? m
1970
+ }), me = ke((O) => {
1971
+ c == null || c(O, {
1972
+ source: "trigger"
1973
+ }), v == null || v(O), G(O);
1974
+ }), pe = P(g, S, k, R, H, f == null ? void 0 : f.className, {
1975
+ [`${y}-rtl`]: C === "rtl"
1976
+ }), T = Et({
1977
+ arrowPointAtCenter: typeof o == "object" && o.pointAtCenter,
1978
+ autoAdjustOverflow: x,
1979
+ offset: W.marginXXS,
1980
+ arrowWidth: o ? W.sizePopupArrow : 0,
1981
+ borderRadius: W.borderRadius
1982
+ }), A = l.useCallback(() => {
1983
+ t != null && t.selectable && (t != null && t.multiple) || (c == null || c(!1, {
1984
+ source: "menu"
1985
+ }), G(!1));
1986
+ }, [t == null ? void 0 : t.selectable, t == null ? void 0 : t.multiple]), Y = () => {
1987
+ let O;
1988
+ return t != null && t.items ? O = /* @__PURE__ */ l.createElement(J, Object.assign({}, t)) : typeof E == "function" ? O = E() : O = E, s && (O = s(O)), O = l.Children.only(typeof O == "string" ? /* @__PURE__ */ l.createElement("span", null, O) : O), /* @__PURE__ */ l.createElement(Jt, {
1989
+ prefixCls: `${y}-menu`,
1990
+ rootClassName: P(R, H),
1991
+ expandIcon: /* @__PURE__ */ l.createElement("span", {
1992
+ className: `${y}-menu-submenu-arrow`
1993
+ }, /* @__PURE__ */ l.createElement(ie, {
1994
+ className: `${y}-menu-submenu-arrow-icon`
1995
+ })),
1996
+ mode: "vertical",
1997
+ selectable: !1,
1998
+ onClick: A,
1999
+ validator: (U) => {
2000
+ let {
2001
+ mode: K
2002
+ } = U;
2003
+ process.env.NODE_ENV !== "production" && j(!K || K === "vertical", "usage", `mode="${K}" is not supported for Dropdown's Menu.`);
2004
+ }
2005
+ }, O);
2006
+ }, [ge, et] = We("Dropdown", u == null ? void 0 : u.zIndex);
2007
+ let fe = /* @__PURE__ */ l.createElement(St, Object.assign({
2008
+ alignPoint: X
2009
+ }, Q(e, ["rootClassName"]), {
2010
+ mouseEnterDelay: I,
2011
+ mouseLeaveDelay: B,
2012
+ visible: q,
2013
+ builtinPlacements: T,
2014
+ arrow: !!o,
2015
+ overlayClassName: pe,
2016
+ prefixCls: y,
2017
+ getPopupContainer: p || _,
2018
+ transitionName: D,
2019
+ trigger: z,
2020
+ overlay: Y,
2021
+ placement: M,
2022
+ onVisibleChange: me,
2023
+ overlayStyle: Object.assign(Object.assign(Object.assign({}, f == null ? void 0 : f.style), u), {
2024
+ zIndex: ge
2025
+ })
2026
+ }), F);
2027
+ return ge && (fe = /* @__PURE__ */ l.createElement(yt.Provider, {
2028
+ value: et
2029
+ }, fe)), L(fe);
2030
+ }, pn = mt(de, "align", void 0, "dropdown", (e) => e), gn = (e) => /* @__PURE__ */ l.createElement(pn, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
2031
+ de._InternalPanelDoNotUseOrYouWillBeFired = gn;
2032
+ process.env.NODE_ENV !== "production" && (de.displayName = "Dropdown");
2033
+ const ce = (e) => {
2034
+ let {
2035
+ children: n
2036
+ } = e;
2037
+ const {
2038
+ getPrefixCls: t
2039
+ } = l.useContext(Z), o = t("breadcrumb");
2040
+ return /* @__PURE__ */ l.createElement("li", {
2041
+ className: `${o}-separator`,
2042
+ "aria-hidden": "true"
2043
+ }, n === "" ? n : n || "/");
2044
+ };
2045
+ ce.__ANT_BREADCRUMB_SEPARATOR = !0;
2046
+ var fn = function(e, n) {
2047
+ var t = {};
2048
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2049
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2050
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2051
+ return t;
2052
+ };
2053
+ function bn(e, n) {
2054
+ if (e.title === void 0 || e.title === null)
2055
+ return null;
2056
+ const t = Object.keys(n).join("|");
2057
+ return typeof e.title == "object" ? e.title : String(e.title).replace(new RegExp(`:(${t})`, "g"), (o, r) => n[r] || o);
2058
+ }
2059
+ function Ze(e, n, t, o) {
2060
+ if (t == null)
2061
+ return null;
2062
+ const {
2063
+ className: r,
2064
+ onClick: a
2065
+ } = n, i = fn(n, ["className", "onClick"]), d = Object.assign(Object.assign({}, Le(i, {
2066
+ data: !0,
2067
+ aria: !0
2068
+ })), {
2069
+ onClick: a
2070
+ });
2071
+ return o !== void 0 ? /* @__PURE__ */ l.createElement("a", Object.assign({}, d, {
2072
+ className: P(`${e}-link`, r),
2073
+ href: o
2074
+ }), t) : /* @__PURE__ */ l.createElement("span", Object.assign({}, d, {
2075
+ className: P(`${e}-link`, r)
2076
+ }), t);
2077
+ }
2078
+ function $n(e, n) {
2079
+ return (o, r, a, i, d) => {
2080
+ if (n)
2081
+ return n(o, r, a, i);
2082
+ const s = bn(o, r);
2083
+ return Ze(e, o, s, d);
2084
+ };
2085
+ }
2086
+ var Ce = function(e, n) {
2087
+ var t = {};
2088
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2089
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2090
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2091
+ return t;
2092
+ };
2093
+ const Je = (e) => {
2094
+ const {
2095
+ prefixCls: n,
2096
+ separator: t = "/",
2097
+ children: o,
2098
+ menu: r,
2099
+ overlay: a,
2100
+ dropdownProps: i,
2101
+ href: d
2102
+ } = e;
2103
+ process.env.NODE_ENV !== "production" && se("Breadcrumb.Item").deprecated(!("overlay" in e), "overlay", "menu");
2104
+ const p = ((g) => {
2105
+ if (r || a) {
2106
+ const S = Object.assign({}, i);
2107
+ if (r) {
2108
+ const u = r || {}, {
2109
+ items: $
2110
+ } = u, c = Ce(u, ["items"]);
2111
+ S.menu = Object.assign(Object.assign({}, c), {
2112
+ items: $ == null ? void 0 : $.map((m, v) => {
2113
+ var {
2114
+ key: I,
2115
+ title: B,
2116
+ label: x,
2117
+ path: b
2118
+ } = m, E = Ce(m, ["key", "title", "label", "path"]);
2119
+ let N = x ?? B;
2120
+ return b && (N = /* @__PURE__ */ l.createElement("a", {
2121
+ href: `${d}${b}`
2122
+ }, N)), Object.assign(Object.assign({}, E), {
2123
+ key: I ?? v,
2124
+ label: N
2125
+ });
2126
+ })
2127
+ });
2128
+ } else a && (S.overlay = a);
2129
+ return /* @__PURE__ */ l.createElement(de, Object.assign({
2130
+ placement: "bottom"
2131
+ }, S), /* @__PURE__ */ l.createElement("span", {
2132
+ className: `${n}-overlay-link`
2133
+ }, g, /* @__PURE__ */ l.createElement(pt, null)));
2134
+ }
2135
+ return g;
2136
+ })(o);
2137
+ return p != null ? /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("li", null, p), t && /* @__PURE__ */ l.createElement(ce, null, t)) : null;
2138
+ }, Qe = (e) => {
2139
+ const {
2140
+ prefixCls: n,
2141
+ children: t,
2142
+ href: o
2143
+ } = e, r = Ce(e, ["prefixCls", "children", "href"]), {
2144
+ getPrefixCls: a
2145
+ } = l.useContext(Z), i = a("breadcrumb", n);
2146
+ return /* @__PURE__ */ l.createElement(Je, Object.assign({}, r, {
2147
+ prefixCls: i
2148
+ }), Ze(i, r, t, o));
2149
+ };
2150
+ Qe.__ANT_BREADCRUMB_ITEM = !0;
2151
+ const hn = (e) => {
2152
+ const {
2153
+ componentCls: n,
2154
+ iconCls: t,
2155
+ calc: o
2156
+ } = e;
2157
+ return {
2158
+ [n]: Object.assign(Object.assign({}, Ie(e)), {
2159
+ color: e.itemColor,
2160
+ fontSize: e.fontSize,
2161
+ [t]: {
2162
+ fontSize: e.iconFontSize
2163
+ },
2164
+ ol: {
2165
+ display: "flex",
2166
+ flexWrap: "wrap",
2167
+ margin: 0,
2168
+ padding: 0,
2169
+ listStyle: "none"
2170
+ },
2171
+ a: Object.assign({
2172
+ color: e.linkColor,
2173
+ transition: `color ${e.motionDurationMid}`,
2174
+ padding: `0 ${h(e.paddingXXS)}`,
2175
+ borderRadius: e.borderRadiusSM,
2176
+ height: e.fontHeight,
2177
+ display: "inline-block",
2178
+ marginInline: o(e.marginXXS).mul(-1).equal(),
2179
+ "&:hover": {
2180
+ color: e.linkHoverColor,
2181
+ backgroundColor: e.colorBgTextHover
2182
+ }
2183
+ }, he(e)),
2184
+ "li:last-child": {
2185
+ color: e.lastItemColor
2186
+ },
2187
+ [`${n}-separator`]: {
2188
+ marginInline: e.separatorMargin,
2189
+ color: e.separatorColor
2190
+ },
2191
+ [`${n}-link`]: {
2192
+ [`
2193
+ > ${t} + span,
2194
+ > ${t} + a
2195
+ `]: {
2196
+ marginInlineStart: e.marginXXS
2197
+ }
2198
+ },
2199
+ [`${n}-overlay-link`]: {
2200
+ borderRadius: e.borderRadiusSM,
2201
+ height: e.fontHeight,
2202
+ display: "inline-block",
2203
+ padding: `0 ${h(e.paddingXXS)}`,
2204
+ marginInline: o(e.marginXXS).mul(-1).equal(),
2205
+ [`> ${t}`]: {
2206
+ marginInlineStart: e.marginXXS,
2207
+ fontSize: e.fontSizeIcon
2208
+ },
2209
+ "&:hover": {
2210
+ color: e.linkHoverColor,
2211
+ backgroundColor: e.colorBgTextHover,
2212
+ a: {
2213
+ color: e.linkHoverColor
2214
+ }
2215
+ },
2216
+ a: {
2217
+ "&:hover": {
2218
+ backgroundColor: "transparent"
2219
+ }
2220
+ }
2221
+ },
2222
+ // rtl style
2223
+ [`&${e.componentCls}-rtl`]: {
2224
+ direction: "rtl"
2225
+ }
2226
+ })
2227
+ };
2228
+ }, vn = (e) => ({
2229
+ itemColor: e.colorTextDescription,
2230
+ lastItemColor: e.colorText,
2231
+ iconFontSize: e.fontSize,
2232
+ linkColor: e.colorTextDescription,
2233
+ linkHoverColor: e.colorText,
2234
+ separatorColor: e.colorTextDescription,
2235
+ separatorMargin: e.marginXS
2236
+ }), Cn = te("Breadcrumb", (e) => {
2237
+ const n = oe(e, {});
2238
+ return hn(n);
2239
+ }, vn);
2240
+ var Me = function(e, n) {
2241
+ var t = {};
2242
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2243
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2244
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2245
+ return t;
2246
+ };
2247
+ function Sn(e) {
2248
+ const {
2249
+ breadcrumbName: n,
2250
+ children: t
2251
+ } = e, o = Me(e, ["breadcrumbName", "children"]), r = Object.assign({
2252
+ title: n
2253
+ }, o);
2254
+ return t && (r.menu = {
2255
+ items: t.map((a) => {
2256
+ var {
2257
+ breadcrumbName: i
2258
+ } = a, d = Me(a, ["breadcrumbName"]);
2259
+ return Object.assign(Object.assign({}, d), {
2260
+ title: i
2261
+ });
2262
+ })
2263
+ }), r;
2264
+ }
2265
+ function In(e, n) {
2266
+ return ot(() => e || (n ? n.map(Sn) : null), [e, n]);
2267
+ }
2268
+ var yn = function(e, n) {
2269
+ var t = {};
2270
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2271
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2272
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2273
+ return t;
2274
+ };
2275
+ const xn = (e, n) => {
2276
+ if (n === void 0)
2277
+ return n;
2278
+ let t = (n || "").replace(/^\//, "");
2279
+ return Object.keys(e).forEach((o) => {
2280
+ t = t.replace(`:${o}`, e[o]);
2281
+ }), t;
2282
+ }, ue = (e) => {
2283
+ const {
2284
+ prefixCls: n,
2285
+ separator: t = "/",
2286
+ style: o,
2287
+ className: r,
2288
+ rootClassName: a,
2289
+ routes: i,
2290
+ items: d,
2291
+ children: s,
2292
+ itemRender: p,
2293
+ params: g = {}
2294
+ } = e, S = yn(e, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]), {
2295
+ getPrefixCls: u,
2296
+ direction: $,
2297
+ breadcrumb: c
2298
+ } = l.useContext(Z);
2299
+ let m;
2300
+ const v = u("breadcrumb", n), [I, B, x] = Cn(v), b = In(d, i);
2301
+ if (process.env.NODE_ENV !== "production") {
2302
+ const w = se("Breadcrumb");
2303
+ if (w.deprecated(!i, "routes", "items"), !b || b.length === 0) {
2304
+ const C = ne(s);
2305
+ w.deprecated(C.length === 0, "Breadcrumb.Item and Breadcrumb.Separator", "items"), C.forEach((f) => {
2306
+ f && process.env.NODE_ENV !== "production" && w(f.type && (f.type.__ANT_BREADCRUMB_ITEM === !0 || f.type.__ANT_BREADCRUMB_SEPARATOR === !0), "usage", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
2307
+ });
2308
+ }
2309
+ }
2310
+ const E = $n(v, p);
2311
+ if (b && b.length > 0) {
2312
+ const w = [], C = d || i;
2313
+ m = b.map((f, j) => {
2314
+ const {
2315
+ path: D,
2316
+ key: M,
2317
+ type: y,
2318
+ menu: H,
2319
+ overlay: L,
2320
+ onClick: k,
2321
+ className: R,
2322
+ separator: W,
2323
+ dropdownProps: V
2324
+ } = f, F = xn(g, D);
2325
+ F !== void 0 && w.push(F);
2326
+ const z = M ?? j;
2327
+ if (y === "separator")
2328
+ return /* @__PURE__ */ l.createElement(ce, {
2329
+ key: z
2330
+ }, W);
2331
+ const X = {}, q = j === b.length - 1;
2332
+ H ? X.menu = H : L && (X.overlay = L);
2333
+ let {
2334
+ href: G
2335
+ } = f;
2336
+ return w.length && F !== void 0 && (G = `#/${w.join("/")}`), /* @__PURE__ */ l.createElement(Je, Object.assign({
2337
+ key: z
2338
+ }, X, Le(f, {
2339
+ data: !0,
2340
+ aria: !0
2341
+ }), {
2342
+ className: R,
2343
+ dropdownProps: V,
2344
+ href: G,
2345
+ separator: q ? "" : t,
2346
+ onClick: k,
2347
+ prefixCls: v
2348
+ }), E(f, g, C, w, G));
2349
+ });
2350
+ } else if (s) {
2351
+ const w = ne(s).length;
2352
+ m = ne(s).map((C, f) => {
2353
+ if (!C)
2354
+ return C;
2355
+ const j = f === w - 1;
2356
+ return ee(C, {
2357
+ separator: j ? "" : t,
2358
+ // eslint-disable-next-line react/no-array-index-key
2359
+ key: f
2360
+ });
2361
+ });
2362
+ }
2363
+ const N = P(v, c == null ? void 0 : c.className, {
2364
+ [`${v}-rtl`]: $ === "rtl"
2365
+ }, r, a, B, x), _ = Object.assign(Object.assign({}, c == null ? void 0 : c.style), o);
2366
+ return I(/* @__PURE__ */ l.createElement("nav", Object.assign({
2367
+ className: N,
2368
+ style: _
2369
+ }, S), /* @__PURE__ */ l.createElement("ol", null, m)));
2370
+ };
2371
+ ue.Item = Qe;
2372
+ ue.Separator = ce;
2373
+ process.env.NODE_ENV !== "production" && (ue.displayName = "Breadcrumb");
2374
+ const wn = ({ colors: e, typography: n }, t = "wide") => `
2375
+ &.ant-breadcrumb {
2376
+ font-size: ${n[t].body1.fontSize};
2377
+
2378
+ .ant-breadcrumb-link,
2379
+ span[class*="ant-breadcrumb-link"] > a {
2380
+ color: ${e.interactive.link.active};
2381
+ transition: color 0.2s ease-in-out;
2382
+ text-decoration: underline;
2383
+ background: none !important;
2384
+ }
2385
+
2386
+ ol > li:last-child {
2387
+ .ant-breadcrumb-link,
2388
+ span[class*="ant-breadcrumb-link"],
2389
+ span[class*="ant-breadcrumb-link"] > span,
2390
+ span[class*="ant-breadcrumb-link"] > a {
2391
+ text-decoration: none !important;
2392
+ color: ${e.onsurface["copy-light"]} !important;
2393
+ cursor: default !important;
2394
+ pointer-events: none;
2395
+ }
2396
+ }
2397
+
2398
+ .ant-breadcrumb-separator {
2399
+ color: ${e.interactive.link.active};
2400
+ }
2401
+
2402
+ .ant-dropdown-menu-item,
2403
+ .ant-dropdown-menu-item:hover {
2404
+ background: none !important;
2405
+ }
2406
+
2407
+ .ant-dropdown-trigger > svg {
2408
+ display: none;
2409
+ }
2410
+
2411
+ span[role="img"] {
2412
+ display: none;
2413
+ }
2414
+
2415
+ .ant-dropdown-trigger:hover {
2416
+ background: none !important;
2417
+ }
2418
+ }
2419
+ `, Wn = Re.div`
2420
+ ${({ $isDisabled: e }) => e && `
2421
+ cursor: not-allowed;
2422
+ .ant-breadcrumb {
2423
+ pointer-events: none;
2424
+ opacity: 0.5;
2425
+ }
2426
+ `}
2427
+ opacity: ${({ $isDisabled: e }) => e ? 0.5 : 1};
2428
+ `, Xn = Re(ue)`
2429
+ ${({ theme: e, breakpoint: n }) => e && wn(e, n)}
2430
+ `;
2431
+ export {
2432
+ Xn as Breadcrumb,
2433
+ Wn as BreadcrumbWrapper,
2434
+ Xn as default,
2435
+ wn as getGenesisClass
2436
+ };