@bbki.ng/components 2.6.16 → 3.0.0

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 (149) hide show
  1. package/dist/Button.d.ts +1 -0
  2. package/dist/_virtual/_commonjsHelpers.mjs +6 -0
  3. package/dist/_virtual/index.mjs +4 -0
  4. package/dist/_virtual/jsx-runtime.mjs +7 -0
  5. package/dist/_virtual/jsx-runtime2.mjs +4 -0
  6. package/dist/_virtual/react-jsx-runtime.development.mjs +4 -0
  7. package/dist/_virtual/react-jsx-runtime.production.min.mjs +4 -0
  8. package/dist/article/Article.d.ts +11 -0
  9. package/dist/article/Article.mjs +43 -0
  10. package/dist/blink-dot/BlinkDot.d.ts +5 -0
  11. package/dist/blink-dot/BlinkDot.mjs +20 -0
  12. package/dist/blur-cover/BlurCover.d.ts +6 -0
  13. package/dist/blur-cover/BlurCover.mjs +28 -0
  14. package/dist/breadcrumb/Breadcrumb.d.ts +9 -0
  15. package/dist/breadcrumb/Breadcrumb.mjs +35 -0
  16. package/dist/button/Button.d.ts +18 -0
  17. package/dist/button/Button.mjs +35 -0
  18. package/dist/canvas/Canvas.d.ts +23 -0
  19. package/dist/canvas/Canvas.mjs +85 -0
  20. package/dist/canvas/useRenderer.d.ts +10 -0
  21. package/dist/canvas/useRenderer.mjs +31 -0
  22. package/dist/context-menu/index.d.ts +27 -0
  23. package/dist/context-menu/index.mjs +131 -0
  24. package/dist/drop-image/DropImage.d.ts +25 -0
  25. package/dist/drop-image/DropImage.mjs +151 -0
  26. package/dist/drop-image/useDropImage.d.ts +19 -0
  27. package/dist/drop-image/useDropImage.mjs +67 -0
  28. package/dist/drop-image/utils.d.ts +2 -0
  29. package/dist/drop-image/utils.mjs +4 -0
  30. package/dist/drop-zone/DropZone.d.ts +9 -0
  31. package/dist/drop-zone/DropZone.mjs +44 -0
  32. package/dist/img/Gallery.d.ts +11 -0
  33. package/dist/img/Gallery.mjs +37 -0
  34. package/dist/img/Img.d.ts +3 -0
  35. package/dist/img/Img.mjs +80 -0
  36. package/dist/img/RandomRowsLayout.d.ts +9 -0
  37. package/dist/img/RandomRowsLayout.mjs +49 -0
  38. package/dist/img/types.d.ts +21 -0
  39. package/dist/img/types.mjs +4 -0
  40. package/dist/img/utils.d.ts +7 -0
  41. package/dist/img/utils.mjs +15 -0
  42. package/dist/index.d.ts +25 -380
  43. package/dist/index.mjs +79 -0
  44. package/dist/input/index.d.ts +3 -0
  45. package/dist/input/index.mjs +17 -0
  46. package/dist/label/index.d.ts +5 -0
  47. package/dist/label/index.mjs +17 -0
  48. package/dist/layout/layout.d.ts +7 -0
  49. package/dist/layout/layout.mjs +27 -0
  50. package/dist/link/Link.d.ts +17 -0
  51. package/dist/link/Link.mjs +83 -0
  52. package/dist/list/list.d.ts +23 -0
  53. package/dist/list/list.mjs +76 -0
  54. package/dist/loading-spiral/LoadingSpiral.d.ts +5 -0
  55. package/dist/loading-spiral/LoadingSpiral.mjs +37 -0
  56. package/dist/loading-spiral/constants.d.ts +6 -0
  57. package/dist/loading-spiral/constants.mjs +61 -0
  58. package/dist/loading-spiral/createOptions.d.ts +17 -0
  59. package/dist/loading-spiral/createOptions.mjs +30 -0
  60. package/dist/loading-spiral/createSettings.d.ts +16 -0
  61. package/dist/loading-spiral/createSettings.mjs +21 -0
  62. package/dist/loading-spiral/useCanvasRef.d.ts +4 -0
  63. package/dist/loading-spiral/utils.d.ts +1 -0
  64. package/dist/logo/Logo.d.ts +6 -0
  65. package/dist/logo/Logo.mjs +36 -0
  66. package/dist/nav/Nav.d.ts +10 -0
  67. package/dist/nav/Nav.mjs +27 -0
  68. package/dist/node_modules/.pnpm/@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  69. package/dist/node_modules/.pnpm/@floating-ui_core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +519 -0
  70. package/dist/node_modules/.pnpm/@floating-ui_dom@1.6.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +373 -0
  71. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.0.8_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +182 -0
  72. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +108 -0
  73. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +120 -0
  74. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs +9 -0
  75. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-arrow/dist/index.mjs +19 -0
  76. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom_04e7d2b59cf7ec97f40d26a998d7601d/node_modules/@radix-ui/react-collection/dist/index.mjs +60 -0
  77. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +16 -0
  78. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +25 -0
  79. package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.1.5_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_1ce4db5e792f73d797e22c043cc3d326/node_modules/@radix-ui/react-context-menu/dist/index.mjs +213 -0
  80. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +88 -0
  81. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs +9 -0
  82. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.5_@types_react-dom@18.0.6_@types_react@18.0.15_re_0263a24376d55e4c2bb8fa2f75f1db3c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +136 -0
  83. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +20 -0
  84. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-do_a79d961df31bbecb3b2c94878dbb0724/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +188 -0
  85. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +61 -0
  86. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.mjs +18 -0
  87. package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-label/dist/index.mjs +20 -0
  88. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.0.6_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-menu/dist/index.mjs +657 -0
  89. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.1.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popper/dist/index.mjs +218 -0
  90. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.mjs +14 -0
  91. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.mjs +81 -0
  92. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs +44 -0
  93. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs +31 -0
  94. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_69cf2e3e4b4e2c2fefdb8ea262543b5e/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +199 -0
  95. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs +53 -0
  96. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs +48 -0
  97. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +16 -0
  98. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +37 -0
  99. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.3_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +17 -0
  100. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +6 -0
  101. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs +37 -0
  102. package/dist/node_modules/.pnpm/aria-hidden@1.2.3/node_modules/aria-hidden/dist/es2015/index.mjs +49 -0
  103. package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs +6 -0
  104. package/dist/node_modules/.pnpm/classnames@2.3.1/node_modules/classnames/index.mjs +40 -0
  105. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs +23 -0
  106. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +7 -0
  107. package/dist/node_modules/.pnpm/phenomenon@1.6.0/node_modules/phenomenon/dist/phenomenon.mjs +109 -0
  108. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +61 -0
  109. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +7 -0
  110. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +25 -0
  111. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +17 -0
  112. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +116 -0
  113. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.mjs +46 -0
  114. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +16 -0
  115. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +62 -0
  116. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.mjs +5 -0
  117. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +7 -0
  118. package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs +11 -0
  119. package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/hook.mjs +15 -0
  120. package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/singleton.mjs +30 -0
  121. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +589 -0
  122. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
  123. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.mjs +8 -0
  124. package/dist/node_modules/.pnpm/tslib@2.4.1/node_modules/tslib/tslib.es6.mjs +29 -0
  125. package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +6 -0
  126. package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +26 -0
  127. package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useRef.mjs +25 -0
  128. package/dist/node_modules/.pnpm/use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs +21 -0
  129. package/dist/node_modules/.pnpm/use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/medium.mjs +67 -0
  130. package/dist/page/Page.d.ts +28 -0
  131. package/dist/page/Page.mjs +67 -0
  132. package/dist/panel/Panel.d.ts +6 -0
  133. package/dist/panel/Panel.mjs +17 -0
  134. package/dist/pop-confirm/PopConfirm.d.ts +10 -0
  135. package/dist/pop-confirm/PopConfirm.mjs +40 -0
  136. package/dist/skeleton/Seleton.d.ts +23 -0
  137. package/dist/skeleton/Seleton.mjs +69 -0
  138. package/dist/spinner/Spinner.d.ts +7 -0
  139. package/dist/table/Table.d.ts +18 -0
  140. package/dist/table/Table.mjs +34 -0
  141. package/dist/tag/Tag.d.ts +10 -0
  142. package/dist/tag/Tag.mjs +33 -0
  143. package/package.json +22 -13
  144. package/dist/index.cjs +0 -1816
  145. package/dist/index.cjs.map +0 -1
  146. package/dist/index.css +0 -1821
  147. package/dist/index.css.map +0 -1
  148. package/dist/index.js +0 -1738
  149. package/dist/index.js.map +0 -1
@@ -0,0 +1,657 @@
1
+ import M from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
2
+ import { forwardRef as g, useRef as h, useCallback as R, useEffect as w, createElement as s, useState as D, Fragment as Ge } from "react";
3
+ import { composeEventHandlers as v } from "../../../../../@radix-ui_primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs";
4
+ import { createCollection as Ne } from "../../../../../@radix-ui_react-collection@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom_04e7d2b59cf7ec97f40d26a998d7601d/node_modules/@radix-ui/react-collection/dist/index.mjs";
5
+ import { composeRefs as Ue, useComposedRefs as G } from "../../../../../@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs";
6
+ import { createContextScope as Ve } from "../../../../../@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs";
7
+ import { useDirection as Be } from "../../../../../@radix-ui_react-direction@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs";
8
+ import { DismissableLayer as Ye } from "../../../../../@radix-ui_react-dismissable-layer@1.0.5_@types_react-dom@18.0.6_@types_react@18.0.15_re_0263a24376d55e4c2bb8fa2f75f1db3c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs";
9
+ import { useFocusGuards as Xe } from "../../../../../@radix-ui_react-focus-guards@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs";
10
+ import { FocusScope as je } from "../../../../../@radix-ui_react-focus-scope@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-do_a79d961df31bbecb3b2c94878dbb0724/node_modules/@radix-ui/react-focus-scope/dist/index.mjs";
11
+ import { useId as me } from "../../../../../@radix-ui_react-id@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.mjs";
12
+ import { createPopperScope as ve, Anchor as He, Content as We, Root as Me } from "../../../../../@radix-ui_react-popper@1.1.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popper/dist/index.mjs";
13
+ import { Portal as ze } from "../../../../../@radix-ui_react-portal@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.mjs";
14
+ import { Presence as Z } from "../../../../../@radix-ui_react-presence@1.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.mjs";
15
+ import { Primitive as N, dispatchDiscreteCustomEvent as Ze } from "../../../../../@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs";
16
+ import { createRovingFocusGroupScope as Ce, Item as qe, Root as Je } from "../../../../../@radix-ui_react-roving-focus@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_69cf2e3e4b4e2c2fefdb8ea262543b5e/node_modules/@radix-ui/react-roving-focus/dist/index.mjs";
17
+ import { Slot as Qe } from "../../../../../@radix-ui_react-slot@1.0.2_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs";
18
+ import { useCallbackRef as ce } from "../../../../../@radix-ui_react-use-callback-ref@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs";
19
+ import { hideOthers as en } from "../../../../../aria-hidden@1.2.3/node_modules/aria-hidden/dist/es2015/index.mjs";
20
+ import nn from "../../../../../react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs";
21
+ const te = [
22
+ "Enter",
23
+ " "
24
+ ], tn = [
25
+ "ArrowDown",
26
+ "PageUp",
27
+ "Home"
28
+ ], ge = [
29
+ "ArrowUp",
30
+ "PageDown",
31
+ "End"
32
+ ], on = [
33
+ ...tn,
34
+ ...ge
35
+ ], cn = {
36
+ ltr: [
37
+ ...te,
38
+ "ArrowRight"
39
+ ],
40
+ rtl: [
41
+ ...te,
42
+ "ArrowLeft"
43
+ ]
44
+ }, rn = {
45
+ ltr: [
46
+ "ArrowLeft"
47
+ ],
48
+ rtl: [
49
+ "ArrowRight"
50
+ ]
51
+ }, q = "Menu", [L, an, sn] = Ne(q), [T, ct] = Ve(q, [
52
+ sn,
53
+ ve,
54
+ Ce
55
+ ]), J = ve(), he = Ce(), [_e, S] = T(q), [un, U] = T(q), dn = (e) => {
56
+ const { __scopeMenu: t, open: n = !1, children: o, dir: a, onOpenChange: c, modal: i = !0 } = e, $ = J(t), [p, m] = D(null), d = h(!1), r = ce(c), l = Be(a);
57
+ return w(() => {
58
+ const f = () => {
59
+ d.current = !0, document.addEventListener("pointerdown", b, {
60
+ capture: !0,
61
+ once: !0
62
+ }), document.addEventListener("pointermove", b, {
63
+ capture: !0,
64
+ once: !0
65
+ });
66
+ }, b = () => d.current = !1;
67
+ return document.addEventListener("keydown", f, {
68
+ capture: !0
69
+ }), () => {
70
+ document.removeEventListener("keydown", f, {
71
+ capture: !0
72
+ }), document.removeEventListener("pointerdown", b, {
73
+ capture: !0
74
+ }), document.removeEventListener("pointermove", b, {
75
+ capture: !0
76
+ });
77
+ };
78
+ }, []), /* @__PURE__ */ s(Me, $, /* @__PURE__ */ s(_e, {
79
+ scope: t,
80
+ open: n,
81
+ onOpenChange: r,
82
+ content: p,
83
+ onContentChange: m
84
+ }, /* @__PURE__ */ s(un, {
85
+ scope: t,
86
+ onClose: R(
87
+ () => r(!1),
88
+ [
89
+ r
90
+ ]
91
+ ),
92
+ isUsingKeyboardRef: d,
93
+ dir: l,
94
+ modal: i
95
+ }, o)));
96
+ }, xe = /* @__PURE__ */ g((e, t) => {
97
+ const { __scopeMenu: n, ...o } = e, a = J(n);
98
+ return /* @__PURE__ */ s(He, M({}, a, o, {
99
+ ref: t
100
+ }));
101
+ }), Pe = "MenuPortal", [ln, Ie] = T(Pe, {
102
+ forceMount: void 0
103
+ }), fn = (e) => {
104
+ const { __scopeMenu: t, forceMount: n, children: o, container: a } = e, c = S(Pe, t);
105
+ return /* @__PURE__ */ s(ln, {
106
+ scope: t,
107
+ forceMount: n
108
+ }, /* @__PURE__ */ s(Z, {
109
+ present: n || c.open
110
+ }, /* @__PURE__ */ s(ze, {
111
+ asChild: !0,
112
+ container: a
113
+ }, o)));
114
+ }, P = "MenuContent", [$n, re] = T(P), pn = /* @__PURE__ */ g((e, t) => {
115
+ const n = Ie(P, e.__scopeMenu), { forceMount: o = n.forceMount, ...a } = e, c = S(P, e.__scopeMenu), i = U(P, e.__scopeMenu);
116
+ return /* @__PURE__ */ s(L.Provider, {
117
+ scope: e.__scopeMenu
118
+ }, /* @__PURE__ */ s(Z, {
119
+ present: o || c.open
120
+ }, /* @__PURE__ */ s(L.Slot, {
121
+ scope: e.__scopeMenu
122
+ }, i.modal ? /* @__PURE__ */ s(mn, M({}, a, {
123
+ ref: t
124
+ })) : /* @__PURE__ */ s(bn, M({}, a, {
125
+ ref: t
126
+ })))));
127
+ }), mn = /* @__PURE__ */ g((e, t) => {
128
+ const n = S(P, e.__scopeMenu), o = h(null), a = G(t, o);
129
+ return w(() => {
130
+ const c = o.current;
131
+ if (c)
132
+ return en(c);
133
+ }, []), /* @__PURE__ */ s(ae, M({}, e, {
134
+ ref: a,
135
+ trapFocus: n.open,
136
+ disableOutsidePointerEvents: n.open,
137
+ disableOutsideScroll: !0,
138
+ onFocusOutside: v(
139
+ e.onFocusOutside,
140
+ (c) => c.preventDefault(),
141
+ {
142
+ checkForDefaultPrevented: !1
143
+ }
144
+ ),
145
+ onDismiss: () => n.onOpenChange(!1)
146
+ }));
147
+ }), bn = /* @__PURE__ */ g((e, t) => {
148
+ const n = S(P, e.__scopeMenu);
149
+ return /* @__PURE__ */ s(ae, M({}, e, {
150
+ ref: t,
151
+ trapFocus: !1,
152
+ disableOutsidePointerEvents: !1,
153
+ disableOutsideScroll: !1,
154
+ onDismiss: () => n.onOpenChange(!1)
155
+ }));
156
+ }), ae = /* @__PURE__ */ g((e, t) => {
157
+ const { __scopeMenu: n, loop: o = !1, trapFocus: a, onOpenAutoFocus: c, onCloseAutoFocus: i, disableOutsidePointerEvents: $, onEntryFocus: p, onEscapeKeyDown: m, onPointerDownOutside: d, onFocusOutside: r, onInteractOutside: l, onDismiss: f, disableOutsideScroll: b, ..._ } = e, y = S(P, n), k = U(P, n), V = J(n), B = he(n), ie = an(n), [De, de] = D(null), Y = h(null), ke = G(t, Y, y.onContentChange), X = h(0), j = h(""), Fe = h(0), Q = h(null), le = h("right"), ee = h(0), Ae = b ? nn : Ge, Le = b ? {
158
+ as: Qe,
159
+ allowPinchZoom: !0
160
+ } : void 0, Ke = (u) => {
161
+ var C, x;
162
+ const E = j.current + u, F = ie().filter(
163
+ (I) => !I.disabled
164
+ ), ne = document.activeElement, fe = (C = F.find(
165
+ (I) => I.ref.current === ne
166
+ )) === null || C === void 0 ? void 0 : C.textValue, H = F.map(
167
+ (I) => I.textValue
168
+ ), A = Fn(H, E, fe), $e = (x = F.find(
169
+ (I) => I.textValue === A
170
+ )) === null || x === void 0 ? void 0 : x.ref.current;
171
+ (function I(pe) {
172
+ j.current = pe, window.clearTimeout(X.current), pe !== "" && (X.current = window.setTimeout(
173
+ () => I(""),
174
+ 1e3
175
+ ));
176
+ })(E), $e && setTimeout(
177
+ () => $e.focus()
178
+ );
179
+ };
180
+ w(() => () => window.clearTimeout(X.current), []), Xe();
181
+ const O = R((u) => {
182
+ var C, x;
183
+ return le.current === ((C = Q.current) === null || C === void 0 ? void 0 : C.side) && Ln(u, (x = Q.current) === null || x === void 0 ? void 0 : x.area);
184
+ }, []);
185
+ return /* @__PURE__ */ s($n, {
186
+ scope: n,
187
+ searchRef: j,
188
+ onItemEnter: R((u) => {
189
+ O(u) && u.preventDefault();
190
+ }, [
191
+ O
192
+ ]),
193
+ onItemLeave: R((u) => {
194
+ var C;
195
+ O(u) || ((C = Y.current) === null || C === void 0 || C.focus(), de(null));
196
+ }, [
197
+ O
198
+ ]),
199
+ onTriggerLeave: R((u) => {
200
+ O(u) && u.preventDefault();
201
+ }, [
202
+ O
203
+ ]),
204
+ pointerGraceTimerRef: Fe,
205
+ onPointerGraceIntentChange: R((u) => {
206
+ Q.current = u;
207
+ }, [])
208
+ }, /* @__PURE__ */ s(Ae, Le, /* @__PURE__ */ s(je, {
209
+ asChild: !0,
210
+ trapped: a,
211
+ onMountAutoFocus: v(c, (u) => {
212
+ var C;
213
+ u.preventDefault(), (C = Y.current) === null || C === void 0 || C.focus();
214
+ }),
215
+ onUnmountAutoFocus: i
216
+ }, /* @__PURE__ */ s(Ye, {
217
+ asChild: !0,
218
+ disableOutsidePointerEvents: $,
219
+ onEscapeKeyDown: m,
220
+ onPointerDownOutside: d,
221
+ onFocusOutside: r,
222
+ onInteractOutside: l,
223
+ onDismiss: f
224
+ }, /* @__PURE__ */ s(Je, M({
225
+ asChild: !0
226
+ }, B, {
227
+ dir: k.dir,
228
+ orientation: "vertical",
229
+ loop: o,
230
+ currentTabStopId: De,
231
+ onCurrentTabStopIdChange: de,
232
+ onEntryFocus: v(p, (u) => {
233
+ k.isUsingKeyboardRef.current || u.preventDefault();
234
+ })
235
+ }), /* @__PURE__ */ s(We, M({
236
+ role: "menu",
237
+ "aria-orientation": "vertical",
238
+ "data-state": Oe(y.open),
239
+ "data-radix-menu-content": "",
240
+ dir: k.dir
241
+ }, V, _, {
242
+ ref: ke,
243
+ style: {
244
+ outline: "none",
245
+ ..._.style
246
+ },
247
+ onKeyDown: v(_.onKeyDown, (u) => {
248
+ const x = u.target.closest("[data-radix-menu-content]") === u.currentTarget, E = u.ctrlKey || u.altKey || u.metaKey, F = u.key.length === 1;
249
+ x && (u.key === "Tab" && u.preventDefault(), !E && F && Ke(u.key));
250
+ const ne = Y.current;
251
+ if (u.target !== ne || !on.includes(u.key))
252
+ return;
253
+ u.preventDefault();
254
+ const H = ie().filter(
255
+ (A) => !A.disabled
256
+ ).map(
257
+ (A) => A.ref.current
258
+ );
259
+ ge.includes(u.key) && H.reverse(), Dn(H);
260
+ }),
261
+ onBlur: v(e.onBlur, (u) => {
262
+ u.currentTarget.contains(u.target) || (window.clearTimeout(X.current), j.current = "");
263
+ }),
264
+ onPointerMove: v(e.onPointerMove, K((u) => {
265
+ const C = u.target, x = ee.current !== u.clientX;
266
+ if (u.currentTarget.contains(C) && x) {
267
+ const E = u.clientX > ee.current ? "right" : "left";
268
+ le.current = E, ee.current = u.clientX;
269
+ }
270
+ }))
271
+ })))))));
272
+ }), Se = /* @__PURE__ */ g((e, t) => {
273
+ const { __scopeMenu: n, ...o } = e;
274
+ return /* @__PURE__ */ s(N.div, M({
275
+ role: "group"
276
+ }, o, {
277
+ ref: t
278
+ }));
279
+ }), vn = /* @__PURE__ */ g((e, t) => {
280
+ const { __scopeMenu: n, ...o } = e;
281
+ return /* @__PURE__ */ s(N.div, M({}, o, {
282
+ ref: t
283
+ }));
284
+ }), oe = "MenuItem", be = "menu.itemSelect", se = /* @__PURE__ */ g((e, t) => {
285
+ const { disabled: n = !1, onSelect: o, ...a } = e, c = h(null), i = U(oe, e.__scopeMenu), $ = re(oe, e.__scopeMenu), p = G(t, c), m = h(!1), d = () => {
286
+ const r = c.current;
287
+ if (!n && r) {
288
+ const l = new CustomEvent(be, {
289
+ bubbles: !0,
290
+ cancelable: !0
291
+ });
292
+ r.addEventListener(
293
+ be,
294
+ (f) => o == null ? void 0 : o(f),
295
+ {
296
+ once: !0
297
+ }
298
+ ), Ze(r, l), l.defaultPrevented ? m.current = !1 : i.onClose();
299
+ }
300
+ };
301
+ return /* @__PURE__ */ s(Ee, M({}, a, {
302
+ ref: p,
303
+ disabled: n,
304
+ onClick: v(e.onClick, d),
305
+ onPointerDown: (r) => {
306
+ var l;
307
+ (l = e.onPointerDown) === null || l === void 0 || l.call(e, r), m.current = !0;
308
+ },
309
+ onPointerUp: v(e.onPointerUp, (r) => {
310
+ var l;
311
+ m.current || (l = r.currentTarget) === null || l === void 0 || l.click();
312
+ }),
313
+ onKeyDown: v(e.onKeyDown, (r) => {
314
+ const l = $.searchRef.current !== "";
315
+ n || l && r.key === " " || te.includes(r.key) && (r.currentTarget.click(), r.preventDefault());
316
+ })
317
+ }));
318
+ }), Ee = /* @__PURE__ */ g((e, t) => {
319
+ const { __scopeMenu: n, disabled: o = !1, textValue: a, ...c } = e, i = re(oe, n), $ = he(n), p = h(null), m = G(t, p), [d, r] = D(!1), [l, f] = D("");
320
+ return w(() => {
321
+ const b = p.current;
322
+ if (b) {
323
+ var _;
324
+ f(((_ = b.textContent) !== null && _ !== void 0 ? _ : "").trim());
325
+ }
326
+ }, [
327
+ c.children
328
+ ]), /* @__PURE__ */ s(L.ItemSlot, {
329
+ scope: n,
330
+ disabled: o,
331
+ textValue: a ?? l
332
+ }, /* @__PURE__ */ s(qe, M({
333
+ asChild: !0
334
+ }, $, {
335
+ focusable: !o
336
+ }), /* @__PURE__ */ s(N.div, M({
337
+ role: "menuitem",
338
+ "data-highlighted": d ? "" : void 0,
339
+ "aria-disabled": o || void 0,
340
+ "data-disabled": o ? "" : void 0
341
+ }, c, {
342
+ ref: m,
343
+ onPointerMove: v(e.onPointerMove, K((b) => {
344
+ o ? i.onItemLeave(b) : (i.onItemEnter(b), b.defaultPrevented || b.currentTarget.focus());
345
+ })),
346
+ onPointerLeave: v(e.onPointerLeave, K(
347
+ (b) => i.onItemLeave(b)
348
+ )),
349
+ onFocus: v(
350
+ e.onFocus,
351
+ () => r(!0)
352
+ ),
353
+ onBlur: v(
354
+ e.onBlur,
355
+ () => r(!1)
356
+ )
357
+ }))));
358
+ }), Mn = /* @__PURE__ */ g((e, t) => {
359
+ const { checked: n = !1, onCheckedChange: o, ...a } = e;
360
+ return /* @__PURE__ */ s(we, {
361
+ scope: e.__scopeMenu,
362
+ checked: n
363
+ }, /* @__PURE__ */ s(se, M({
364
+ role: "menuitemcheckbox",
365
+ "aria-checked": z(n) ? "mixed" : n
366
+ }, a, {
367
+ ref: t,
368
+ "data-state": ue(n),
369
+ onSelect: v(
370
+ a.onSelect,
371
+ () => o == null ? void 0 : o(z(n) ? !0 : !n),
372
+ {
373
+ checkForDefaultPrevented: !1
374
+ }
375
+ )
376
+ })));
377
+ }), Cn = "MenuRadioGroup", [gn, hn] = T(Cn, {
378
+ value: void 0,
379
+ onValueChange: () => {
380
+ }
381
+ }), _n = /* @__PURE__ */ g((e, t) => {
382
+ const { value: n, onValueChange: o, ...a } = e, c = ce(o);
383
+ return /* @__PURE__ */ s(gn, {
384
+ scope: e.__scopeMenu,
385
+ value: n,
386
+ onValueChange: c
387
+ }, /* @__PURE__ */ s(Se, M({}, a, {
388
+ ref: t
389
+ })));
390
+ }), xn = "MenuRadioItem", Pn = /* @__PURE__ */ g((e, t) => {
391
+ const { value: n, ...o } = e, a = hn(xn, e.__scopeMenu), c = n === a.value;
392
+ return /* @__PURE__ */ s(we, {
393
+ scope: e.__scopeMenu,
394
+ checked: c
395
+ }, /* @__PURE__ */ s(se, M({
396
+ role: "menuitemradio",
397
+ "aria-checked": c
398
+ }, o, {
399
+ ref: t,
400
+ "data-state": ue(c),
401
+ onSelect: v(o.onSelect, () => {
402
+ var i;
403
+ return (i = a.onValueChange) === null || i === void 0 ? void 0 : i.call(a, n);
404
+ }, {
405
+ checkForDefaultPrevented: !1
406
+ })
407
+ })));
408
+ }), Re = "MenuItemIndicator", [we, In] = T(Re, {
409
+ checked: !1
410
+ }), Sn = /* @__PURE__ */ g((e, t) => {
411
+ const { __scopeMenu: n, forceMount: o, ...a } = e, c = In(Re, n);
412
+ return /* @__PURE__ */ s(Z, {
413
+ present: o || z(c.checked) || c.checked === !0
414
+ }, /* @__PURE__ */ s(N.span, M({}, a, {
415
+ ref: t,
416
+ "data-state": ue(c.checked)
417
+ })));
418
+ }), En = /* @__PURE__ */ g((e, t) => {
419
+ const { __scopeMenu: n, ...o } = e;
420
+ return /* @__PURE__ */ s(N.div, M({
421
+ role: "separator",
422
+ "aria-orientation": "horizontal"
423
+ }, o, {
424
+ ref: t
425
+ }));
426
+ }), Te = "MenuSub", [Rn, ye] = T(Te), wn = (e) => {
427
+ const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: a } = e, c = S(Te, t), i = J(t), [$, p] = D(null), [m, d] = D(null), r = ce(a);
428
+ return w(() => (c.open === !1 && r(!1), () => r(!1)), [
429
+ c.open,
430
+ r
431
+ ]), /* @__PURE__ */ s(Me, i, /* @__PURE__ */ s(_e, {
432
+ scope: t,
433
+ open: o,
434
+ onOpenChange: r,
435
+ content: m,
436
+ onContentChange: d
437
+ }, /* @__PURE__ */ s(Rn, {
438
+ scope: t,
439
+ contentId: me(),
440
+ triggerId: me(),
441
+ trigger: $,
442
+ onTriggerChange: p
443
+ }, n)));
444
+ }, W = "MenuSubTrigger", Tn = /* @__PURE__ */ g((e, t) => {
445
+ const n = S(W, e.__scopeMenu), o = U(W, e.__scopeMenu), a = ye(W, e.__scopeMenu), c = re(W, e.__scopeMenu), i = h(null), { pointerGraceTimerRef: $, onPointerGraceIntentChange: p } = c, m = {
446
+ __scopeMenu: e.__scopeMenu
447
+ }, d = R(() => {
448
+ i.current && window.clearTimeout(i.current), i.current = null;
449
+ }, []);
450
+ return w(
451
+ () => d,
452
+ [
453
+ d
454
+ ]
455
+ ), w(() => {
456
+ const r = $.current;
457
+ return () => {
458
+ window.clearTimeout(r), p(null);
459
+ };
460
+ }, [
461
+ $,
462
+ p
463
+ ]), /* @__PURE__ */ s(xe, M({
464
+ asChild: !0
465
+ }, m), /* @__PURE__ */ s(Ee, M({
466
+ id: a.triggerId,
467
+ "aria-haspopup": "menu",
468
+ "aria-expanded": n.open,
469
+ "aria-controls": a.contentId,
470
+ "data-state": Oe(n.open)
471
+ }, e, {
472
+ ref: Ue(t, a.onTriggerChange),
473
+ onClick: (r) => {
474
+ var l;
475
+ (l = e.onClick) === null || l === void 0 || l.call(e, r), !(e.disabled || r.defaultPrevented) && (r.currentTarget.focus(), n.open || n.onOpenChange(!0));
476
+ },
477
+ onPointerMove: v(e.onPointerMove, K((r) => {
478
+ c.onItemEnter(r), !r.defaultPrevented && !e.disabled && !n.open && !i.current && (c.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
479
+ n.onOpenChange(!0), d();
480
+ }, 100));
481
+ })),
482
+ onPointerLeave: v(e.onPointerLeave, K((r) => {
483
+ var l;
484
+ d();
485
+ const f = (l = n.content) === null || l === void 0 ? void 0 : l.getBoundingClientRect();
486
+ if (f) {
487
+ var b;
488
+ const _ = (b = n.content) === null || b === void 0 ? void 0 : b.dataset.side, y = _ === "right", k = y ? -5 : 5, V = f[y ? "left" : "right"], B = f[y ? "right" : "left"];
489
+ c.onPointerGraceIntentChange({
490
+ area: [
491
+ // consistently within polygon bounds
492
+ {
493
+ x: r.clientX + k,
494
+ y: r.clientY
495
+ },
496
+ {
497
+ x: V,
498
+ y: f.top
499
+ },
500
+ {
501
+ x: B,
502
+ y: f.top
503
+ },
504
+ {
505
+ x: B,
506
+ y: f.bottom
507
+ },
508
+ {
509
+ x: V,
510
+ y: f.bottom
511
+ }
512
+ ],
513
+ side: _
514
+ }), window.clearTimeout($.current), $.current = window.setTimeout(
515
+ () => c.onPointerGraceIntentChange(null),
516
+ 300
517
+ );
518
+ } else {
519
+ if (c.onTriggerLeave(r), r.defaultPrevented)
520
+ return;
521
+ c.onPointerGraceIntentChange(null);
522
+ }
523
+ })),
524
+ onKeyDown: v(e.onKeyDown, (r) => {
525
+ const l = c.searchRef.current !== "";
526
+ if (!(e.disabled || l && r.key === " ") && cn[o.dir].includes(r.key)) {
527
+ var f;
528
+ n.onOpenChange(!0), (f = n.content) === null || f === void 0 || f.focus(), r.preventDefault();
529
+ }
530
+ })
531
+ })));
532
+ }), yn = "MenuSubContent", On = /* @__PURE__ */ g((e, t) => {
533
+ const n = Ie(P, e.__scopeMenu), { forceMount: o = n.forceMount, ...a } = e, c = S(P, e.__scopeMenu), i = U(P, e.__scopeMenu), $ = ye(yn, e.__scopeMenu), p = h(null), m = G(t, p);
534
+ return /* @__PURE__ */ s(L.Provider, {
535
+ scope: e.__scopeMenu
536
+ }, /* @__PURE__ */ s(Z, {
537
+ present: o || c.open
538
+ }, /* @__PURE__ */ s(L.Slot, {
539
+ scope: e.__scopeMenu
540
+ }, /* @__PURE__ */ s(ae, M({
541
+ id: $.contentId,
542
+ "aria-labelledby": $.triggerId
543
+ }, a, {
544
+ ref: m,
545
+ align: "start",
546
+ side: i.dir === "rtl" ? "left" : "right",
547
+ disableOutsidePointerEvents: !1,
548
+ disableOutsideScroll: !1,
549
+ trapFocus: !1,
550
+ onOpenAutoFocus: (d) => {
551
+ var r;
552
+ i.isUsingKeyboardRef.current && ((r = p.current) === null || r === void 0 || r.focus()), d.preventDefault();
553
+ },
554
+ onCloseAutoFocus: (d) => d.preventDefault(),
555
+ onFocusOutside: v(e.onFocusOutside, (d) => {
556
+ d.target !== $.trigger && c.onOpenChange(!1);
557
+ }),
558
+ onEscapeKeyDown: v(e.onEscapeKeyDown, (d) => {
559
+ i.onClose(), d.preventDefault();
560
+ }),
561
+ onKeyDown: v(e.onKeyDown, (d) => {
562
+ const r = d.currentTarget.contains(d.target), l = rn[i.dir].includes(d.key);
563
+ if (r && l) {
564
+ var f;
565
+ c.onOpenChange(!1), (f = $.trigger) === null || f === void 0 || f.focus(), d.preventDefault();
566
+ }
567
+ })
568
+ })))));
569
+ });
570
+ function Oe(e) {
571
+ return e ? "open" : "closed";
572
+ }
573
+ function z(e) {
574
+ return e === "indeterminate";
575
+ }
576
+ function ue(e) {
577
+ return z(e) ? "indeterminate" : e ? "checked" : "unchecked";
578
+ }
579
+ function Dn(e) {
580
+ const t = document.activeElement;
581
+ for (const n of e)
582
+ if (n === t || (n.focus(), document.activeElement !== t))
583
+ return;
584
+ }
585
+ function kn(e, t) {
586
+ return e.map(
587
+ (n, o) => e[(t + o) % e.length]
588
+ );
589
+ }
590
+ function Fn(e, t, n) {
591
+ const a = t.length > 1 && Array.from(t).every(
592
+ (m) => m === t[0]
593
+ ) ? t[0] : t, c = n ? e.indexOf(n) : -1;
594
+ let i = kn(e, Math.max(c, 0));
595
+ a.length === 1 && (i = i.filter(
596
+ (m) => m !== n
597
+ ));
598
+ const p = i.find(
599
+ (m) => m.toLowerCase().startsWith(a.toLowerCase())
600
+ );
601
+ return p !== n ? p : void 0;
602
+ }
603
+ function An(e, t) {
604
+ const { x: n, y: o } = e;
605
+ let a = !1;
606
+ for (let c = 0, i = t.length - 1; c < t.length; i = c++) {
607
+ const $ = t[c].x, p = t[c].y, m = t[i].x, d = t[i].y;
608
+ p > o != d > o && n < (m - $) * (o - p) / (d - p) + $ && (a = !a);
609
+ }
610
+ return a;
611
+ }
612
+ function Ln(e, t) {
613
+ if (!t)
614
+ return !1;
615
+ const n = {
616
+ x: e.clientX,
617
+ y: e.clientY
618
+ };
619
+ return An(n, t);
620
+ }
621
+ function K(e) {
622
+ return (t) => t.pointerType === "mouse" ? e(t) : void 0;
623
+ }
624
+ const rt = dn, at = xe, st = fn, ut = pn, it = Se, dt = vn, lt = se, ft = Mn, $t = _n, pt = Pn, mt = Sn, bt = En, vt = wn, Mt = Tn, Ct = On;
625
+ export {
626
+ at as Anchor,
627
+ ft as CheckboxItem,
628
+ ut as Content,
629
+ it as Group,
630
+ lt as Item,
631
+ mt as ItemIndicator,
632
+ dt as Label,
633
+ dn as Menu,
634
+ xe as MenuAnchor,
635
+ Mn as MenuCheckboxItem,
636
+ pn as MenuContent,
637
+ Se as MenuGroup,
638
+ se as MenuItem,
639
+ Sn as MenuItemIndicator,
640
+ vn as MenuLabel,
641
+ fn as MenuPortal,
642
+ _n as MenuRadioGroup,
643
+ Pn as MenuRadioItem,
644
+ En as MenuSeparator,
645
+ wn as MenuSub,
646
+ On as MenuSubContent,
647
+ Tn as MenuSubTrigger,
648
+ st as Portal,
649
+ $t as RadioGroup,
650
+ pt as RadioItem,
651
+ rt as Root,
652
+ bt as Separator,
653
+ vt as Sub,
654
+ Ct as SubContent,
655
+ Mt as SubTrigger,
656
+ ct as createMenuScope
657
+ };