@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,1112 @@
1
+ import { a as L, e as te, f as $, c as de, h as w, _ as A, w as we, d as Gt } from "./warning-C63HNL9U.js";
2
+ import * as t from "react";
3
+ import J, { forwardRef as qt, useMemo as Yt, useRef as Xe, useCallback as Re, useImperativeHandle as Xt } from "react";
4
+ import { I as Zt } from "./AntdIcon-BoLh1dP8.js";
5
+ import { T as et } from "./index-CfDY25LP.js";
6
+ import { w as xe, t as nt, h as tt, s as rt, Z as Jt, $ as at, x as Me, j as Qt, _ as er, d as nr, e as tr, f as rr, B as ar, r as ir } from "./index-oK7z6jnz.js";
7
+ import { K as ie } from "./KeyCode-DM2sFh3-.js";
8
+ import { F as Te } from "./Overflow-PBZD-PFm.js";
9
+ import { i as or, u as Ze, o as Sn, t as lr } from "./isVisible-A-IfeFoT.js";
10
+ var ur = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, sr = function(r, a) {
11
+ return /* @__PURE__ */ t.createElement(Zt, L({}, r, {
12
+ ref: a,
13
+ icon: ur
14
+ }));
15
+ }, cr = /* @__PURE__ */ t.forwardRef(sr);
16
+ process.env.NODE_ENV !== "production" && (cr.displayName = "EllipsisOutlined");
17
+ var fr = ie.ESC, dr = ie.TAB;
18
+ function vr(e) {
19
+ var r = e.visible, a = e.triggerRef, n = e.onVisibleChange, i = e.autoFocus, o = e.overlayRef, l = t.useRef(!1), u = function() {
20
+ if (r) {
21
+ var c, f;
22
+ (c = a.current) === null || c === void 0 || (f = c.focus) === null || f === void 0 || f.call(c), n == null || n(!1);
23
+ }
24
+ }, d = function() {
25
+ var c;
26
+ return (c = o.current) !== null && c !== void 0 && c.focus ? (o.current.focus(), l.current = !0, !0) : !1;
27
+ }, s = function(c) {
28
+ switch (c.keyCode) {
29
+ case fr:
30
+ u();
31
+ break;
32
+ case dr: {
33
+ var f = !1;
34
+ l.current || (f = d()), f ? c.preventDefault() : u();
35
+ break;
36
+ }
37
+ }
38
+ };
39
+ t.useEffect(function() {
40
+ return r ? (window.addEventListener("keydown", s), i && xe(d, 3), function() {
41
+ window.removeEventListener("keydown", s), l.current = !1;
42
+ }) : function() {
43
+ l.current = !1;
44
+ };
45
+ }, [r]);
46
+ }
47
+ var mr = /* @__PURE__ */ qt(function(e, r) {
48
+ var a = e.overlay, n = e.arrow, i = e.prefixCls, o = Yt(function() {
49
+ var u;
50
+ return typeof a == "function" ? u = a() : u = a, u;
51
+ }, [a]), l = nt(r, tt(o));
52
+ return /* @__PURE__ */ J.createElement(J.Fragment, null, n && /* @__PURE__ */ J.createElement("div", {
53
+ className: "".concat(i, "-arrow")
54
+ }), /* @__PURE__ */ J.cloneElement(o, {
55
+ ref: rt(o) ? l : void 0
56
+ }));
57
+ }), Se = {
58
+ adjustX: 1,
59
+ adjustY: 1
60
+ }, Ee = [0, 0], pr = {
61
+ topLeft: {
62
+ points: ["bl", "tl"],
63
+ overflow: Se,
64
+ offset: [0, -4],
65
+ targetOffset: Ee
66
+ },
67
+ top: {
68
+ points: ["bc", "tc"],
69
+ overflow: Se,
70
+ offset: [0, -4],
71
+ targetOffset: Ee
72
+ },
73
+ topRight: {
74
+ points: ["br", "tr"],
75
+ overflow: Se,
76
+ offset: [0, -4],
77
+ targetOffset: Ee
78
+ },
79
+ bottomLeft: {
80
+ points: ["tl", "bl"],
81
+ overflow: Se,
82
+ offset: [0, 4],
83
+ targetOffset: Ee
84
+ },
85
+ bottom: {
86
+ points: ["tc", "bc"],
87
+ overflow: Se,
88
+ offset: [0, 4],
89
+ targetOffset: Ee
90
+ },
91
+ bottomRight: {
92
+ points: ["tr", "br"],
93
+ overflow: Se,
94
+ offset: [0, 4],
95
+ targetOffset: Ee
96
+ }
97
+ }, gr = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
98
+ function hr(e, r) {
99
+ var a, n = e.arrow, i = n === void 0 ? !1 : n, o = e.prefixCls, l = o === void 0 ? "rc-dropdown" : o, u = e.transitionName, d = e.animation, s = e.align, g = e.placement, c = g === void 0 ? "bottomLeft" : g, f = e.placements, b = f === void 0 ? pr : f, h = e.getPopupContainer, S = e.showAction, C = e.hideAction, I = e.overlayClassName, P = e.overlayStyle, v = e.visible, m = e.trigger, y = m === void 0 ? ["hover"] : m, p = e.autoFocus, R = e.overlay, _ = e.children, E = e.onVisibleChange, W = te(e, gr), O = J.useState(), K = $(O, 2), j = K[0], B = K[1], H = "visible" in e ? v : j, Y = J.useRef(null), T = J.useRef(null), q = J.useRef(null);
100
+ J.useImperativeHandle(r, function() {
101
+ return Y.current;
102
+ });
103
+ var V = function(D) {
104
+ B(D), E == null || E(D);
105
+ };
106
+ vr({
107
+ visible: H,
108
+ triggerRef: q,
109
+ onVisibleChange: V,
110
+ autoFocus: p,
111
+ overlayRef: T
112
+ });
113
+ var Q = function(D) {
114
+ var ne = e.onOverlayClick;
115
+ B(!1), ne && ne(D);
116
+ }, oe = function() {
117
+ return /* @__PURE__ */ J.createElement(mr, {
118
+ ref: T,
119
+ overlay: R,
120
+ prefixCls: l,
121
+ arrow: i
122
+ });
123
+ }, le = function() {
124
+ return typeof R == "function" ? oe : oe();
125
+ }, se = function() {
126
+ var D = e.minOverlayWidthMatchTrigger, ne = e.alignPoint;
127
+ return "minOverlayWidthMatchTrigger" in e ? D : !ne;
128
+ }, ce = function() {
129
+ var D = e.openClassName;
130
+ return D !== void 0 ? D : "".concat(l, "-open");
131
+ }, F = /* @__PURE__ */ J.cloneElement(_, {
132
+ className: de((a = _.props) === null || a === void 0 ? void 0 : a.className, H && ce()),
133
+ ref: rt(_) ? nt(q, tt(_)) : void 0
134
+ }), z = C;
135
+ return !z && y.indexOf("contextMenu") !== -1 && (z = ["click"]), /* @__PURE__ */ J.createElement(et, L({
136
+ builtinPlacements: b
137
+ }, W, {
138
+ prefixCls: l,
139
+ ref: Y,
140
+ popupClassName: de(I, w({}, "".concat(l, "-show-arrow"), i)),
141
+ popupStyle: P,
142
+ action: y,
143
+ showAction: S,
144
+ hideAction: z,
145
+ popupPlacement: c,
146
+ popupAlign: s,
147
+ popupTransitionName: u,
148
+ popupAnimation: d,
149
+ popupVisible: H,
150
+ stretch: se() ? "minWidth" : "",
151
+ popup: le(),
152
+ onPopupVisibleChange: V,
153
+ onPopupClick: Q,
154
+ getPopupContainer: h
155
+ }), F);
156
+ }
157
+ const la = /* @__PURE__ */ J.forwardRef(hr);
158
+ var it = /* @__PURE__ */ t.createContext(null);
159
+ function ot(e, r) {
160
+ return e === void 0 ? null : "".concat(e, "-").concat(r);
161
+ }
162
+ function lt(e) {
163
+ var r = t.useContext(it);
164
+ return ot(r, e);
165
+ }
166
+ var Cr = ["children", "locked"], ae = /* @__PURE__ */ t.createContext(null);
167
+ function br(e, r) {
168
+ var a = A({}, e);
169
+ return Object.keys(r).forEach(function(n) {
170
+ var i = r[n];
171
+ i !== void 0 && (a[n] = i);
172
+ }), a;
173
+ }
174
+ function Ve(e) {
175
+ var r = e.children, a = e.locked, n = te(e, Cr), i = t.useContext(ae), o = Jt(function() {
176
+ return br(i, n);
177
+ }, [i, n], function(l, u) {
178
+ return !a && (l[0] !== u[0] || !at(l[1], u[1], !0));
179
+ });
180
+ return /* @__PURE__ */ t.createElement(ae.Provider, {
181
+ value: o
182
+ }, r);
183
+ }
184
+ var yr = [], ut = /* @__PURE__ */ t.createContext(null);
185
+ function nn() {
186
+ return t.useContext(ut);
187
+ }
188
+ var st = /* @__PURE__ */ t.createContext(yr);
189
+ function Fe(e) {
190
+ var r = t.useContext(st);
191
+ return t.useMemo(function() {
192
+ return e !== void 0 ? [].concat(Me(r), [e]) : r;
193
+ }, [r, e]);
194
+ }
195
+ var ct = /* @__PURE__ */ t.createContext(null), En = /* @__PURE__ */ t.createContext({});
196
+ function qn(e) {
197
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
198
+ if (or(e)) {
199
+ var a = e.nodeName.toLowerCase(), n = (
200
+ // Focusable element
201
+ ["input", "select", "textarea", "button"].includes(a) || // Editable element
202
+ e.isContentEditable || // Anchor with href element
203
+ a === "a" && !!e.getAttribute("href")
204
+ ), i = e.getAttribute("tabindex"), o = Number(i), l = null;
205
+ return i && !Number.isNaN(o) ? l = o : n && l === null && (l = 0), n && e.disabled && (l = null), l !== null && (l >= 0 || r && l < 0);
206
+ }
207
+ return !1;
208
+ }
209
+ function Mr(e) {
210
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = Me(e.querySelectorAll("*")).filter(function(n) {
211
+ return qn(n, r);
212
+ });
213
+ return qn(e, r) && a.unshift(e), a;
214
+ }
215
+ var Cn = ie.LEFT, bn = ie.RIGHT, yn = ie.UP, Je = ie.DOWN, Qe = ie.ENTER, ft = ie.ESC, De = ie.HOME, $e = ie.END, Yn = [yn, Je, Cn, bn];
216
+ function Ir(e, r, a, n) {
217
+ var i, o = "prev", l = "next", u = "children", d = "parent";
218
+ if (e === "inline" && n === Qe)
219
+ return {
220
+ inlineTrigger: !0
221
+ };
222
+ var s = w(w({}, yn, o), Je, l), g = w(w(w(w({}, Cn, a ? l : o), bn, a ? o : l), Je, u), Qe, u), c = w(w(w(w(w(w({}, yn, o), Je, l), Qe, u), ft, d), Cn, a ? u : d), bn, a ? d : u), f = {
223
+ inline: s,
224
+ horizontal: g,
225
+ vertical: c,
226
+ inlineSub: s,
227
+ horizontalSub: c,
228
+ verticalSub: c
229
+ }, b = (i = f["".concat(e).concat(r ? "" : "Sub")]) === null || i === void 0 ? void 0 : i[n];
230
+ switch (b) {
231
+ case o:
232
+ return {
233
+ offset: -1,
234
+ sibling: !0
235
+ };
236
+ case l:
237
+ return {
238
+ offset: 1,
239
+ sibling: !0
240
+ };
241
+ case d:
242
+ return {
243
+ offset: -1,
244
+ sibling: !1
245
+ };
246
+ case u:
247
+ return {
248
+ offset: 1,
249
+ sibling: !1
250
+ };
251
+ default:
252
+ return null;
253
+ }
254
+ }
255
+ function Rr(e) {
256
+ for (var r = e; r; ) {
257
+ if (r.getAttribute("data-menu-list"))
258
+ return r;
259
+ r = r.parentElement;
260
+ }
261
+ return null;
262
+ }
263
+ function Sr(e, r) {
264
+ for (var a = e || document.activeElement; a; ) {
265
+ if (r.has(a))
266
+ return a;
267
+ a = a.parentElement;
268
+ }
269
+ return null;
270
+ }
271
+ function xn(e, r) {
272
+ var a = Mr(e, !0);
273
+ return a.filter(function(n) {
274
+ return r.has(n);
275
+ });
276
+ }
277
+ function Xn(e, r, a) {
278
+ var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
279
+ if (!e)
280
+ return null;
281
+ var i = xn(e, r), o = i.length, l = i.findIndex(function(u) {
282
+ return a === u;
283
+ });
284
+ return n < 0 ? l === -1 ? l = o - 1 : l -= 1 : n > 0 && (l += 1), l = (l + o) % o, i[l];
285
+ }
286
+ var Mn = function(r, a) {
287
+ var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
288
+ return r.forEach(function(l) {
289
+ var u = document.querySelector("[data-menu-id='".concat(ot(a, l), "']"));
290
+ u && (n.add(u), o.set(u, l), i.set(l, u));
291
+ }), {
292
+ elements: n,
293
+ key2element: i,
294
+ element2key: o
295
+ };
296
+ };
297
+ function Er(e, r, a, n, i, o, l, u, d, s) {
298
+ var g = t.useRef(), c = t.useRef();
299
+ c.current = r;
300
+ var f = function() {
301
+ xe.cancel(g.current);
302
+ };
303
+ return t.useEffect(function() {
304
+ return function() {
305
+ f();
306
+ };
307
+ }, []), function(b) {
308
+ var h = b.which;
309
+ if ([].concat(Yn, [Qe, ft, De, $e]).includes(h)) {
310
+ var S = o(), C = Mn(S, n), I = C, P = I.elements, v = I.key2element, m = I.element2key, y = v.get(r), p = Sr(y, P), R = m.get(p), _ = Ir(e, l(R, !0).length === 1, a, h);
311
+ if (!_ && h !== De && h !== $e)
312
+ return;
313
+ (Yn.includes(h) || [De, $e].includes(h)) && b.preventDefault();
314
+ var E = function(T) {
315
+ if (T) {
316
+ var q = T, V = T.querySelector("a");
317
+ V != null && V.getAttribute("href") && (q = V);
318
+ var Q = m.get(T);
319
+ u(Q), f(), g.current = xe(function() {
320
+ c.current === Q && q.focus();
321
+ });
322
+ }
323
+ };
324
+ if ([De, $e].includes(h) || _.sibling || !p) {
325
+ var W;
326
+ !p || e === "inline" ? W = i.current : W = Rr(p);
327
+ var O, K = xn(W, P);
328
+ h === De ? O = K[0] : h === $e ? O = K[K.length - 1] : O = Xn(W, P, p, _.offset), E(O);
329
+ } else if (_.inlineTrigger)
330
+ d(R);
331
+ else if (_.offset > 0)
332
+ d(R, !0), f(), g.current = xe(function() {
333
+ C = Mn(S, n);
334
+ var Y = p.getAttribute("aria-controls"), T = document.getElementById(Y), q = Xn(T, C.elements);
335
+ E(q);
336
+ }, 5);
337
+ else if (_.offset < 0) {
338
+ var j = l(R, !0), B = j[j.length - 2], H = v.get(B);
339
+ d(B, !1), E(H);
340
+ }
341
+ }
342
+ s == null || s(b);
343
+ };
344
+ }
345
+ function xr(e) {
346
+ Promise.resolve().then(e);
347
+ }
348
+ var wn = "__RC_UTIL_PATH_SPLIT__", Zn = function(r) {
349
+ return r.join(wn);
350
+ }, wr = function(r) {
351
+ return r.split(wn);
352
+ }, In = "rc-menu-more";
353
+ function Pr() {
354
+ var e = t.useState({}), r = $(e, 2), a = r[1], n = Xe(/* @__PURE__ */ new Map()), i = Xe(/* @__PURE__ */ new Map()), o = t.useState([]), l = $(o, 2), u = l[0], d = l[1], s = Xe(0), g = Xe(!1), c = function() {
355
+ g.current || a({});
356
+ }, f = Re(function(v, m) {
357
+ process.env.NODE_ENV !== "production" && we(!n.current.has(v), "Duplicated key '".concat(v, "' used in Menu by path [").concat(m.join(" > "), "]"));
358
+ var y = Zn(m);
359
+ i.current.set(y, v), n.current.set(v, y), s.current += 1;
360
+ var p = s.current;
361
+ xr(function() {
362
+ p === s.current && c();
363
+ });
364
+ }, []), b = Re(function(v, m) {
365
+ var y = Zn(m);
366
+ i.current.delete(y), n.current.delete(v);
367
+ }, []), h = Re(function(v) {
368
+ d(v);
369
+ }, []), S = Re(function(v, m) {
370
+ var y = n.current.get(v) || "", p = wr(y);
371
+ return m && u.includes(p[0]) && p.unshift(In), p;
372
+ }, [u]), C = Re(function(v, m) {
373
+ return v.filter(function(y) {
374
+ return y !== void 0;
375
+ }).some(function(y) {
376
+ var p = S(y, !0);
377
+ return p.includes(m);
378
+ });
379
+ }, [S]), I = function() {
380
+ var m = Me(n.current.keys());
381
+ return u.length && m.push(In), m;
382
+ }, P = Re(function(v) {
383
+ var m = "".concat(n.current.get(v)).concat(wn), y = /* @__PURE__ */ new Set();
384
+ return Me(i.current.keys()).forEach(function(p) {
385
+ p.startsWith(m) && y.add(i.current.get(p));
386
+ }), y;
387
+ }, []);
388
+ return t.useEffect(function() {
389
+ return function() {
390
+ g.current = !0;
391
+ };
392
+ }, []), {
393
+ // Register
394
+ registerPath: f,
395
+ unregisterPath: b,
396
+ refreshOverflowKeys: h,
397
+ // Util
398
+ isSubPathKey: C,
399
+ getKeyPath: S,
400
+ getKeys: I,
401
+ getSubPathKeys: P
402
+ };
403
+ }
404
+ function Le(e) {
405
+ var r = t.useRef(e);
406
+ r.current = e;
407
+ var a = t.useCallback(function() {
408
+ for (var n, i = arguments.length, o = new Array(i), l = 0; l < i; l++)
409
+ o[l] = arguments[l];
410
+ return (n = r.current) === null || n === void 0 ? void 0 : n.call.apply(n, [r].concat(o));
411
+ }, []);
412
+ return e ? a : void 0;
413
+ }
414
+ var Nr = Math.random().toFixed(5).toString().slice(2), Jn = 0;
415
+ function _r(e) {
416
+ var r = Ze(e, {
417
+ value: e
418
+ }), a = $(r, 2), n = a[0], i = a[1];
419
+ return t.useEffect(function() {
420
+ Jn += 1;
421
+ var o = process.env.NODE_ENV === "test" ? "test" : "".concat(Nr, "-").concat(Jn);
422
+ i("rc-menu-uuid-".concat(o));
423
+ }, []), n;
424
+ }
425
+ function dt(e, r, a, n) {
426
+ var i = t.useContext(ae), o = i.activeKey, l = i.onActive, u = i.onInactive, d = {
427
+ active: o === e
428
+ };
429
+ return r || (d.onMouseEnter = function(s) {
430
+ a == null || a({
431
+ key: e,
432
+ domEvent: s
433
+ }), l(e);
434
+ }, d.onMouseLeave = function(s) {
435
+ n == null || n({
436
+ key: e,
437
+ domEvent: s
438
+ }), u(e);
439
+ }), d;
440
+ }
441
+ function vt(e) {
442
+ var r = t.useContext(ae), a = r.mode, n = r.rtl, i = r.inlineIndent;
443
+ if (a !== "inline")
444
+ return null;
445
+ var o = e;
446
+ return n ? {
447
+ paddingRight: o * i
448
+ } : {
449
+ paddingLeft: o * i
450
+ };
451
+ }
452
+ function mt(e) {
453
+ var r = e.icon, a = e.props, n = e.children, i;
454
+ return r === null || r === !1 ? null : (typeof r == "function" ? i = /* @__PURE__ */ t.createElement(r, A({}, a)) : typeof r != "boolean" && (i = r), i || n || null);
455
+ }
456
+ var Kr = ["item"];
457
+ function en(e) {
458
+ var r = e.item, a = te(e, Kr);
459
+ return Object.defineProperty(a, "item", {
460
+ get: function() {
461
+ return we(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), r;
462
+ }
463
+ }), a;
464
+ }
465
+ var Or = ["title", "attribute", "elementRef"], kr = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], Ar = ["active"], Dr = /* @__PURE__ */ function(e) {
466
+ er(a, e);
467
+ var r = nr(a);
468
+ function a() {
469
+ return tr(this, a), r.apply(this, arguments);
470
+ }
471
+ return rr(a, [{
472
+ key: "render",
473
+ value: function() {
474
+ var i = this.props, o = i.title, l = i.attribute, u = i.elementRef, d = te(i, Or), s = Sn(d, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
475
+ return we(!l, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ t.createElement(Te.Item, L({}, l, {
476
+ title: typeof o == "string" ? o : void 0
477
+ }, s, {
478
+ ref: u
479
+ }));
480
+ }
481
+ }]), a;
482
+ }(t.Component), $r = /* @__PURE__ */ t.forwardRef(function(e, r) {
483
+ var a = e.style, n = e.className, i = e.eventKey, o = e.warnKey, l = e.disabled, u = e.itemIcon, d = e.children, s = e.role, g = e.onMouseEnter, c = e.onMouseLeave, f = e.onClick, b = e.onKeyDown, h = e.onFocus, S = te(e, kr), C = lt(i), I = t.useContext(ae), P = I.prefixCls, v = I.onItemClick, m = I.disabled, y = I.overflowDisabled, p = I.itemIcon, R = I.selectedKeys, _ = I.onActive, E = t.useContext(En), W = E._internalRenderMenuItem, O = "".concat(P, "-item"), K = t.useRef(), j = t.useRef(), B = m || l, H = Qt(r, j), Y = Fe(i);
484
+ process.env.NODE_ENV !== "production" && o && we(!1, "MenuItem should not leave undefined `key`.");
485
+ var T = function(G) {
486
+ return {
487
+ key: i,
488
+ // Note: For legacy code is reversed which not like other antd component
489
+ keyPath: Me(Y).reverse(),
490
+ item: K.current,
491
+ domEvent: G
492
+ };
493
+ }, q = u || p, V = dt(i, B, g, c), Q = V.active, oe = te(V, Ar), le = R.includes(i), se = vt(Y.length), ce = function(G) {
494
+ if (!B) {
495
+ var ue = T(G);
496
+ f == null || f(en(ue)), v(ue);
497
+ }
498
+ }, F = function(G) {
499
+ if (b == null || b(G), G.which === ie.ENTER) {
500
+ var ue = T(G);
501
+ f == null || f(en(ue)), v(ue);
502
+ }
503
+ }, z = function(G) {
504
+ _(i), h == null || h(G);
505
+ }, ee = {};
506
+ e.role === "option" && (ee["aria-selected"] = le);
507
+ var D = /* @__PURE__ */ t.createElement(Dr, L({
508
+ ref: K,
509
+ elementRef: H,
510
+ role: s === null ? "none" : s || "menuitem",
511
+ tabIndex: l ? null : -1,
512
+ "data-menu-id": y && C ? null : C
513
+ }, Sn(S, ["extra"]), oe, ee, {
514
+ component: "li",
515
+ "aria-disabled": l,
516
+ style: A(A({}, se), a),
517
+ className: de(O, w(w(w({}, "".concat(O, "-active"), Q), "".concat(O, "-selected"), le), "".concat(O, "-disabled"), B), n),
518
+ onClick: ce,
519
+ onKeyDown: F,
520
+ onFocus: z
521
+ }), d, /* @__PURE__ */ t.createElement(mt, {
522
+ props: A(A({}, e), {}, {
523
+ isSelected: le
524
+ }),
525
+ icon: q
526
+ }));
527
+ return W && (D = W(D, e, {
528
+ selected: le
529
+ })), D;
530
+ });
531
+ function Lr(e, r) {
532
+ var a = e.eventKey, n = nn(), i = Fe(a);
533
+ return t.useEffect(function() {
534
+ if (n)
535
+ return n.registerPath(a, i), function() {
536
+ n.unregisterPath(a, i);
537
+ };
538
+ }, [i]), n ? null : /* @__PURE__ */ t.createElement($r, L({}, e, {
539
+ ref: r
540
+ }));
541
+ }
542
+ const Pn = /* @__PURE__ */ t.forwardRef(Lr);
543
+ var Tr = ["className", "children"], Vr = function(r, a) {
544
+ var n = r.className, i = r.children, o = te(r, Tr), l = t.useContext(ae), u = l.prefixCls, d = l.mode, s = l.rtl;
545
+ return /* @__PURE__ */ t.createElement("ul", L({
546
+ className: de(u, s && "".concat(u, "-rtl"), "".concat(u, "-sub"), "".concat(u, "-").concat(d === "inline" ? "inline" : "vertical"), n),
547
+ role: "menu"
548
+ }, o, {
549
+ "data-menu-list": !0,
550
+ ref: a
551
+ }), i);
552
+ }, Nn = /* @__PURE__ */ t.forwardRef(Vr);
553
+ Nn.displayName = "SubMenuList";
554
+ function _n(e, r) {
555
+ return lr(e).map(function(a, n) {
556
+ if (/* @__PURE__ */ t.isValidElement(a)) {
557
+ var i, o, l = a.key, u = (i = (o = a.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && i !== void 0 ? i : l, d = u == null;
558
+ d && (u = "tmp_key-".concat([].concat(Me(r), [n]).join("-")));
559
+ var s = {
560
+ key: u,
561
+ eventKey: u
562
+ };
563
+ return process.env.NODE_ENV !== "production" && d && (s.warnKey = !0), /* @__PURE__ */ t.cloneElement(a, s);
564
+ }
565
+ return a;
566
+ });
567
+ }
568
+ var U = {
569
+ adjustX: 1,
570
+ adjustY: 1
571
+ }, Fr = {
572
+ topLeft: {
573
+ points: ["bl", "tl"],
574
+ overflow: U
575
+ },
576
+ topRight: {
577
+ points: ["br", "tr"],
578
+ overflow: U
579
+ },
580
+ bottomLeft: {
581
+ points: ["tl", "bl"],
582
+ overflow: U
583
+ },
584
+ bottomRight: {
585
+ points: ["tr", "br"],
586
+ overflow: U
587
+ },
588
+ leftTop: {
589
+ points: ["tr", "tl"],
590
+ overflow: U
591
+ },
592
+ leftBottom: {
593
+ points: ["br", "bl"],
594
+ overflow: U
595
+ },
596
+ rightTop: {
597
+ points: ["tl", "tr"],
598
+ overflow: U
599
+ },
600
+ rightBottom: {
601
+ points: ["bl", "br"],
602
+ overflow: U
603
+ }
604
+ }, zr = {
605
+ topLeft: {
606
+ points: ["bl", "tl"],
607
+ overflow: U
608
+ },
609
+ topRight: {
610
+ points: ["br", "tr"],
611
+ overflow: U
612
+ },
613
+ bottomLeft: {
614
+ points: ["tl", "bl"],
615
+ overflow: U
616
+ },
617
+ bottomRight: {
618
+ points: ["tr", "br"],
619
+ overflow: U
620
+ },
621
+ rightTop: {
622
+ points: ["tr", "tl"],
623
+ overflow: U
624
+ },
625
+ rightBottom: {
626
+ points: ["br", "bl"],
627
+ overflow: U
628
+ },
629
+ leftTop: {
630
+ points: ["tl", "tr"],
631
+ overflow: U
632
+ },
633
+ leftBottom: {
634
+ points: ["bl", "br"],
635
+ overflow: U
636
+ }
637
+ };
638
+ function pt(e, r, a) {
639
+ if (r)
640
+ return r;
641
+ if (a)
642
+ return a[e] || a.other;
643
+ }
644
+ var Ur = {
645
+ horizontal: "bottomLeft",
646
+ vertical: "rightTop",
647
+ "vertical-left": "rightTop",
648
+ "vertical-right": "leftTop"
649
+ };
650
+ function Wr(e) {
651
+ var r = e.prefixCls, a = e.visible, n = e.children, i = e.popup, o = e.popupStyle, l = e.popupClassName, u = e.popupOffset, d = e.disabled, s = e.mode, g = e.onVisibleChange, c = t.useContext(ae), f = c.getPopupContainer, b = c.rtl, h = c.subMenuOpenDelay, S = c.subMenuCloseDelay, C = c.builtinPlacements, I = c.triggerSubMenuAction, P = c.forceSubMenuRender, v = c.rootClassName, m = c.motion, y = c.defaultMotions, p = t.useState(!1), R = $(p, 2), _ = R[0], E = R[1], W = b ? A(A({}, zr), C) : A(A({}, Fr), C), O = Ur[s], K = pt(s, m, y), j = t.useRef(K);
652
+ s !== "inline" && (j.current = K);
653
+ var B = A(A({}, j.current), {}, {
654
+ leavedClassName: "".concat(r, "-hidden"),
655
+ removeOnLeave: !1,
656
+ motionAppear: !0
657
+ }), H = t.useRef();
658
+ return t.useEffect(function() {
659
+ return H.current = xe(function() {
660
+ E(a);
661
+ }), function() {
662
+ xe.cancel(H.current);
663
+ };
664
+ }, [a]), /* @__PURE__ */ t.createElement(et, {
665
+ prefixCls: r,
666
+ popupClassName: de("".concat(r, "-popup"), w({}, "".concat(r, "-rtl"), b), l, v),
667
+ stretch: s === "horizontal" ? "minWidth" : null,
668
+ getPopupContainer: f,
669
+ builtinPlacements: W,
670
+ popupPlacement: O,
671
+ popupVisible: _,
672
+ popup: i,
673
+ popupStyle: o,
674
+ popupAlign: u && {
675
+ offset: u
676
+ },
677
+ action: d ? [] : [I],
678
+ mouseEnterDelay: h,
679
+ mouseLeaveDelay: S,
680
+ onPopupVisibleChange: g,
681
+ forceRender: P,
682
+ popupMotion: B,
683
+ fresh: !0
684
+ }, n);
685
+ }
686
+ function jr(e) {
687
+ var r = e.id, a = e.open, n = e.keyPath, i = e.children, o = "inline", l = t.useContext(ae), u = l.prefixCls, d = l.forceSubMenuRender, s = l.motion, g = l.defaultMotions, c = l.mode, f = t.useRef(!1);
688
+ f.current = c === o;
689
+ var b = t.useState(!f.current), h = $(b, 2), S = h[0], C = h[1], I = f.current ? a : !1;
690
+ t.useEffect(function() {
691
+ f.current && C(!1);
692
+ }, [c]);
693
+ var P = A({}, pt(o, s, g));
694
+ n.length > 1 && (P.motionAppear = !1);
695
+ var v = P.onVisibleChanged;
696
+ return P.onVisibleChanged = function(m) {
697
+ return !f.current && !m && C(!0), v == null ? void 0 : v(m);
698
+ }, S ? null : /* @__PURE__ */ t.createElement(Ve, {
699
+ mode: o,
700
+ locked: !f.current
701
+ }, /* @__PURE__ */ t.createElement(ar, L({
702
+ visible: I
703
+ }, P, {
704
+ forceRender: d,
705
+ removeOnLeave: !1,
706
+ leavedClassName: "".concat(u, "-hidden")
707
+ }), function(m) {
708
+ var y = m.className, p = m.style;
709
+ return /* @__PURE__ */ t.createElement(Nn, {
710
+ id: r,
711
+ className: y,
712
+ style: p
713
+ }, i);
714
+ }));
715
+ }
716
+ var Br = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], Hr = ["active"], Gr = /* @__PURE__ */ t.forwardRef(function(e, r) {
717
+ var a = e.style, n = e.className, i = e.title, o = e.eventKey, l = e.warnKey, u = e.disabled, d = e.internalPopupClose, s = e.children, g = e.itemIcon, c = e.expandIcon, f = e.popupClassName, b = e.popupOffset, h = e.popupStyle, S = e.onClick, C = e.onMouseEnter, I = e.onMouseLeave, P = e.onTitleClick, v = e.onTitleMouseEnter, m = e.onTitleMouseLeave, y = te(e, Br), p = lt(o), R = t.useContext(ae), _ = R.prefixCls, E = R.mode, W = R.openKeys, O = R.disabled, K = R.overflowDisabled, j = R.activeKey, B = R.selectedKeys, H = R.itemIcon, Y = R.expandIcon, T = R.onItemClick, q = R.onOpenChange, V = R.onActive, Q = t.useContext(En), oe = Q._internalRenderSubMenuItem, le = t.useContext(ct), se = le.isSubPathKey, ce = Fe(), F = "".concat(_, "-submenu"), z = O || u, ee = t.useRef(), D = t.useRef();
718
+ process.env.NODE_ENV !== "production" && l && we(!1, "SubMenu should not leave undefined `key`.");
719
+ var ne = g ?? H, G = c ?? Y, ue = W.includes(o), ve = !K && ue, ze = se(B, o), Ie = dt(o, z, v, m), ge = Ie.active, an = te(Ie, Hr), on = t.useState(!1), Ue = $(on, 2), Pe = Ue[0], We = Ue[1], Ne = function(k) {
720
+ z || We(k);
721
+ }, ln = function(k) {
722
+ Ne(!0), C == null || C({
723
+ key: o,
724
+ domEvent: k
725
+ });
726
+ }, un = function(k) {
727
+ Ne(!1), I == null || I({
728
+ key: o,
729
+ domEvent: k
730
+ });
731
+ }, _e = t.useMemo(function() {
732
+ return ge || (E !== "inline" ? Pe || se([j], o) : !1);
733
+ }, [E, ge, j, Pe, o, se]), fe = vt(ce.length), sn = function(k) {
734
+ z || (P == null || P({
735
+ key: o,
736
+ domEvent: k
737
+ }), E === "inline" && q(o, !ue));
738
+ }, cn = Le(function(re) {
739
+ S == null || S(en(re)), T(re);
740
+ }), je = function(k) {
741
+ E !== "inline" && q(o, k);
742
+ }, Be = function() {
743
+ V(o);
744
+ }, Ke = p && "".concat(p, "-popup"), me = /* @__PURE__ */ t.createElement("div", L({
745
+ role: "menuitem",
746
+ style: fe,
747
+ className: "".concat(F, "-title"),
748
+ tabIndex: z ? null : -1,
749
+ ref: ee,
750
+ title: typeof i == "string" ? i : null,
751
+ "data-menu-id": K && p ? null : p,
752
+ "aria-expanded": ve,
753
+ "aria-haspopup": !0,
754
+ "aria-controls": Ke,
755
+ "aria-disabled": z,
756
+ onClick: sn,
757
+ onFocus: Be
758
+ }, an), i, /* @__PURE__ */ t.createElement(mt, {
759
+ icon: E !== "horizontal" ? G : void 0,
760
+ props: A(A({}, e), {}, {
761
+ isOpen: ve,
762
+ // [Legacy] Not sure why need this mark
763
+ isSubMenu: !0
764
+ })
765
+ }, /* @__PURE__ */ t.createElement("i", {
766
+ className: "".concat(F, "-arrow")
767
+ }))), he = t.useRef(E);
768
+ if (E !== "inline" && ce.length > 1 ? he.current = "vertical" : he.current = E, !K) {
769
+ var Ce = he.current;
770
+ me = /* @__PURE__ */ t.createElement(Wr, {
771
+ mode: Ce,
772
+ prefixCls: F,
773
+ visible: !d && ve && E !== "inline",
774
+ popupClassName: f,
775
+ popupOffset: b,
776
+ popupStyle: h,
777
+ popup: /* @__PURE__ */ t.createElement(
778
+ Ve,
779
+ {
780
+ mode: Ce === "horizontal" ? "vertical" : Ce
781
+ },
782
+ /* @__PURE__ */ t.createElement(Nn, {
783
+ id: Ke,
784
+ ref: D
785
+ }, s)
786
+ ),
787
+ disabled: z,
788
+ onVisibleChange: je
789
+ }, me);
790
+ }
791
+ var Oe = /* @__PURE__ */ t.createElement(Te.Item, L({
792
+ ref: r,
793
+ role: "none"
794
+ }, y, {
795
+ component: "li",
796
+ style: a,
797
+ className: de(F, "".concat(F, "-").concat(E), n, w(w(w(w({}, "".concat(F, "-open"), ve), "".concat(F, "-active"), _e), "".concat(F, "-selected"), ze), "".concat(F, "-disabled"), z)),
798
+ onMouseEnter: ln,
799
+ onMouseLeave: un
800
+ }), me, !K && /* @__PURE__ */ t.createElement(jr, {
801
+ id: Ke,
802
+ open: ve,
803
+ keyPath: ce
804
+ }, s));
805
+ return oe && (Oe = oe(Oe, e, {
806
+ selected: ze,
807
+ active: _e,
808
+ open: ve,
809
+ disabled: z
810
+ })), /* @__PURE__ */ t.createElement(Ve, {
811
+ onItemClick: cn,
812
+ mode: E === "horizontal" ? "vertical" : E,
813
+ itemIcon: ne,
814
+ expandIcon: G
815
+ }, Oe);
816
+ }), tn = /* @__PURE__ */ t.forwardRef(function(e, r) {
817
+ var a = e.eventKey, n = e.children, i = Fe(a), o = _n(n, i), l = nn();
818
+ t.useEffect(function() {
819
+ if (l)
820
+ return l.registerPath(a, i), function() {
821
+ l.unregisterPath(a, i);
822
+ };
823
+ }, [i]);
824
+ var u;
825
+ return l ? u = o : u = /* @__PURE__ */ t.createElement(Gr, L({
826
+ ref: r
827
+ }, e), o), /* @__PURE__ */ t.createElement(st.Provider, {
828
+ value: i
829
+ }, u);
830
+ });
831
+ process.env.NODE_ENV !== "production" && (tn.displayName = "SubMenu");
832
+ function gt(e) {
833
+ var r = e.className, a = e.style, n = t.useContext(ae), i = n.prefixCls, o = nn();
834
+ return o ? null : /* @__PURE__ */ t.createElement("li", {
835
+ role: "separator",
836
+ className: de("".concat(i, "-item-divider"), r),
837
+ style: a
838
+ });
839
+ }
840
+ var qr = ["className", "title", "eventKey", "children"], Yr = /* @__PURE__ */ t.forwardRef(function(e, r) {
841
+ var a = e.className, n = e.title;
842
+ e.eventKey;
843
+ var i = e.children, o = te(e, qr), l = t.useContext(ae), u = l.prefixCls, d = "".concat(u, "-item-group");
844
+ return /* @__PURE__ */ t.createElement("li", L({
845
+ ref: r,
846
+ role: "presentation"
847
+ }, o, {
848
+ onClick: function(g) {
849
+ return g.stopPropagation();
850
+ },
851
+ className: de(d, a)
852
+ }), /* @__PURE__ */ t.createElement("div", {
853
+ role: "presentation",
854
+ className: "".concat(d, "-title"),
855
+ title: typeof n == "string" ? n : void 0
856
+ }, n), /* @__PURE__ */ t.createElement("ul", {
857
+ role: "group",
858
+ className: "".concat(d, "-list")
859
+ }, i));
860
+ }), Kn = /* @__PURE__ */ t.forwardRef(function(e, r) {
861
+ var a = e.eventKey, n = e.children, i = Fe(a), o = _n(n, i), l = nn();
862
+ return l ? o : /* @__PURE__ */ t.createElement(Yr, L({
863
+ ref: r
864
+ }, Sn(e, ["warnKey"])), o);
865
+ });
866
+ process.env.NODE_ENV !== "production" && (Kn.displayName = "MenuItemGroup");
867
+ var Xr = ["label", "children", "key", "type", "extra"];
868
+ function Rn(e, r, a) {
869
+ var n = r.item, i = r.group, o = r.submenu, l = r.divider;
870
+ return (e || []).map(function(u, d) {
871
+ if (u && Gt(u) === "object") {
872
+ var s = u, g = s.label, c = s.children, f = s.key, b = s.type, h = s.extra, S = te(s, Xr), C = f ?? "tmp-".concat(d);
873
+ return c || b === "group" ? b === "group" ? /* @__PURE__ */ t.createElement(i, L({
874
+ key: C
875
+ }, S, {
876
+ title: g
877
+ }), Rn(c, r, a)) : /* @__PURE__ */ t.createElement(o, L({
878
+ key: C
879
+ }, S, {
880
+ title: g
881
+ }), Rn(c, r, a)) : b === "divider" ? /* @__PURE__ */ t.createElement(l, L({
882
+ key: C
883
+ }, S)) : /* @__PURE__ */ t.createElement(n, L({
884
+ key: C
885
+ }, S, {
886
+ extra: h
887
+ }), g, (!!h || h === 0) && /* @__PURE__ */ t.createElement("span", {
888
+ className: "".concat(a, "-item-extra")
889
+ }, h));
890
+ }
891
+ return null;
892
+ }).filter(function(u) {
893
+ return u;
894
+ });
895
+ }
896
+ function Qn(e, r, a, n, i) {
897
+ var o = e, l = A({
898
+ divider: gt,
899
+ item: Pn,
900
+ group: Kn,
901
+ submenu: tn
902
+ }, n);
903
+ return r && (o = Rn(r, l, i)), _n(o, a);
904
+ }
905
+ var Zr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], ye = [], Jr = /* @__PURE__ */ t.forwardRef(function(e, r) {
906
+ var a, n = e, i = n.prefixCls, o = i === void 0 ? "rc-menu" : i, l = n.rootClassName, u = n.style, d = n.className, s = n.tabIndex, g = s === void 0 ? 0 : s, c = n.items, f = n.children, b = n.direction, h = n.id, S = n.mode, C = S === void 0 ? "vertical" : S, I = n.inlineCollapsed, P = n.disabled, v = n.disabledOverflow, m = n.subMenuOpenDelay, y = m === void 0 ? 0.1 : m, p = n.subMenuCloseDelay, R = p === void 0 ? 0.1 : p, _ = n.forceSubMenuRender, E = n.defaultOpenKeys, W = n.openKeys, O = n.activeKey, K = n.defaultActiveFirst, j = n.selectable, B = j === void 0 ? !0 : j, H = n.multiple, Y = H === void 0 ? !1 : H, T = n.defaultSelectedKeys, q = n.selectedKeys, V = n.onSelect, Q = n.onDeselect, oe = n.inlineIndent, le = oe === void 0 ? 24 : oe, se = n.motion, ce = n.defaultMotions, F = n.triggerSubMenuAction, z = F === void 0 ? "hover" : F, ee = n.builtinPlacements, D = n.itemIcon, ne = n.expandIcon, G = n.overflowedIndicator, ue = G === void 0 ? "..." : G, ve = n.overflowedIndicatorPopupClassName, ze = n.getPopupContainer, Ie = n.onClick, ge = n.onOpenChange, an = n.onKeyDown, on = n.openAnimation, Ue = n.openTransitionName, Pe = n._internalRenderMenuItem, We = n._internalRenderSubMenuItem, Ne = n._internalComponents, ln = te(n, Zr), un = t.useMemo(function() {
907
+ return [Qn(f, c, ye, Ne, o), Qn(f, c, ye, {}, o)];
908
+ }, [f, c, Ne]), _e = $(un, 2), fe = _e[0], sn = _e[1], cn = t.useState(!1), je = $(cn, 2), Be = je[0], Ke = je[1], me = t.useRef(), he = _r(h), Ce = b === "rtl";
909
+ process.env.NODE_ENV !== "production" && we(!on && !Ue, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
910
+ var Oe = Ze(E, {
911
+ value: W,
912
+ postState: function(M) {
913
+ return M || ye;
914
+ }
915
+ }), re = $(Oe, 2), k = re[0], On = re[1], fn = function(M) {
916
+ var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
917
+ function X() {
918
+ On(M), ge == null || ge(M);
919
+ }
920
+ x ? ir.flushSync(X) : X();
921
+ }, ht = t.useState(k), kn = $(ht, 2), Ct = kn[0], bt = kn[1], dn = t.useRef(!1), yt = t.useMemo(function() {
922
+ return (C === "inline" || C === "vertical") && I ? ["vertical", I] : [C, !1];
923
+ }, [C, I]), An = $(yt, 2), He = An[0], vn = An[1], Dn = He === "inline", Mt = t.useState(He), $n = $(Mt, 2), pe = $n[0], It = $n[1], Rt = t.useState(vn), Ln = $(Rt, 2), St = Ln[0], Et = Ln[1];
924
+ t.useEffect(function() {
925
+ It(He), Et(vn), dn.current && (Dn ? On(Ct) : fn(ye));
926
+ }, [He, vn]);
927
+ var xt = t.useState(0), Tn = $(xt, 2), Ge = Tn[0], wt = Tn[1], mn = Ge >= fe.length - 1 || pe !== "horizontal" || v;
928
+ t.useEffect(function() {
929
+ Dn && bt(k);
930
+ }, [k]), t.useEffect(function() {
931
+ return dn.current = !0, function() {
932
+ dn.current = !1;
933
+ };
934
+ }, []);
935
+ var be = Pr(), Vn = be.registerPath, Fn = be.unregisterPath, Pt = be.refreshOverflowKeys, zn = be.isSubPathKey, Nt = be.getKeyPath, Un = be.getKeys, _t = be.getSubPathKeys, Kt = t.useMemo(function() {
936
+ return {
937
+ registerPath: Vn,
938
+ unregisterPath: Fn
939
+ };
940
+ }, [Vn, Fn]), Ot = t.useMemo(function() {
941
+ return {
942
+ isSubPathKey: zn
943
+ };
944
+ }, [zn]);
945
+ t.useEffect(function() {
946
+ Pt(mn ? ye : fe.slice(Ge + 1).map(function(N) {
947
+ return N.key;
948
+ }));
949
+ }, [Ge, mn]);
950
+ var kt = Ze(O || K && ((a = fe[0]) === null || a === void 0 ? void 0 : a.key), {
951
+ value: O
952
+ }), Wn = $(kt, 2), ke = Wn[0], pn = Wn[1], At = Le(function(N) {
953
+ pn(N);
954
+ }), Dt = Le(function() {
955
+ pn(void 0);
956
+ });
957
+ Xt(r, function() {
958
+ return {
959
+ list: me.current,
960
+ focus: function(M) {
961
+ var x, X = Un(), Z = Mn(X, he), Ye = Z.elements, gn = Z.key2element, Bt = Z.element2key, Hn = xn(me.current, Ye), Gn = ke ?? (Hn[0] ? Bt.get(Hn[0]) : (x = fe.find(function(Ht) {
962
+ return !Ht.props.disabled;
963
+ })) === null || x === void 0 ? void 0 : x.key), Ae = gn.get(Gn);
964
+ if (Gn && Ae) {
965
+ var hn;
966
+ Ae == null || (hn = Ae.focus) === null || hn === void 0 || hn.call(Ae, M);
967
+ }
968
+ }
969
+ };
970
+ });
971
+ var $t = Ze(T || [], {
972
+ value: q,
973
+ // Legacy convert key to array
974
+ postState: function(M) {
975
+ return Array.isArray(M) ? M : M == null ? ye : [M];
976
+ }
977
+ }), jn = $($t, 2), qe = jn[0], Lt = jn[1], Tt = function(M) {
978
+ if (B) {
979
+ var x = M.key, X = qe.includes(x), Z;
980
+ Y ? X ? Z = qe.filter(function(gn) {
981
+ return gn !== x;
982
+ }) : Z = [].concat(Me(qe), [x]) : Z = [x], Lt(Z);
983
+ var Ye = A(A({}, M), {}, {
984
+ selectedKeys: Z
985
+ });
986
+ X ? Q == null || Q(Ye) : V == null || V(Ye);
987
+ }
988
+ !Y && k.length && pe !== "inline" && fn(ye);
989
+ }, Vt = Le(function(N) {
990
+ Ie == null || Ie(en(N)), Tt(N);
991
+ }), Bn = Le(function(N, M) {
992
+ var x = k.filter(function(Z) {
993
+ return Z !== N;
994
+ });
995
+ if (M)
996
+ x.push(N);
997
+ else if (pe !== "inline") {
998
+ var X = _t(N);
999
+ x = x.filter(function(Z) {
1000
+ return !X.has(Z);
1001
+ });
1002
+ }
1003
+ at(k, x, !0) || fn(x, !0);
1004
+ }), Ft = function(M, x) {
1005
+ var X = x ?? !k.includes(M);
1006
+ Bn(M, X);
1007
+ }, zt = Er(pe, ke, Ce, he, me, Un, Nt, pn, Ft, an);
1008
+ t.useEffect(function() {
1009
+ Ke(!0);
1010
+ }, []);
1011
+ var Ut = t.useMemo(function() {
1012
+ return {
1013
+ _internalRenderMenuItem: Pe,
1014
+ _internalRenderSubMenuItem: We
1015
+ };
1016
+ }, [Pe, We]), Wt = pe !== "horizontal" || v ? fe : (
1017
+ // Need wrap for overflow dropdown that do not response for open
1018
+ fe.map(function(N, M) {
1019
+ return (
1020
+ // Always wrap provider to avoid sub node re-mount
1021
+ /* @__PURE__ */ t.createElement(Ve, {
1022
+ key: N.key,
1023
+ overflowDisabled: M > Ge
1024
+ }, N)
1025
+ );
1026
+ })
1027
+ ), jt = /* @__PURE__ */ t.createElement(Te, L({
1028
+ id: h,
1029
+ ref: me,
1030
+ prefixCls: "".concat(o, "-overflow"),
1031
+ component: "ul",
1032
+ itemComponent: Pn,
1033
+ className: de(o, "".concat(o, "-root"), "".concat(o, "-").concat(pe), d, w(w({}, "".concat(o, "-inline-collapsed"), St), "".concat(o, "-rtl"), Ce), l),
1034
+ dir: b,
1035
+ style: u,
1036
+ role: "menu",
1037
+ tabIndex: g,
1038
+ data: Wt,
1039
+ renderRawItem: function(M) {
1040
+ return M;
1041
+ },
1042
+ renderRawRest: function(M) {
1043
+ var x = M.length, X = x ? fe.slice(-x) : null;
1044
+ return /* @__PURE__ */ t.createElement(tn, {
1045
+ eventKey: In,
1046
+ title: ue,
1047
+ disabled: mn,
1048
+ internalPopupClose: x === 0,
1049
+ popupClassName: ve
1050
+ }, X);
1051
+ },
1052
+ maxCount: pe !== "horizontal" || v ? Te.INVALIDATE : Te.RESPONSIVE,
1053
+ ssr: "full",
1054
+ "data-menu-list": !0,
1055
+ onVisibleChange: function(M) {
1056
+ wt(M);
1057
+ },
1058
+ onKeyDown: zt
1059
+ }, ln));
1060
+ return /* @__PURE__ */ t.createElement(En.Provider, {
1061
+ value: Ut
1062
+ }, /* @__PURE__ */ t.createElement(it.Provider, {
1063
+ value: he
1064
+ }, /* @__PURE__ */ t.createElement(Ve, {
1065
+ prefixCls: o,
1066
+ rootClassName: l,
1067
+ mode: pe,
1068
+ openKeys: k,
1069
+ rtl: Ce,
1070
+ disabled: P,
1071
+ motion: Be ? se : null,
1072
+ defaultMotions: Be ? ce : null,
1073
+ activeKey: ke,
1074
+ onActive: At,
1075
+ onInactive: Dt,
1076
+ selectedKeys: qe,
1077
+ inlineIndent: le,
1078
+ subMenuOpenDelay: y,
1079
+ subMenuCloseDelay: R,
1080
+ forceSubMenuRender: _,
1081
+ builtinPlacements: ee,
1082
+ triggerSubMenuAction: z,
1083
+ getPopupContainer: ze,
1084
+ itemIcon: D,
1085
+ expandIcon: ne,
1086
+ onItemClick: Vt,
1087
+ onOpenChange: Bn
1088
+ }, /* @__PURE__ */ t.createElement(ct.Provider, {
1089
+ value: Ot
1090
+ }, jt), /* @__PURE__ */ t.createElement("div", {
1091
+ style: {
1092
+ display: "none"
1093
+ },
1094
+ "aria-hidden": !0
1095
+ }, /* @__PURE__ */ t.createElement(ut.Provider, {
1096
+ value: Kt
1097
+ }, sn)))));
1098
+ }), rn = Jr;
1099
+ rn.Item = Pn;
1100
+ rn.SubMenu = tn;
1101
+ rn.ItemGroup = Kn;
1102
+ rn.Divider = gt;
1103
+ export {
1104
+ gt as D,
1105
+ rn as E,
1106
+ Pn as M,
1107
+ cr as R,
1108
+ tn as S,
1109
+ Kn as a,
1110
+ la as b,
1111
+ Fe as u
1112
+ };