@apipass/design-system 8.3.0 → 8.4.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 (314) hide show
  1. package/dist/lib/embedded-styles.js +2 -2
  2. package/dist/lib/lib.index.cjs +1 -1
  3. package/dist/lib/lib.index.js +798 -796
  4. package/dist/lib/lib.index.js.map +1 -1
  5. package/dist/lib/style.css +1 -1
  6. package/dist/lib/ui/components/ConfirmDialog/ConfirmDialog.cjs +1 -1
  7. package/dist/lib/ui/components/DataTable/DataTable.cjs +1 -1
  8. package/dist/lib/ui/components/Widget/Widget.cjs +1 -1
  9. package/dist/lib/ui/components/WidgetGrid/WidgetGrid.cjs +1 -1
  10. package/dist/lib/ui/components/charts/BarChart/BarChart.cjs +1 -1
  11. package/dist/lib/ui/components/charts/ChartColorPicker/ChartColorPicker.cjs +1 -1
  12. package/dist/lib/ui/components/charts/ChartLegend/use-chart-legend.cjs +1 -1
  13. package/dist/lib/ui/components/charts/PieChart/PieChart.cjs +1 -1
  14. package/dist/lib/ui/components/charts/TimeSeriesChart/TimeSeriesChart.cjs +1 -1
  15. package/dist/lib/ui/components/charts/TopList/TopList.cjs +1 -1
  16. package/dist/lib/ui/primitives/Avatar/Avatar.js +6 -6
  17. package/dist/lib/ui/primitives/BrandLoader/BrandLoader.cjs +1 -1
  18. package/dist/lib/ui/primitives/Button/Button.cjs.map +1 -1
  19. package/dist/lib/ui/primitives/Button/Button.js +6 -6
  20. package/dist/lib/ui/primitives/Button/Button.js.map +1 -1
  21. package/dist/lib/ui/primitives/CodeBlock/CodeBlock.cjs +1 -1
  22. package/dist/lib/ui/primitives/CodeEditor/CodeEditor.cjs +1 -1
  23. package/dist/lib/ui/primitives/ComboBox/ComboBox.cjs +1 -1
  24. package/dist/lib/ui/primitives/ComboBox/ComboBox.cjs.map +1 -1
  25. package/dist/lib/ui/primitives/ComboBox/ComboBox.js +40 -56
  26. package/dist/lib/ui/primitives/ComboBox/ComboBox.js.map +1 -1
  27. package/dist/lib/ui/primitives/ComboBox/MultiComboBox.cjs +2 -0
  28. package/dist/lib/ui/primitives/ComboBox/MultiComboBox.cjs.map +1 -0
  29. package/dist/lib/ui/primitives/ComboBox/MultiComboBox.js +179 -0
  30. package/dist/lib/ui/primitives/ComboBox/MultiComboBox.js.map +1 -0
  31. package/dist/lib/ui/primitives/ComboBox/comboBoxFocus.cjs +2 -0
  32. package/dist/lib/ui/primitives/ComboBox/comboBoxFocus.cjs.map +1 -0
  33. package/dist/lib/ui/primitives/ComboBox/comboBoxFocus.js +30 -0
  34. package/dist/lib/ui/primitives/ComboBox/comboBoxFocus.js.map +1 -0
  35. package/dist/lib/ui/primitives/DateRangePicker/DateRangePicker.cjs +1 -1
  36. package/dist/lib/ui/primitives/FileUpload/FileUpload.cjs +1 -1
  37. package/dist/lib/ui/primitives/FileUpload/FileUpload.js +24 -24
  38. package/dist/lib/ui/primitives/Image/Image.cjs +1 -1
  39. package/dist/lib/ui/primitives/Input/Input.cjs +1 -1
  40. package/dist/lib/ui/primitives/Input/Input.js +2 -2
  41. package/dist/lib/ui/primitives/JsonViewer/JsonEditor.cjs +1 -1
  42. package/dist/lib/ui/primitives/Link/Link.cjs +1 -1
  43. package/dist/lib/ui/primitives/Link/Link.js +3 -3
  44. package/dist/lib/ui/primitives/Menu/Menu.cjs +1 -1
  45. package/dist/lib/ui/primitives/Menu/Menu.js +28 -28
  46. package/dist/lib/ui/primitives/Search/Search.js +8 -8
  47. package/dist/lib/ui/primitives/Select/MultiSelect.cjs +1 -1
  48. package/dist/lib/ui/primitives/Select/MultiSelect.js +17 -17
  49. package/dist/lib/ui/primitives/Select/MultiSelect.js.map +1 -1
  50. package/dist/lib/ui/primitives/Tag/Tag.cjs +1 -1
  51. package/dist/lib/ui/primitives/Tag/Tag.cjs.map +1 -1
  52. package/dist/lib/ui/primitives/Tag/Tag.js +47 -38
  53. package/dist/lib/ui/primitives/Tag/Tag.js.map +1 -1
  54. package/dist/lib/ui/primitives/Textarea/Textarea.cjs +1 -1
  55. package/dist/lib/ui/primitives/Tooltip/Tooltip.cjs +1 -1
  56. package/dist/lib/ui/primitives/Tooltip/Tooltip.cjs.map +1 -1
  57. package/dist/lib/ui/primitives/Tooltip/Tooltip.js +29 -29
  58. package/dist/lib/ui/primitives/Tooltip/Tooltip.js.map +1 -1
  59. package/dist/lib/ui/utils/AnchorOrButton.cjs +1 -1
  60. package/dist/lib/ui/utils/AnchorOrButton.cjs.map +1 -1
  61. package/dist/lib/ui/utils/AnchorOrButton.js +10 -12
  62. package/dist/lib/ui/utils/AnchorOrButton.js.map +1 -1
  63. package/dist/lib/vendor/@monaco-editor/react/dist/index.cjs +1 -1
  64. package/dist/lib/vendor/@monaco-editor/react/dist/index.cjs.map +1 -1
  65. package/dist/lib/vendor/@monaco-editor/react/dist/index.js +41 -41
  66. package/dist/lib/vendor/react-aria/dist/private/interactions/createEventHandler.cjs +2 -0
  67. package/dist/lib/vendor/react-aria/dist/private/interactions/createEventHandler.cjs.map +1 -0
  68. package/dist/lib/vendor/react-aria/dist/private/interactions/createEventHandler.js +28 -0
  69. package/dist/lib/vendor/react-aria/dist/private/interactions/createEventHandler.js.map +1 -0
  70. package/dist/lib/vendor/react-aria/dist/private/interactions/createKeyboardShortcutHandler.cjs +2 -0
  71. package/dist/lib/vendor/react-aria/dist/private/interactions/createKeyboardShortcutHandler.cjs.map +1 -0
  72. package/dist/lib/vendor/react-aria/dist/private/interactions/createKeyboardShortcutHandler.js +93 -0
  73. package/dist/lib/vendor/react-aria/dist/private/interactions/createKeyboardShortcutHandler.js.map +1 -0
  74. package/dist/lib/vendor/react-aria/dist/private/interactions/focusSafely.cjs +2 -0
  75. package/dist/lib/vendor/react-aria/dist/private/interactions/focusSafely.cjs.map +1 -0
  76. package/dist/lib/vendor/react-aria/dist/private/interactions/focusSafely.js +20 -0
  77. package/dist/lib/vendor/react-aria/dist/private/interactions/focusSafely.js.map +1 -0
  78. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocus.cjs +2 -0
  79. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocus.cjs.map +1 -0
  80. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocus.js +32 -0
  81. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocus.js.map +1 -0
  82. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusVisible.cjs +2 -0
  83. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusVisible.cjs.map +1 -0
  84. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusVisible.js +94 -0
  85. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusVisible.js.map +1 -0
  86. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusable.cjs +2 -0
  87. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusable.cjs.map +1 -0
  88. package/dist/lib/vendor/{@react-aria/interactions/dist → react-aria/dist/private/interactions}/useFocusable.js +10 -10
  89. package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusable.js.map +1 -0
  90. package/dist/lib/vendor/react-aria/dist/private/interactions/useHover.cjs +2 -0
  91. package/dist/lib/vendor/react-aria/dist/private/interactions/useHover.cjs.map +1 -0
  92. package/dist/lib/vendor/react-aria/dist/private/interactions/useHover.js +82 -0
  93. package/dist/lib/vendor/react-aria/dist/private/interactions/useHover.js.map +1 -0
  94. package/dist/lib/vendor/react-aria/dist/private/interactions/useKeyboard.cjs +2 -0
  95. package/dist/lib/vendor/react-aria/dist/private/interactions/useKeyboard.cjs.map +1 -0
  96. package/dist/lib/vendor/react-aria/dist/private/interactions/useKeyboard.js +44 -0
  97. package/dist/lib/vendor/react-aria/dist/private/interactions/useKeyboard.js.map +1 -0
  98. package/dist/lib/vendor/react-aria/dist/private/interactions/utils.cjs +2 -0
  99. package/dist/lib/vendor/react-aria/dist/private/interactions/utils.cjs.map +1 -0
  100. package/dist/lib/vendor/react-aria/dist/private/interactions/utils.js +59 -0
  101. package/dist/lib/vendor/react-aria/dist/private/interactions/utils.js.map +1 -0
  102. package/dist/lib/vendor/react-aria/dist/private/ssr/SSRProvider.cjs +2 -0
  103. package/dist/lib/vendor/react-aria/dist/private/ssr/SSRProvider.cjs.map +1 -0
  104. package/dist/lib/vendor/react-aria/dist/private/ssr/SSRProvider.js +52 -0
  105. package/dist/lib/vendor/react-aria/dist/private/ssr/SSRProvider.js.map +1 -0
  106. package/dist/lib/vendor/react-aria/dist/private/tooltip/useTooltipTrigger.cjs +2 -0
  107. package/dist/lib/vendor/react-aria/dist/private/tooltip/useTooltipTrigger.cjs.map +1 -0
  108. package/dist/lib/vendor/react-aria/dist/private/tooltip/useTooltipTrigger.js +62 -0
  109. package/dist/lib/vendor/react-aria/dist/private/tooltip/useTooltipTrigger.js.map +1 -0
  110. package/dist/lib/vendor/react-aria/dist/private/utils/chain.cjs +2 -0
  111. package/dist/lib/vendor/react-aria/dist/private/utils/chain.cjs.map +1 -0
  112. package/dist/lib/vendor/react-aria/dist/private/utils/chain.js +9 -0
  113. package/dist/lib/vendor/react-aria/dist/private/utils/chain.js.map +1 -0
  114. package/dist/lib/vendor/react-aria/dist/private/utils/domHelpers.cjs +2 -0
  115. package/dist/lib/vendor/react-aria/dist/private/utils/domHelpers.cjs.map +1 -0
  116. package/dist/lib/vendor/react-aria/dist/private/utils/domHelpers.js +36 -0
  117. package/dist/lib/vendor/react-aria/dist/private/utils/domHelpers.js.map +1 -0
  118. package/dist/lib/vendor/react-aria/dist/private/utils/focusWithoutScrolling.cjs +2 -0
  119. package/dist/lib/vendor/react-aria/dist/private/utils/focusWithoutScrolling.cjs.map +1 -0
  120. package/dist/lib/vendor/react-aria/dist/private/utils/focusWithoutScrolling.js +9 -0
  121. package/dist/lib/vendor/react-aria/dist/private/utils/focusWithoutScrolling.js.map +1 -0
  122. package/dist/lib/vendor/react-aria/dist/private/utils/isVirtualEvent.cjs.map +1 -0
  123. package/dist/lib/vendor/react-aria/dist/private/utils/isVirtualEvent.js.map +1 -0
  124. package/dist/lib/vendor/react-aria/dist/private/utils/mergeProps.cjs +2 -0
  125. package/dist/lib/vendor/react-aria/dist/private/utils/mergeProps.cjs.map +1 -0
  126. package/dist/lib/vendor/react-aria/dist/private/utils/mergeProps.js +24 -0
  127. package/dist/lib/vendor/react-aria/dist/private/utils/mergeProps.js.map +1 -0
  128. package/dist/lib/vendor/react-aria/dist/private/utils/mergeRefs.cjs +2 -0
  129. package/dist/lib/vendor/react-aria/dist/private/utils/mergeRefs.cjs.map +1 -0
  130. package/dist/lib/vendor/react-aria/dist/private/utils/mergeRefs.js +22 -0
  131. package/dist/lib/vendor/react-aria/dist/private/utils/mergeRefs.js.map +1 -0
  132. package/dist/lib/vendor/react-aria/dist/private/utils/openLink.cjs +2 -0
  133. package/dist/lib/vendor/react-aria/dist/private/utils/openLink.cjs.map +1 -0
  134. package/dist/lib/vendor/react-aria/dist/private/utils/openLink.js +26 -0
  135. package/dist/lib/vendor/react-aria/dist/private/utils/openLink.js.map +1 -0
  136. package/dist/lib/vendor/react-aria/dist/private/utils/platform.cjs +2 -0
  137. package/dist/lib/vendor/react-aria/dist/private/utils/platform.cjs.map +1 -0
  138. package/dist/lib/vendor/react-aria/dist/private/utils/platform.js +40 -0
  139. package/dist/lib/vendor/react-aria/dist/private/utils/platform.js.map +1 -0
  140. package/dist/lib/vendor/react-aria/dist/private/utils/runAfterTransition.cjs +2 -0
  141. package/dist/lib/vendor/react-aria/dist/private/utils/runAfterTransition.cjs.map +1 -0
  142. package/dist/lib/vendor/react-aria/dist/private/utils/runAfterTransition.js +43 -0
  143. package/dist/lib/vendor/react-aria/dist/private/utils/runAfterTransition.js.map +1 -0
  144. package/dist/lib/vendor/react-aria/dist/private/utils/shadowdom/DOMFunctions.cjs +2 -0
  145. package/dist/lib/vendor/react-aria/dist/private/utils/shadowdom/DOMFunctions.cjs.map +1 -0
  146. package/dist/lib/vendor/react-aria/dist/private/utils/shadowdom/DOMFunctions.js +33 -0
  147. package/dist/lib/vendor/react-aria/dist/private/utils/shadowdom/DOMFunctions.js.map +1 -0
  148. package/dist/lib/vendor/react-aria/dist/private/utils/useGlobalListeners.cjs +2 -0
  149. package/dist/lib/vendor/react-aria/dist/private/utils/useGlobalListeners.cjs.map +1 -0
  150. package/dist/lib/vendor/react-aria/dist/private/utils/useGlobalListeners.js +35 -0
  151. package/dist/lib/vendor/react-aria/dist/private/utils/useGlobalListeners.js.map +1 -0
  152. package/dist/lib/vendor/react-aria/dist/private/utils/useId.cjs +2 -0
  153. package/dist/lib/vendor/react-aria/dist/private/utils/useId.cjs.map +1 -0
  154. package/dist/lib/vendor/react-aria/dist/private/utils/useId.js +44 -0
  155. package/dist/lib/vendor/react-aria/dist/private/utils/useId.js.map +1 -0
  156. package/dist/lib/vendor/react-aria/dist/private/utils/useLayoutEffect.cjs.map +1 -0
  157. package/dist/lib/vendor/react-aria/dist/private/utils/useLayoutEffect.js.map +1 -0
  158. package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/useSyncRef.cjs +1 -1
  159. package/dist/lib/vendor/react-aria/dist/private/utils/useSyncRef.cjs.map +1 -0
  160. package/dist/lib/vendor/react-aria/dist/private/utils/useSyncRef.js +13 -0
  161. package/dist/lib/vendor/react-aria/dist/private/utils/useSyncRef.js.map +1 -0
  162. package/dist/lib/vendor/react-draggable/build/cjs/Draggable.cjs +1 -1
  163. package/dist/lib/vendor/react-draggable/build/cjs/Draggable.js +8 -8
  164. package/dist/lib/vendor/react-grid-layout/build/GridItem.cjs +1 -1
  165. package/dist/lib/vendor/react-grid-layout/build/GridItem.js +7 -7
  166. package/dist/lib/vendor/react-grid-layout/build/ReactGridLayout.cjs +1 -1
  167. package/dist/lib/vendor/react-grid-layout/build/ReactGridLayout.js +7 -7
  168. package/dist/lib/vendor/react-grid-layout/build/ReactGridLayout.js.map +1 -1
  169. package/dist/lib/vendor/react-grid-layout/build/ResponsiveReactGridLayout.cjs +1 -1
  170. package/dist/lib/vendor/react-grid-layout/build/ResponsiveReactGridLayout.js +10 -10
  171. package/dist/lib/vendor/react-grid-layout/build/ResponsiveReactGridLayout.js.map +1 -1
  172. package/dist/lib/vendor/react-grid-layout/build/components/WidthProvider.cjs +1 -1
  173. package/dist/lib/vendor/react-grid-layout/build/components/WidthProvider.js +8 -8
  174. package/dist/lib/vendor/react-grid-layout/build/components/WidthProvider.js.map +1 -1
  175. package/dist/lib/vendor/react-grid-layout/build/utils.cjs +1 -1
  176. package/dist/lib/vendor/react-grid-layout/build/utils.js +18 -18
  177. package/dist/lib/vendor/react-resizable/build/Resizable.cjs +1 -1
  178. package/dist/lib/vendor/react-resizable/build/Resizable.js +61 -61
  179. package/dist/lib/vendor/react-resizable/build/Resizable.js.map +1 -1
  180. package/dist/lib/vendor/react-resizable/build/ResizableBox.cjs +1 -1
  181. package/dist/lib/vendor/react-resizable/build/ResizableBox.js +7 -7
  182. package/dist/lib/vendor/react-resizable/build/ResizableBox.js.map +1 -1
  183. package/dist/lib/vendor/react-resizable/build/utils.cjs +1 -1
  184. package/dist/lib/vendor/react-resizable/build/utils.cjs.map +1 -1
  185. package/dist/lib/vendor/react-stately/dist/private/flags/flags.cjs +2 -0
  186. package/dist/lib/vendor/react-stately/dist/private/flags/flags.cjs.map +1 -0
  187. package/dist/lib/vendor/react-stately/dist/private/flags/flags.js +8 -0
  188. package/dist/lib/vendor/react-stately/dist/private/flags/flags.js.map +1 -0
  189. package/dist/lib/vendor/react-stately/dist/private/overlays/useOverlayTriggerState.cjs +2 -0
  190. package/dist/lib/vendor/react-stately/dist/private/overlays/useOverlayTriggerState.cjs.map +1 -0
  191. package/dist/lib/vendor/react-stately/dist/private/overlays/useOverlayTriggerState.js +32 -0
  192. package/dist/lib/vendor/react-stately/dist/private/overlays/useOverlayTriggerState.js.map +1 -0
  193. package/dist/lib/vendor/react-stately/dist/private/tooltip/useTooltipTriggerState.cjs +2 -0
  194. package/dist/lib/vendor/react-stately/dist/private/tooltip/useTooltipTriggerState.cjs.map +1 -0
  195. package/dist/lib/vendor/react-stately/dist/private/tooltip/useTooltipTriggerState.js +43 -0
  196. package/dist/lib/vendor/react-stately/dist/private/tooltip/useTooltipTriggerState.js.map +1 -0
  197. package/dist/lib/vendor/react-stately/dist/private/utils/useControlledState.cjs +2 -0
  198. package/dist/lib/vendor/react-stately/dist/private/utils/useControlledState.cjs.map +1 -0
  199. package/dist/lib/vendor/react-stately/dist/private/utils/useControlledState.js +29 -0
  200. package/dist/lib/vendor/react-stately/dist/private/utils/useControlledState.js.map +1 -0
  201. package/dist/lib/vendor/react-toastify/dist/index.cjs +1 -1
  202. package/dist/lib/vendor/react-toastify/dist/index.js +10 -10
  203. package/dist/types/ui/primitives/ComboBox/MultiComboBox.d.ts +28 -0
  204. package/dist/types/ui/primitives/ComboBox/comboBoxFocus.d.ts +3 -0
  205. package/dist/types/ui/primitives/Tag/Tag.d.ts +2 -1
  206. package/dist/types/ui/primitives/index.d.ts +1 -0
  207. package/dist/types/ui/utils/AnchorOrButton.d.ts +3 -1
  208. package/package.json +3 -3
  209. package/dist/lib/vendor/@react-aria/interactions/dist/createEventHandler.cjs +0 -2
  210. package/dist/lib/vendor/@react-aria/interactions/dist/createEventHandler.cjs.map +0 -1
  211. package/dist/lib/vendor/@react-aria/interactions/dist/createEventHandler.js +0 -29
  212. package/dist/lib/vendor/@react-aria/interactions/dist/createEventHandler.js.map +0 -1
  213. package/dist/lib/vendor/@react-aria/interactions/dist/focusSafely.cjs +0 -2
  214. package/dist/lib/vendor/@react-aria/interactions/dist/focusSafely.cjs.map +0 -1
  215. package/dist/lib/vendor/@react-aria/interactions/dist/focusSafely.js +0 -18
  216. package/dist/lib/vendor/@react-aria/interactions/dist/focusSafely.js.map +0 -1
  217. package/dist/lib/vendor/@react-aria/interactions/dist/useFocus.cjs +0 -2
  218. package/dist/lib/vendor/@react-aria/interactions/dist/useFocus.cjs.map +0 -1
  219. package/dist/lib/vendor/@react-aria/interactions/dist/useFocus.js +0 -31
  220. package/dist/lib/vendor/@react-aria/interactions/dist/useFocus.js.map +0 -1
  221. package/dist/lib/vendor/@react-aria/interactions/dist/useFocusVisible.cjs +0 -2
  222. package/dist/lib/vendor/@react-aria/interactions/dist/useFocusVisible.cjs.map +0 -1
  223. package/dist/lib/vendor/@react-aria/interactions/dist/useFocusVisible.js +0 -66
  224. package/dist/lib/vendor/@react-aria/interactions/dist/useFocusVisible.js.map +0 -1
  225. package/dist/lib/vendor/@react-aria/interactions/dist/useFocusable.cjs +0 -2
  226. package/dist/lib/vendor/@react-aria/interactions/dist/useFocusable.cjs.map +0 -1
  227. package/dist/lib/vendor/@react-aria/interactions/dist/useFocusable.js.map +0 -1
  228. package/dist/lib/vendor/@react-aria/interactions/dist/useHover.cjs +0 -2
  229. package/dist/lib/vendor/@react-aria/interactions/dist/useHover.cjs.map +0 -1
  230. package/dist/lib/vendor/@react-aria/interactions/dist/useHover.js +0 -81
  231. package/dist/lib/vendor/@react-aria/interactions/dist/useHover.js.map +0 -1
  232. package/dist/lib/vendor/@react-aria/interactions/dist/useKeyboard.cjs +0 -2
  233. package/dist/lib/vendor/@react-aria/interactions/dist/useKeyboard.cjs.map +0 -1
  234. package/dist/lib/vendor/@react-aria/interactions/dist/useKeyboard.js +0 -13
  235. package/dist/lib/vendor/@react-aria/interactions/dist/useKeyboard.js.map +0 -1
  236. package/dist/lib/vendor/@react-aria/interactions/dist/utils.cjs +0 -2
  237. package/dist/lib/vendor/@react-aria/interactions/dist/utils.cjs.map +0 -1
  238. package/dist/lib/vendor/@react-aria/interactions/dist/utils.js +0 -64
  239. package/dist/lib/vendor/@react-aria/interactions/dist/utils.js.map +0 -1
  240. package/dist/lib/vendor/@react-aria/ssr/dist/SSRProvider.cjs +0 -2
  241. package/dist/lib/vendor/@react-aria/ssr/dist/SSRProvider.cjs.map +0 -1
  242. package/dist/lib/vendor/@react-aria/ssr/dist/SSRProvider.js +0 -49
  243. package/dist/lib/vendor/@react-aria/ssr/dist/SSRProvider.js.map +0 -1
  244. package/dist/lib/vendor/@react-aria/tooltip/dist/useTooltipTrigger.cjs +0 -2
  245. package/dist/lib/vendor/@react-aria/tooltip/dist/useTooltipTrigger.cjs.map +0 -1
  246. package/dist/lib/vendor/@react-aria/tooltip/dist/useTooltipTrigger.js +0 -61
  247. package/dist/lib/vendor/@react-aria/tooltip/dist/useTooltipTrigger.js.map +0 -1
  248. package/dist/lib/vendor/@react-aria/utils/dist/DOMFunctions.cjs +0 -2
  249. package/dist/lib/vendor/@react-aria/utils/dist/DOMFunctions.cjs.map +0 -1
  250. package/dist/lib/vendor/@react-aria/utils/dist/DOMFunctions.js +0 -28
  251. package/dist/lib/vendor/@react-aria/utils/dist/DOMFunctions.js.map +0 -1
  252. package/dist/lib/vendor/@react-aria/utils/dist/chain.cjs +0 -2
  253. package/dist/lib/vendor/@react-aria/utils/dist/chain.cjs.map +0 -1
  254. package/dist/lib/vendor/@react-aria/utils/dist/chain.js +0 -9
  255. package/dist/lib/vendor/@react-aria/utils/dist/chain.js.map +0 -1
  256. package/dist/lib/vendor/@react-aria/utils/dist/domHelpers.cjs +0 -2
  257. package/dist/lib/vendor/@react-aria/utils/dist/domHelpers.cjs.map +0 -1
  258. package/dist/lib/vendor/@react-aria/utils/dist/domHelpers.js +0 -16
  259. package/dist/lib/vendor/@react-aria/utils/dist/domHelpers.js.map +0 -1
  260. package/dist/lib/vendor/@react-aria/utils/dist/focusWithoutScrolling.cjs +0 -2
  261. package/dist/lib/vendor/@react-aria/utils/dist/focusWithoutScrolling.cjs.map +0 -1
  262. package/dist/lib/vendor/@react-aria/utils/dist/focusWithoutScrolling.js +0 -46
  263. package/dist/lib/vendor/@react-aria/utils/dist/focusWithoutScrolling.js.map +0 -1
  264. package/dist/lib/vendor/@react-aria/utils/dist/isVirtualEvent.cjs.map +0 -1
  265. package/dist/lib/vendor/@react-aria/utils/dist/isVirtualEvent.js.map +0 -1
  266. package/dist/lib/vendor/@react-aria/utils/dist/mergeProps.cjs +0 -2
  267. package/dist/lib/vendor/@react-aria/utils/dist/mergeProps.cjs.map +0 -1
  268. package/dist/lib/vendor/@react-aria/utils/dist/mergeProps.js +0 -23
  269. package/dist/lib/vendor/@react-aria/utils/dist/mergeProps.js.map +0 -1
  270. package/dist/lib/vendor/@react-aria/utils/dist/platform.cjs +0 -2
  271. package/dist/lib/vendor/@react-aria/utils/dist/platform.cjs.map +0 -1
  272. package/dist/lib/vendor/@react-aria/utils/dist/platform.js +0 -24
  273. package/dist/lib/vendor/@react-aria/utils/dist/platform.js.map +0 -1
  274. package/dist/lib/vendor/@react-aria/utils/dist/runAfterTransition.cjs +0 -2
  275. package/dist/lib/vendor/@react-aria/utils/dist/runAfterTransition.cjs.map +0 -1
  276. package/dist/lib/vendor/@react-aria/utils/dist/runAfterTransition.js +0 -36
  277. package/dist/lib/vendor/@react-aria/utils/dist/runAfterTransition.js.map +0 -1
  278. package/dist/lib/vendor/@react-aria/utils/dist/useEffectEvent.cjs +0 -2
  279. package/dist/lib/vendor/@react-aria/utils/dist/useEffectEvent.cjs.map +0 -1
  280. package/dist/lib/vendor/@react-aria/utils/dist/useEffectEvent.js +0 -19
  281. package/dist/lib/vendor/@react-aria/utils/dist/useEffectEvent.js.map +0 -1
  282. package/dist/lib/vendor/@react-aria/utils/dist/useGlobalListeners.cjs +0 -2
  283. package/dist/lib/vendor/@react-aria/utils/dist/useGlobalListeners.cjs.map +0 -1
  284. package/dist/lib/vendor/@react-aria/utils/dist/useGlobalListeners.js +0 -35
  285. package/dist/lib/vendor/@react-aria/utils/dist/useGlobalListeners.js.map +0 -1
  286. package/dist/lib/vendor/@react-aria/utils/dist/useId.cjs +0 -2
  287. package/dist/lib/vendor/@react-aria/utils/dist/useId.cjs.map +0 -1
  288. package/dist/lib/vendor/@react-aria/utils/dist/useId.js +0 -43
  289. package/dist/lib/vendor/@react-aria/utils/dist/useId.js.map +0 -1
  290. package/dist/lib/vendor/@react-aria/utils/dist/useLayoutEffect.cjs.map +0 -1
  291. package/dist/lib/vendor/@react-aria/utils/dist/useLayoutEffect.js.map +0 -1
  292. package/dist/lib/vendor/@react-aria/utils/dist/useSyncRef.cjs.map +0 -1
  293. package/dist/lib/vendor/@react-aria/utils/dist/useSyncRef.js +0 -13
  294. package/dist/lib/vendor/@react-aria/utils/dist/useSyncRef.js.map +0 -1
  295. package/dist/lib/vendor/@react-stately/flags/dist/import.cjs +0 -2
  296. package/dist/lib/vendor/@react-stately/flags/dist/import.cjs.map +0 -1
  297. package/dist/lib/vendor/@react-stately/flags/dist/import.js +0 -8
  298. package/dist/lib/vendor/@react-stately/flags/dist/import.js.map +0 -1
  299. package/dist/lib/vendor/@react-stately/overlays/dist/useOverlayTriggerState.cjs +0 -2
  300. package/dist/lib/vendor/@react-stately/overlays/dist/useOverlayTriggerState.cjs.map +0 -1
  301. package/dist/lib/vendor/@react-stately/overlays/dist/useOverlayTriggerState.js +0 -30
  302. package/dist/lib/vendor/@react-stately/overlays/dist/useOverlayTriggerState.js.map +0 -1
  303. package/dist/lib/vendor/@react-stately/tooltip/dist/useTooltipTriggerState.cjs +0 -2
  304. package/dist/lib/vendor/@react-stately/tooltip/dist/useTooltipTriggerState.cjs.map +0 -1
  305. package/dist/lib/vendor/@react-stately/tooltip/dist/useTooltipTriggerState.js +0 -42
  306. package/dist/lib/vendor/@react-stately/tooltip/dist/useTooltipTriggerState.js.map +0 -1
  307. package/dist/lib/vendor/@react-stately/utils/dist/useControlledState.cjs +0 -2
  308. package/dist/lib/vendor/@react-stately/utils/dist/useControlledState.cjs.map +0 -1
  309. package/dist/lib/vendor/@react-stately/utils/dist/useControlledState.js +0 -30
  310. package/dist/lib/vendor/@react-stately/utils/dist/useControlledState.js.map +0 -1
  311. /package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/isVirtualEvent.cjs +0 -0
  312. /package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/isVirtualEvent.js +0 -0
  313. /package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/useLayoutEffect.cjs +0 -0
  314. /package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/useLayoutEffect.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHover.cjs","sources":["../../../../../../../node_modules/react-aria/dist/private/interactions/useHover.mjs"],"sourcesContent":["import {getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac} from \"../utils/domHelpers.mjs\";\nimport {useGlobalListeners as $48a7d519b337145d$export$4eaf04e54aa8eed6} from \"../utils/useGlobalListeners.mjs\";\nimport {useState as $hZqKM$useState, useRef as $hZqKM$useRef, useEffect as $hZqKM$useEffect, useMemo as $hZqKM$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\n// iOS fires onPointerEnter twice: once with pointerType=\"touch\" and again with pointerType=\"mouse\".\n// We want to ignore these emulated events so they do not trigger hover behavior.\n// See https://bugs.webkit.org/show_bug.cgi?id=214609.\nlet $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = false;\nlet $e969f22b6713ca4a$var$hoverCount = 0;\nfunction $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents() {\n $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = true;\n // Clear globalIgnoreEmulatedMouseEvents after a short timeout. iOS fires onPointerEnter\n // with pointerType=\"mouse\" immediately after onPointerUp and before onFocus. On other\n // devices that don't have this quirk, we don't want to ignore a mouse hover sometime in\n // the distant future because a user previously touched the element.\n setTimeout(()=>{\n $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = false;\n }, 500);\n}\nfunction $e969f22b6713ca4a$var$handleGlobalPointerEvent(e) {\n if (e.pointerType === 'touch') $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents();\n}\nfunction $e969f22b6713ca4a$var$setupGlobalTouchEvents() {\n let ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)(null);\n if (typeof ownerDocument === 'undefined') return;\n if ($e969f22b6713ca4a$var$hoverCount === 0) {\n if (typeof PointerEvent !== 'undefined') ownerDocument.addEventListener('pointerup', $e969f22b6713ca4a$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') ownerDocument.addEventListener('touchend', $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents);\n }\n $e969f22b6713ca4a$var$hoverCount++;\n return ()=>{\n $e969f22b6713ca4a$var$hoverCount--;\n if ($e969f22b6713ca4a$var$hoverCount > 0) return;\n if (typeof PointerEvent !== 'undefined') ownerDocument.removeEventListener('pointerup', $e969f22b6713ca4a$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') ownerDocument.removeEventListener('touchend', $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents);\n };\n}\nfunction $e969f22b6713ca4a$export$ae780daf29e6d456(props) {\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, isDisabled: isDisabled } = props;\n let [isHovered, setHovered] = (0, $hZqKM$useState)(false);\n let state = (0, $hZqKM$useRef)({\n isHovered: false,\n ignoreEmulatedMouseEvents: false,\n pointerType: '',\n target: null\n }).current;\n (0, $hZqKM$useEffect)($e969f22b6713ca4a$var$setupGlobalTouchEvents, []);\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $48a7d519b337145d$export$4eaf04e54aa8eed6)();\n let { hoverProps: hoverProps, triggerHoverEnd: triggerHoverEnd } = (0, $hZqKM$useMemo)(()=>{\n let triggerHoverStart = (event, pointerType)=>{\n state.pointerType = pointerType;\n if (isDisabled || pointerType === 'touch' || state.isHovered || !(0, $23f2114a1b82827e$export$4282f70798064fe0)(event.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event))) return;\n state.isHovered = true;\n let target = event.currentTarget;\n state.target = target;\n // When an element that is hovered over is removed, no pointerleave event is fired by the browser,\n // even though the originally hovered target may have shrunk in size so it is no longer hovered.\n // However, a pointerover event will be fired on the new target the mouse is over.\n // In Chrome this happens immediately. In Safari and Firefox, it happens upon moving the mouse one pixel.\n addGlobalListener((0, $d447af545b77c9f1$export$b204af158042fbac)((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event)), 'pointerover', (e)=>{\n if (state.isHovered && state.target && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(state.target, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) // oxlint-disable-next-line react/react-compiler\n triggerHoverEnd(e, e.pointerType);\n }, {\n capture: true\n });\n if (onHoverStart) onHoverStart({\n type: 'hoverstart',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(true);\n setHovered(true);\n };\n let triggerHoverEnd = (event, pointerType)=>{\n let target = state.target;\n state.pointerType = '';\n state.target = null;\n if (pointerType === 'touch' || !state.isHovered || !target) return;\n state.isHovered = false;\n removeAllGlobalListeners();\n if (onHoverEnd) onHoverEnd({\n type: 'hoverend',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(false);\n setHovered(false);\n };\n let hoverProps = {};\n if (typeof PointerEvent !== 'undefined') {\n hoverProps.onPointerEnter = (e)=>{\n if ($e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents && e.pointerType === 'mouse') return;\n triggerHoverStart(e, e.pointerType);\n };\n hoverProps.onPointerLeave = (e)=>{\n if (!isDisabled && (0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, e.pointerType);\n };\n } else if (process.env.NODE_ENV === 'test') {\n hoverProps.onTouchStart = ()=>{\n state.ignoreEmulatedMouseEvents = true;\n };\n hoverProps.onMouseEnter = (e)=>{\n if (!state.ignoreEmulatedMouseEvents && !$e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, 'mouse');\n state.ignoreEmulatedMouseEvents = false;\n };\n hoverProps.onMouseLeave = (e)=>{\n if (!isDisabled && (0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, 'mouse');\n };\n }\n return {\n hoverProps: hoverProps,\n triggerHoverEnd: triggerHoverEnd\n };\n }, [\n onHoverStart,\n onHoverChange,\n onHoverEnd,\n isDisabled,\n state,\n addGlobalListener,\n removeAllGlobalListeners\n ]);\n (0, $hZqKM$useEffect)(()=>{\n // Call the triggerHoverEnd as soon as isDisabled changes to true\n // Safe to call triggerHoverEnd, it will early return if we aren't currently hovering\n if (isDisabled) triggerHoverEnd({\n currentTarget: state.target\n }, state.pointerType);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isDisabled\n ]);\n return {\n hoverProps: hoverProps,\n isHovered: isHovered\n };\n}\n\n\nexport {$e969f22b6713ca4a$export$ae780daf29e6d456 as useHover};\n//# sourceMappingURL=useHover.mjs.map\n"],"names":["$e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents","$e969f22b6713ca4a$var$hoverCount","$e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents","$e969f22b6713ca4a$var$handleGlobalPointerEvent","e","$e969f22b6713ca4a$var$setupGlobalTouchEvents","ownerDocument","$d447af545b77c9f1$export$b204af158042fbac","$e969f22b6713ca4a$export$ae780daf29e6d456","props","onHoverStart","onHoverChange","onHoverEnd","isDisabled","isHovered","setHovered","$hZqKM$useState","state","$hZqKM$useRef","$hZqKM$useEffect","addGlobalListener","removeAllGlobalListeners","$48a7d519b337145d$export$4eaf04e54aa8eed6","hoverProps","triggerHoverEnd","$hZqKM$useMemo","triggerHoverStart","event","pointerType","$23f2114a1b82827e$export$4282f70798064fe0","$23f2114a1b82827e$export$e58f029f0fbfdb29","target"],"mappings":"4OA0BA,IAAIA,EAAwD,GACxDC,EAAmC,EACvC,SAASC,GAA2D,CAChEF,EAAwD,GAKxD,WAAW,IAAI,CACXA,EAAwD,EAC5D,EAAG,GAAG,CACV,CACA,SAASG,EAA+CC,EAAG,CACnDA,EAAE,cAAgB,SAASF,EAAA,CACnC,CACA,SAASG,GAA+C,CACpD,IAAIC,EAAoBC,EAAAA,iBAA2C,IAAI,EACvE,GAAI,SAAOD,EAAkB,KAC7B,OAAIL,IAAqC,GACjC,OAAO,aAAiB,KAAaK,EAAc,iBAAiB,YAAaH,CAA8C,EAGvIF,IACO,IAAI,CACPA,IACI,EAAAA,EAAmC,IACnC,OAAO,aAAiB,KAAaK,EAAc,oBAAoB,YAAaH,CAA8C,CAE1I,CACJ,CACA,SAASK,EAA0CC,EAAO,CACtD,GAAI,CAAE,aAAAC,EAA4B,cAAAC,EAA8B,WAAAC,EAAwB,WAAAC,GAA2BJ,EAC/G,CAACK,EAAWC,CAAU,EAAQC,EAAAA,SAAiB,EAAK,EACpDC,EAAYC,SAAe,CAC3B,UAAW,GACX,0BAA2B,GAC3B,YAAa,GACb,OAAQ,IAAA,CACX,EAAE,QACCC,EAAAA,UAAkBd,EAA8C,EAAE,EACtE,GAAI,CAAE,kBAAAe,EAAsC,yBAAAC,CAAA,EAA2DC,EAAAA,mBAAA,EACnG,CAAE,WAAAC,EAAwB,gBAAAC,GAAyCC,EAAAA,QAAgB,IAAI,CACvF,IAAIC,EAAoB,CAACC,EAAOC,IAAc,CAE1C,GADAX,EAAM,YAAcW,EAChBf,GAAce,IAAgB,SAAWX,EAAM,WAAa,CAAKY,EAAAA,aAA2CF,EAAM,cAAmBG,EAAAA,eAA2CH,CAAK,CAAC,EAAG,OAC7LV,EAAM,UAAY,GAClB,IAAIc,EAASJ,EAAM,cACnBV,EAAM,OAASc,EAKfX,EAAsBb,EAAAA,iBAA+CuB,EAAAA,eAA2CH,CAAK,CAAC,EAAG,cAAgBvB,GAAI,CACrIa,EAAM,WAAaA,EAAM,QAAU,CAAKY,eAA2CZ,EAAM,OAAYa,EAAAA,eAA2C1B,CAAC,CAAC,GACtJoB,EAAgBpB,EAAGA,EAAE,WAAW,CACpC,EAAG,CACC,QAAS,EAAA,CACZ,EACGM,GAAcA,EAAa,CAC3B,KAAM,aACN,OAAAqB,EACA,YAAAH,CAAA,CACH,EACGjB,KAA6B,EAAI,EACrCI,EAAW,EAAI,CACnB,EACIS,EAAkB,CAACG,EAAOC,IAAc,CACxC,IAAIG,EAASd,EAAM,OACnBA,EAAM,YAAc,GACpBA,EAAM,OAAS,KACX,EAAAW,IAAgB,SAAW,CAACX,EAAM,WAAa,CAACc,KACpDd,EAAM,UAAY,GAClBI,EAAA,EACIT,GAAYA,EAAW,CACvB,KAAM,WACN,OAAAmB,EACA,YAAAH,CAAA,CACH,EACGjB,KAA6B,EAAK,EACtCI,EAAW,EAAK,EACpB,EACIQ,EAAa,CAAA,EACjB,OAAI,OAAO,aAAiB,MACxBA,EAAW,eAAkBnB,GAAI,CACzBJ,GAAyDI,EAAE,cAAgB,SAC/EsB,EAAkBtB,EAAGA,EAAE,WAAW,CACtC,EACAmB,EAAW,eAAkBnB,GAAI,CACzB,CAACS,GAAkBgB,eAA2CzB,EAAE,cAAmB0B,iBAA2C1B,CAAC,CAAC,GAAGoB,EAAgBpB,EAAGA,EAAE,WAAW,CAC3K,GAaG,CACH,WAAYmB,EACZ,gBAAiBC,CAAA,CAEzB,EAAG,CACCd,EACAC,EACAC,EACAC,EACAI,EACAG,EACAC,CAAA,CACH,EACD,OAAIF,EAAAA,UAAkB,IAAI,CAGlBN,GAAYW,EAAgB,CAC5B,cAAeP,EAAM,MAAA,EACtBA,EAAM,WAAW,CAExB,EAAG,CACCJ,CAAA,CACH,EACM,CACH,WAAAU,EACA,UAAAT,CAAA,CAER","x_google_ignoreList":[0]}
@@ -0,0 +1,82 @@
1
+ import { nodeContains as $, getEventTarget as f } from "../utils/shadowdom/DOMFunctions.js";
2
+ import { getOwnerDocument as T } from "../utils/domHelpers.js";
3
+ import { useGlobalListeners as G } from "../utils/useGlobalListeners.js";
4
+ import { useState as L, useRef as M, useEffect as m, useMemo as C } from "react";
5
+ let g = !1, u = 0;
6
+ function D() {
7
+ g = !0, setTimeout(() => {
8
+ g = !1;
9
+ }, 500);
10
+ }
11
+ function H(r) {
12
+ r.pointerType === "touch" && D();
13
+ }
14
+ function S() {
15
+ let r = T(null);
16
+ if (!(typeof r > "u"))
17
+ return u === 0 && typeof PointerEvent < "u" && r.addEventListener("pointerup", H), u++, () => {
18
+ u--, !(u > 0) && typeof PointerEvent < "u" && r.removeEventListener("pointerup", H);
19
+ };
20
+ }
21
+ function R(r) {
22
+ let { onHoverStart: s, onHoverChange: n, onHoverEnd: l, isDisabled: a } = r, [h, c] = L(!1), e = M({
23
+ isHovered: !1,
24
+ ignoreEmulatedMouseEvents: !1,
25
+ pointerType: "",
26
+ target: null
27
+ }).current;
28
+ m(S, []);
29
+ let { addGlobalListener: b, removeAllGlobalListeners: E } = G(), { hoverProps: y, triggerHoverEnd: P } = C(() => {
30
+ let x = (t, o) => {
31
+ if (e.pointerType = o, a || o === "touch" || e.isHovered || !$(t.currentTarget, f(t))) return;
32
+ e.isHovered = !0;
33
+ let i = t.currentTarget;
34
+ e.target = i, b(T(f(t)), "pointerover", (p) => {
35
+ e.isHovered && e.target && !$(e.target, f(p)) && v(p, p.pointerType);
36
+ }, {
37
+ capture: !0
38
+ }), s && s({
39
+ type: "hoverstart",
40
+ target: i,
41
+ pointerType: o
42
+ }), n && n(!0), c(!0);
43
+ }, v = (t, o) => {
44
+ let i = e.target;
45
+ e.pointerType = "", e.target = null, !(o === "touch" || !e.isHovered || !i) && (e.isHovered = !1, E(), l && l({
46
+ type: "hoverend",
47
+ target: i,
48
+ pointerType: o
49
+ }), n && n(!1), c(!1));
50
+ }, d = {};
51
+ return typeof PointerEvent < "u" && (d.onPointerEnter = (t) => {
52
+ g && t.pointerType === "mouse" || x(t, t.pointerType);
53
+ }, d.onPointerLeave = (t) => {
54
+ !a && $(t.currentTarget, f(t)) && v(t, t.pointerType);
55
+ }), {
56
+ hoverProps: d,
57
+ triggerHoverEnd: v
58
+ };
59
+ }, [
60
+ s,
61
+ n,
62
+ l,
63
+ a,
64
+ e,
65
+ b,
66
+ E
67
+ ]);
68
+ return m(() => {
69
+ a && P({
70
+ currentTarget: e.target
71
+ }, e.pointerType);
72
+ }, [
73
+ a
74
+ ]), {
75
+ hoverProps: y,
76
+ isHovered: h
77
+ };
78
+ }
79
+ export {
80
+ R as useHover
81
+ };
82
+ //# sourceMappingURL=useHover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHover.js","sources":["../../../../../../../node_modules/react-aria/dist/private/interactions/useHover.mjs"],"sourcesContent":["import {getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac} from \"../utils/domHelpers.mjs\";\nimport {useGlobalListeners as $48a7d519b337145d$export$4eaf04e54aa8eed6} from \"../utils/useGlobalListeners.mjs\";\nimport {useState as $hZqKM$useState, useRef as $hZqKM$useRef, useEffect as $hZqKM$useEffect, useMemo as $hZqKM$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\n// iOS fires onPointerEnter twice: once with pointerType=\"touch\" and again with pointerType=\"mouse\".\n// We want to ignore these emulated events so they do not trigger hover behavior.\n// See https://bugs.webkit.org/show_bug.cgi?id=214609.\nlet $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = false;\nlet $e969f22b6713ca4a$var$hoverCount = 0;\nfunction $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents() {\n $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = true;\n // Clear globalIgnoreEmulatedMouseEvents after a short timeout. iOS fires onPointerEnter\n // with pointerType=\"mouse\" immediately after onPointerUp and before onFocus. On other\n // devices that don't have this quirk, we don't want to ignore a mouse hover sometime in\n // the distant future because a user previously touched the element.\n setTimeout(()=>{\n $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = false;\n }, 500);\n}\nfunction $e969f22b6713ca4a$var$handleGlobalPointerEvent(e) {\n if (e.pointerType === 'touch') $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents();\n}\nfunction $e969f22b6713ca4a$var$setupGlobalTouchEvents() {\n let ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)(null);\n if (typeof ownerDocument === 'undefined') return;\n if ($e969f22b6713ca4a$var$hoverCount === 0) {\n if (typeof PointerEvent !== 'undefined') ownerDocument.addEventListener('pointerup', $e969f22b6713ca4a$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') ownerDocument.addEventListener('touchend', $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents);\n }\n $e969f22b6713ca4a$var$hoverCount++;\n return ()=>{\n $e969f22b6713ca4a$var$hoverCount--;\n if ($e969f22b6713ca4a$var$hoverCount > 0) return;\n if (typeof PointerEvent !== 'undefined') ownerDocument.removeEventListener('pointerup', $e969f22b6713ca4a$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') ownerDocument.removeEventListener('touchend', $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents);\n };\n}\nfunction $e969f22b6713ca4a$export$ae780daf29e6d456(props) {\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, isDisabled: isDisabled } = props;\n let [isHovered, setHovered] = (0, $hZqKM$useState)(false);\n let state = (0, $hZqKM$useRef)({\n isHovered: false,\n ignoreEmulatedMouseEvents: false,\n pointerType: '',\n target: null\n }).current;\n (0, $hZqKM$useEffect)($e969f22b6713ca4a$var$setupGlobalTouchEvents, []);\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $48a7d519b337145d$export$4eaf04e54aa8eed6)();\n let { hoverProps: hoverProps, triggerHoverEnd: triggerHoverEnd } = (0, $hZqKM$useMemo)(()=>{\n let triggerHoverStart = (event, pointerType)=>{\n state.pointerType = pointerType;\n if (isDisabled || pointerType === 'touch' || state.isHovered || !(0, $23f2114a1b82827e$export$4282f70798064fe0)(event.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event))) return;\n state.isHovered = true;\n let target = event.currentTarget;\n state.target = target;\n // When an element that is hovered over is removed, no pointerleave event is fired by the browser,\n // even though the originally hovered target may have shrunk in size so it is no longer hovered.\n // However, a pointerover event will be fired on the new target the mouse is over.\n // In Chrome this happens immediately. In Safari and Firefox, it happens upon moving the mouse one pixel.\n addGlobalListener((0, $d447af545b77c9f1$export$b204af158042fbac)((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event)), 'pointerover', (e)=>{\n if (state.isHovered && state.target && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(state.target, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) // oxlint-disable-next-line react/react-compiler\n triggerHoverEnd(e, e.pointerType);\n }, {\n capture: true\n });\n if (onHoverStart) onHoverStart({\n type: 'hoverstart',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(true);\n setHovered(true);\n };\n let triggerHoverEnd = (event, pointerType)=>{\n let target = state.target;\n state.pointerType = '';\n state.target = null;\n if (pointerType === 'touch' || !state.isHovered || !target) return;\n state.isHovered = false;\n removeAllGlobalListeners();\n if (onHoverEnd) onHoverEnd({\n type: 'hoverend',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(false);\n setHovered(false);\n };\n let hoverProps = {};\n if (typeof PointerEvent !== 'undefined') {\n hoverProps.onPointerEnter = (e)=>{\n if ($e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents && e.pointerType === 'mouse') return;\n triggerHoverStart(e, e.pointerType);\n };\n hoverProps.onPointerLeave = (e)=>{\n if (!isDisabled && (0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, e.pointerType);\n };\n } else if (process.env.NODE_ENV === 'test') {\n hoverProps.onTouchStart = ()=>{\n state.ignoreEmulatedMouseEvents = true;\n };\n hoverProps.onMouseEnter = (e)=>{\n if (!state.ignoreEmulatedMouseEvents && !$e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, 'mouse');\n state.ignoreEmulatedMouseEvents = false;\n };\n hoverProps.onMouseLeave = (e)=>{\n if (!isDisabled && (0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, 'mouse');\n };\n }\n return {\n hoverProps: hoverProps,\n triggerHoverEnd: triggerHoverEnd\n };\n }, [\n onHoverStart,\n onHoverChange,\n onHoverEnd,\n isDisabled,\n state,\n addGlobalListener,\n removeAllGlobalListeners\n ]);\n (0, $hZqKM$useEffect)(()=>{\n // Call the triggerHoverEnd as soon as isDisabled changes to true\n // Safe to call triggerHoverEnd, it will early return if we aren't currently hovering\n if (isDisabled) triggerHoverEnd({\n currentTarget: state.target\n }, state.pointerType);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isDisabled\n ]);\n return {\n hoverProps: hoverProps,\n isHovered: isHovered\n };\n}\n\n\nexport {$e969f22b6713ca4a$export$ae780daf29e6d456 as useHover};\n//# sourceMappingURL=useHover.mjs.map\n"],"names":["$e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents","$e969f22b6713ca4a$var$hoverCount","$e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents","$e969f22b6713ca4a$var$handleGlobalPointerEvent","e","$e969f22b6713ca4a$var$setupGlobalTouchEvents","ownerDocument","$d447af545b77c9f1$export$b204af158042fbac","$e969f22b6713ca4a$export$ae780daf29e6d456","props","onHoverStart","onHoverChange","onHoverEnd","isDisabled","isHovered","setHovered","$hZqKM$useState","state","$hZqKM$useRef","$hZqKM$useEffect","addGlobalListener","removeAllGlobalListeners","$48a7d519b337145d$export$4eaf04e54aa8eed6","hoverProps","triggerHoverEnd","$hZqKM$useMemo","triggerHoverStart","event","pointerType","$23f2114a1b82827e$export$4282f70798064fe0","$23f2114a1b82827e$export$e58f029f0fbfdb29","target"],"mappings":";;;;AA0BA,IAAIA,IAAwD,IACxDC,IAAmC;AACvC,SAASC,IAA2D;AAChE,EAAAF,IAAwD,IAKxD,WAAW,MAAI;AACX,IAAAA,IAAwD;AAAA,EAC5D,GAAG,GAAG;AACV;AACA,SAASG,EAA+CC,GAAG;AACvD,EAAIA,EAAE,gBAAgB,WAASF,EAAA;AACnC;AACA,SAASG,IAA+C;AACpD,MAAIC,IAAoBC,EAA2C,IAAI;AACvE,MAAI,SAAOD,IAAkB;AAC7B,WAAIL,MAAqC,KACjC,OAAO,eAAiB,OAAaK,EAAc,iBAAiB,aAAaH,CAA8C,GAGvIF,KACO,MAAI;AAEP,MADAA,KACI,EAAAA,IAAmC,MACnC,OAAO,eAAiB,OAAaK,EAAc,oBAAoB,aAAaH,CAA8C;AAAA,IAE1I;AACJ;AACA,SAASK,EAA0CC,GAAO;AACtD,MAAI,EAAE,cAAAC,GAA4B,eAAAC,GAA8B,YAAAC,GAAwB,YAAAC,MAA2BJ,GAC/G,CAACK,GAAWC,CAAU,IAAQC,EAAiB,EAAK,GACpDC,IAAYC,EAAe;AAAA,IAC3B,WAAW;AAAA,IACX,2BAA2B;AAAA,IAC3B,aAAa;AAAA,IACb,QAAQ;AAAA,EAAA,CACX,EAAE;AACH,EAAIC,EAAkBd,GAA8C,EAAE;AACtE,MAAI,EAAE,mBAAAe,GAAsC,0BAAAC,EAAA,IAA2DC,EAAA,GACnG,EAAE,YAAAC,GAAwB,iBAAAC,MAAyCC,EAAgB,MAAI;AACvF,QAAIC,IAAoB,CAACC,GAAOC,MAAc;AAE1C,UADAX,EAAM,cAAcW,GAChBf,KAAce,MAAgB,WAAWX,EAAM,aAAa,CAAKY,EAA2CF,EAAM,eAAmBG,EAA2CH,CAAK,CAAC,EAAG;AAC7L,MAAAV,EAAM,YAAY;AAClB,UAAIc,IAASJ,EAAM;AACnB,MAAAV,EAAM,SAASc,GAKfX,EAAsBb,EAA+CuB,EAA2CH,CAAK,CAAC,GAAG,eAAe,CAACvB,MAAI;AACzI,QAAIa,EAAM,aAAaA,EAAM,UAAU,CAAKY,EAA2CZ,EAAM,QAAYa,EAA2C1B,CAAC,CAAC,KACtJoB,EAAgBpB,GAAGA,EAAE,WAAW;AAAA,MACpC,GAAG;AAAA,QACC,SAAS;AAAA,MAAA,CACZ,GACGM,KAAcA,EAAa;AAAA,QAC3B,MAAM;AAAA,QACN,QAAAqB;AAAA,QACA,aAAAH;AAAA,MAAA,CACH,GACGjB,OAA6B,EAAI,GACrCI,EAAW,EAAI;AAAA,IACnB,GACIS,IAAkB,CAACG,GAAOC,MAAc;AACxC,UAAIG,IAASd,EAAM;AAGnB,MAFAA,EAAM,cAAc,IACpBA,EAAM,SAAS,MACX,EAAAW,MAAgB,WAAW,CAACX,EAAM,aAAa,CAACc,OACpDd,EAAM,YAAY,IAClBI,EAAA,GACIT,KAAYA,EAAW;AAAA,QACvB,MAAM;AAAA,QACN,QAAAmB;AAAA,QACA,aAAAH;AAAA,MAAA,CACH,GACGjB,OAA6B,EAAK,GACtCI,EAAW,EAAK;AAAA,IACpB,GACIQ,IAAa,CAAA;AACjB,WAAI,OAAO,eAAiB,QACxBA,EAAW,iBAAiB,CAACnB,MAAI;AAC7B,MAAIJ,KAAyDI,EAAE,gBAAgB,WAC/EsB,EAAkBtB,GAAGA,EAAE,WAAW;AAAA,IACtC,GACAmB,EAAW,iBAAiB,CAACnB,MAAI;AAC7B,MAAI,CAACS,KAAkBgB,EAA2CzB,EAAE,eAAmB0B,EAA2C1B,CAAC,CAAC,KAAGoB,EAAgBpB,GAAGA,EAAE,WAAW;AAAA,IAC3K,IAaG;AAAA,MACH,YAAYmB;AAAAA,MACZ,iBAAiBC;AAAAA,IAAA;AAAA,EAEzB,GAAG;AAAA,IACCd;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAI;AAAA,IACAG;AAAA,IACAC;AAAA,EAAA,CACH;AACD,SAAIF,EAAkB,MAAI;AAGtB,IAAIN,KAAYW,EAAgB;AAAA,MAC5B,eAAeP,EAAM;AAAA,IAAA,GACtBA,EAAM,WAAW;AAAA,EAExB,GAAG;AAAA,IACCJ;AAAA,EAAA,CACH,GACM;AAAA,IACH,YAAAU;AAAA,IACA,WAAAT;AAAA,EAAA;AAER;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../utils/chain.cjs"),r=require("./createEventHandler.cjs"),K=require("./createKeyboardShortcutHandler.cjs"),a=require("../utils/shadowdom/DOMFunctions.cjs");function f(n){let{shortcuts:l,allowRepeats:u=!1,allowComposing:s=!1}=n,i,c;if(l){let v=K.createKeyboardShortcutHandler(l),d=r.createEventHandler(e=>{var t,o;if(!a.nodeContains(e.currentTarget,a.getEventTarget(e))){e.continuePropagation();return}if((t=e.nativeEvent)!=null&&t.repeat&&!u||(o=e.nativeEvent)!=null&&o.isComposing&&!s){e.continuePropagation();return}v(e)}),y=r.createEventHandler(e=>{var t,o;if(!a.nodeContains(e.currentTarget,a.getEventTarget(e))){e.continuePropagation();return}if((t=e.nativeEvent)!=null&&t.repeat&&!u||(o=e.nativeEvent)!=null&&o.isComposing&&!s){e.continuePropagation();return}e.continuePropagation()});i=n.onKeyDown?g.chain(n.onKeyDown,d):d,c=n.onKeyUp?g.chain(n.onKeyUp,y):y}else i=r.createEventHandler(n.onKeyDown),c=r.createEventHandler(n.onKeyUp);return{keyboardProps:n.isDisabled?{}:{onKeyDown:i,onKeyUp:c}}}exports.useKeyboard=f;
2
+ //# sourceMappingURL=useKeyboard.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKeyboard.cjs","sources":["../../../../../../../node_modules/react-aria/dist/private/interactions/useKeyboard.mjs"],"sourcesContent":["import {chain as $a4e76a5424781910$export$e08e3b67e392101e} from \"../utils/chain.mjs\";\nimport {createEventHandler as $8dba16319206abb6$export$48d1ea6320830260} from \"./createEventHandler.mjs\";\nimport {createKeyboardShortcutHandler as $cbf729ad7eb217b0$export$2fd1fc8039383ae1} from \"./createKeyboardShortcutHandler.mjs\";\nimport {getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $8296dad1a4c5e0dc$export$8f71654801c2f7cd(props) {\n let { shortcuts: shortcuts, allowRepeats: allowRepeats = false, allowComposing: allowComposing = false } = props;\n let onKeyDown;\n let onKeyUp;\n if (shortcuts) {\n let shortcutHandler = (0, $cbf729ad7eb217b0$export$2fd1fc8039383ae1)(shortcuts);\n let shortcutOnKeyDown = (0, $8dba16319206abb6$export$48d1ea6320830260)((e)=>{\n // If keyboard event didn't originate from a child of the current target,\n // then it's a React event coming through a portal. We should ignore it.\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) {\n e.continuePropagation();\n return;\n }\n if (e.nativeEvent?.repeat && !allowRepeats || e.nativeEvent?.isComposing && !allowComposing) {\n e.continuePropagation();\n return;\n }\n shortcutHandler(e);\n });\n let shortcutOnKeyUp = (0, $8dba16319206abb6$export$48d1ea6320830260)((e)=>{\n // If keyboard event didn't originate from a child of the current target,\n // then it's a React event coming through a portal. We should ignore it.\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) {\n e.continuePropagation();\n return;\n }\n if (e.nativeEvent?.repeat && !allowRepeats || e.nativeEvent?.isComposing && !allowComposing) {\n e.continuePropagation();\n return;\n }\n // implement shortcut handler on keyup, what should the map be called? or should it be another syntax on shortcuts?\n e.continuePropagation();\n });\n onKeyDown = props.onKeyDown ? (0, $a4e76a5424781910$export$e08e3b67e392101e)(props.onKeyDown, shortcutOnKeyDown) : shortcutOnKeyDown;\n onKeyUp = props.onKeyUp ? (0, $a4e76a5424781910$export$e08e3b67e392101e)(props.onKeyUp, shortcutOnKeyUp) : shortcutOnKeyUp;\n } else {\n onKeyDown = (0, $8dba16319206abb6$export$48d1ea6320830260)(props.onKeyDown);\n onKeyUp = (0, $8dba16319206abb6$export$48d1ea6320830260)(props.onKeyUp);\n }\n return {\n keyboardProps: props.isDisabled ? {} : {\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp\n }\n };\n}\n\n\nexport {$8296dad1a4c5e0dc$export$8f71654801c2f7cd as useKeyboard};\n//# sourceMappingURL=useKeyboard.mjs.map\n"],"names":["$8296dad1a4c5e0dc$export$8f71654801c2f7cd","props","shortcuts","allowRepeats","allowComposing","onKeyDown","onKeyUp","shortcutHandler","$cbf729ad7eb217b0$export$2fd1fc8039383ae1","shortcutOnKeyDown","$8dba16319206abb6$export$48d1ea6320830260","$23f2114a1b82827e$export$4282f70798064fe0","$23f2114a1b82827e$export$e58f029f0fbfdb29","_a","_b","shortcutOnKeyUp","$a4e76a5424781910$export$e08e3b67e392101e"],"mappings":"8PAmBA,SAASA,EAA0CC,EAAO,CACtD,GAAI,CAAE,UAAWC,EAAW,aAAcC,EAAe,GAAO,eAAgBC,EAAiB,EAAK,EAAKH,EACvGI,EACAC,EACJ,GAAIJ,EAAW,CACX,IAAIK,EAAsBC,EAAAA,8BAA2CN,CAAS,EAC1EO,EAAwBC,qBAA4C,GAAI,SAGxE,GAAI,CAAKC,EAAAA,aAA2C,EAAE,cAAmBC,EAAAA,eAA2C,CAAC,CAAC,EAAG,CACrH,EAAE,oBAAmB,EACrB,MACJ,CACA,IAAIC,EAAA,EAAE,cAAF,MAAAA,EAAe,QAAU,CAACV,IAAgBW,EAAA,EAAE,cAAF,MAAAA,EAAe,aAAe,CAACV,EAAgB,CACzF,EAAE,oBAAmB,EACrB,MACJ,CACAG,EAAgB,CAAC,CACrB,CAAC,EACGQ,EAAsBL,qBAA4C,GAAI,SAGtE,GAAI,CAAKC,EAAAA,aAA2C,EAAE,cAAmBC,EAAAA,eAA2C,CAAC,CAAC,EAAG,CACrH,EAAE,oBAAmB,EACrB,MACJ,CACA,IAAIC,EAAA,EAAE,cAAF,MAAAA,EAAe,QAAU,CAACV,IAAgBW,EAAA,EAAE,cAAF,MAAAA,EAAe,aAAe,CAACV,EAAgB,CACzF,EAAE,oBAAmB,EACrB,MACJ,CAEA,EAAE,oBAAmB,CACzB,CAAC,EACDC,EAAYJ,EAAM,UAAgBe,EAAAA,MAA2Cf,EAAM,UAAWQ,CAAiB,EAAIA,EACnHH,EAAUL,EAAM,QAAce,EAAAA,MAA2Cf,EAAM,QAASc,CAAe,EAAIA,CAC/G,MACIV,EAAgBK,EAAAA,mBAA2CT,EAAM,SAAS,EAC1EK,EAAcI,EAAAA,mBAA2CT,EAAM,OAAO,EAE1E,MAAO,CACH,cAAeA,EAAM,WAAa,GAAK,CACnC,UAAWI,EACX,QAASC,CACrB,CACA,CACA","x_google_ignoreList":[0]}
@@ -0,0 +1,44 @@
1
+ import { chain as $ } from "../utils/chain.js";
2
+ import { createEventHandler as a } from "./createEventHandler.js";
3
+ import { createKeyboardShortcutHandler as y } from "./createKeyboardShortcutHandler.js";
4
+ import { nodeContains as d, getEventTarget as p } from "../utils/shadowdom/DOMFunctions.js";
5
+ function w(t) {
6
+ let { shortcuts: f, allowRepeats: c = !1, allowComposing: s = !1 } = t, r, i;
7
+ if (f) {
8
+ let b = y(f), l = a((e) => {
9
+ var o, n;
10
+ if (!d(e.currentTarget, p(e))) {
11
+ e.continuePropagation();
12
+ return;
13
+ }
14
+ if ((o = e.nativeEvent) != null && o.repeat && !c || (n = e.nativeEvent) != null && n.isComposing && !s) {
15
+ e.continuePropagation();
16
+ return;
17
+ }
18
+ b(e);
19
+ }), u = a((e) => {
20
+ var o, n;
21
+ if (!d(e.currentTarget, p(e))) {
22
+ e.continuePropagation();
23
+ return;
24
+ }
25
+ if ((o = e.nativeEvent) != null && o.repeat && !c || (n = e.nativeEvent) != null && n.isComposing && !s) {
26
+ e.continuePropagation();
27
+ return;
28
+ }
29
+ e.continuePropagation();
30
+ });
31
+ r = t.onKeyDown ? $(t.onKeyDown, l) : l, i = t.onKeyUp ? $(t.onKeyUp, u) : u;
32
+ } else
33
+ r = a(t.onKeyDown), i = a(t.onKeyUp);
34
+ return {
35
+ keyboardProps: t.isDisabled ? {} : {
36
+ onKeyDown: r,
37
+ onKeyUp: i
38
+ }
39
+ };
40
+ }
41
+ export {
42
+ w as useKeyboard
43
+ };
44
+ //# sourceMappingURL=useKeyboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKeyboard.js","sources":["../../../../../../../node_modules/react-aria/dist/private/interactions/useKeyboard.mjs"],"sourcesContent":["import {chain as $a4e76a5424781910$export$e08e3b67e392101e} from \"../utils/chain.mjs\";\nimport {createEventHandler as $8dba16319206abb6$export$48d1ea6320830260} from \"./createEventHandler.mjs\";\nimport {createKeyboardShortcutHandler as $cbf729ad7eb217b0$export$2fd1fc8039383ae1} from \"./createKeyboardShortcutHandler.mjs\";\nimport {getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $8296dad1a4c5e0dc$export$8f71654801c2f7cd(props) {\n let { shortcuts: shortcuts, allowRepeats: allowRepeats = false, allowComposing: allowComposing = false } = props;\n let onKeyDown;\n let onKeyUp;\n if (shortcuts) {\n let shortcutHandler = (0, $cbf729ad7eb217b0$export$2fd1fc8039383ae1)(shortcuts);\n let shortcutOnKeyDown = (0, $8dba16319206abb6$export$48d1ea6320830260)((e)=>{\n // If keyboard event didn't originate from a child of the current target,\n // then it's a React event coming through a portal. We should ignore it.\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) {\n e.continuePropagation();\n return;\n }\n if (e.nativeEvent?.repeat && !allowRepeats || e.nativeEvent?.isComposing && !allowComposing) {\n e.continuePropagation();\n return;\n }\n shortcutHandler(e);\n });\n let shortcutOnKeyUp = (0, $8dba16319206abb6$export$48d1ea6320830260)((e)=>{\n // If keyboard event didn't originate from a child of the current target,\n // then it's a React event coming through a portal. We should ignore it.\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) {\n e.continuePropagation();\n return;\n }\n if (e.nativeEvent?.repeat && !allowRepeats || e.nativeEvent?.isComposing && !allowComposing) {\n e.continuePropagation();\n return;\n }\n // implement shortcut handler on keyup, what should the map be called? or should it be another syntax on shortcuts?\n e.continuePropagation();\n });\n onKeyDown = props.onKeyDown ? (0, $a4e76a5424781910$export$e08e3b67e392101e)(props.onKeyDown, shortcutOnKeyDown) : shortcutOnKeyDown;\n onKeyUp = props.onKeyUp ? (0, $a4e76a5424781910$export$e08e3b67e392101e)(props.onKeyUp, shortcutOnKeyUp) : shortcutOnKeyUp;\n } else {\n onKeyDown = (0, $8dba16319206abb6$export$48d1ea6320830260)(props.onKeyDown);\n onKeyUp = (0, $8dba16319206abb6$export$48d1ea6320830260)(props.onKeyUp);\n }\n return {\n keyboardProps: props.isDisabled ? {} : {\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp\n }\n };\n}\n\n\nexport {$8296dad1a4c5e0dc$export$8f71654801c2f7cd as useKeyboard};\n//# sourceMappingURL=useKeyboard.mjs.map\n"],"names":["$8296dad1a4c5e0dc$export$8f71654801c2f7cd","props","shortcuts","allowRepeats","allowComposing","onKeyDown","onKeyUp","shortcutHandler","$cbf729ad7eb217b0$export$2fd1fc8039383ae1","shortcutOnKeyDown","$8dba16319206abb6$export$48d1ea6320830260","$23f2114a1b82827e$export$4282f70798064fe0","$23f2114a1b82827e$export$e58f029f0fbfdb29","_a","_b","shortcutOnKeyUp","$a4e76a5424781910$export$e08e3b67e392101e"],"mappings":";;;;AAmBA,SAASA,EAA0CC,GAAO;AACtD,MAAI,EAAE,WAAWC,GAAW,cAAcC,IAAe,IAAO,gBAAgBC,IAAiB,GAAK,IAAKH,GACvGI,GACAC;AACJ,MAAIJ,GAAW;AACX,QAAIK,IAAsBC,EAA2CN,CAAS,GAC1EO,IAAwBC,EAA2C,CAAC,MAAI;;AAGxE,UAAI,CAAKC,EAA2C,EAAE,eAAmBC,EAA2C,CAAC,CAAC,GAAG;AACrH,UAAE,oBAAmB;AACrB;AAAA,MACJ;AACA,WAAIC,IAAA,EAAE,gBAAF,QAAAA,EAAe,UAAU,CAACV,MAAgBW,IAAA,EAAE,gBAAF,QAAAA,EAAe,eAAe,CAACV,GAAgB;AACzF,UAAE,oBAAmB;AACrB;AAAA,MACJ;AACA,MAAAG,EAAgB,CAAC;AAAA,IACrB,CAAC,GACGQ,IAAsBL,EAA2C,CAAC,MAAI;;AAGtE,UAAI,CAAKC,EAA2C,EAAE,eAAmBC,EAA2C,CAAC,CAAC,GAAG;AACrH,UAAE,oBAAmB;AACrB;AAAA,MACJ;AACA,WAAIC,IAAA,EAAE,gBAAF,QAAAA,EAAe,UAAU,CAACV,MAAgBW,IAAA,EAAE,gBAAF,QAAAA,EAAe,eAAe,CAACV,GAAgB;AACzF,UAAE,oBAAmB;AACrB;AAAA,MACJ;AAEA,QAAE,oBAAmB;AAAA,IACzB,CAAC;AACD,IAAAC,IAAYJ,EAAM,YAAgBe,EAA2Cf,EAAM,WAAWQ,CAAiB,IAAIA,GACnHH,IAAUL,EAAM,UAAce,EAA2Cf,EAAM,SAASc,CAAe,IAAIA;AAAA,EAC/G;AACI,IAAAV,IAAgBK,EAA2CT,EAAM,SAAS,GAC1EK,IAAcI,EAA2CT,EAAM,OAAO;AAE1E,SAAO;AAAA,IACH,eAAeA,EAAM,aAAa,KAAK;AAAA,MACnC,WAAWI;AAAA,MACX,SAASC;AAAA,IACrB;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../utils/shadowdom/DOMFunctions.cjs"),d=require("../utils/useLayoutEffect.cjs"),a=require("react");function i(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function b(t){let e=a.useRef({isFocused:!1,observer:null});return d.useLayoutEffect(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),a.useCallback(n=>{let s=o.getEventTarget(n);if(s instanceof HTMLButtonElement||s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement){e.current.isFocused=!0;let r=s,l=c=>{if(e.current.isFocused=!1,r.disabled){let u=i(c);t==null||t(u)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};r.addEventListener("focusout",l,{once:!0}),e.current.observer=new MutationObserver(()=>{var c;if(e.current.isFocused&&r.disabled){(c=e.current.observer)==null||c.disconnect();let u=r===o.getActiveElement()?null:o.getActiveElement();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[t])}exports.createSyntheticEvent=i;exports.useSyntheticBlurEvent=b;
2
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs","sources":["../../../../../../../node_modules/react-aria/dist/private/interactions/utils.mjs"],"sourcesContent":["import {focusWithoutScrolling as $1969ac565cfec8d0$export$de79e2c695e052f3} from \"../utils/focusWithoutScrolling.mjs\";\nimport {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerWindow as $d447af545b77c9f1$export$f21a1ffae260145a, isNode as $d447af545b77c9f1$export$8ee0fc9ee280b4ee, isShadowRoot as $d447af545b77c9f1$export$af51f0f06c0f328a} from \"../utils/domHelpers.mjs\";\nimport {isFocusable as $3b8b240c1bf84ab9$export$4c063cf1350e6fed} from \"../utils/isFocusable.mjs\";\nimport {useLayoutEffect as $c4867b2f328c2698$export$e5c5a5f917a5871c} from \"../utils/useLayoutEffect.mjs\";\nimport {useRef as $lIB5W$useRef, useCallback as $lIB5W$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $a92dc41f639950be$export$525bc4921d56d4a(nativeEvent) {\n let event = nativeEvent;\n event.nativeEvent = nativeEvent;\n event.isDefaultPrevented = ()=>event.defaultPrevented;\n // cancelBubble is technically deprecated in the spec, but still supported in all browsers.\n event.isPropagationStopped = ()=>event.cancelBubble;\n event.persist = ()=>{};\n return event;\n}\nfunction $a92dc41f639950be$export$c2b7abe5d61ec696(event, target) {\n Object.defineProperty(event, 'target', {\n value: target\n });\n Object.defineProperty(event, 'currentTarget', {\n value: target\n });\n}\nfunction $a92dc41f639950be$export$715c682d09d639cc(onBlur) {\n let stateRef = (0, $lIB5W$useRef)({\n isFocused: false,\n observer: null\n });\n // Clean up MutationObserver on unmount. See below.\n (0, $c4867b2f328c2698$export$e5c5a5f917a5871c)(()=>{\n const state = stateRef.current;\n return ()=>{\n if (state.observer) {\n state.observer.disconnect();\n state.observer = null;\n }\n };\n }, []);\n // This function is called during a React onFocus event.\n return (0, $lIB5W$useCallback)((e)=>{\n // React does not fire onBlur when an element is disabled. https://github.com/facebook/react/issues/9142\n // Most browsers fire a native focusout event in this case, except for Firefox. In that case, we use a\n // MutationObserver to watch for the disabled attribute, and dispatch these events ourselves.\n // For browsers that do, focusout fires before the MutationObserver, so onBlur should not fire twice.\n let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n if (eventTarget instanceof HTMLButtonElement || eventTarget instanceof HTMLInputElement || eventTarget instanceof HTMLTextAreaElement || eventTarget instanceof HTMLSelectElement) {\n stateRef.current.isFocused = true;\n let target = eventTarget;\n let onBlurHandler = (e)=>{\n stateRef.current.isFocused = false;\n if (target.disabled) {\n // For backward compatibility, dispatch a (fake) React synthetic event.\n let event = $a92dc41f639950be$export$525bc4921d56d4a(e);\n onBlur?.(event);\n }\n // We no longer need the MutationObserver once the target is blurred.\n if (stateRef.current.observer) {\n stateRef.current.observer.disconnect();\n stateRef.current.observer = null;\n }\n };\n target.addEventListener('focusout', onBlurHandler, {\n once: true\n });\n stateRef.current.observer = new MutationObserver(()=>{\n if (stateRef.current.isFocused && target.disabled) {\n stateRef.current.observer?.disconnect();\n let relatedTargetEl = target === (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)() ? null : (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)();\n target.dispatchEvent(new FocusEvent('blur', {\n relatedTarget: relatedTargetEl\n }));\n target.dispatchEvent(new FocusEvent('focusout', {\n bubbles: true,\n relatedTarget: relatedTargetEl\n }));\n }\n });\n stateRef.current.observer.observe(target, {\n attributes: true,\n attributeFilter: [\n 'disabled'\n ]\n });\n }\n }, [\n onBlur\n ]);\n}\nlet $a92dc41f639950be$export$fda7da73ab5d4c48 = false;\nfunction $a92dc41f639950be$export$cabe61c495ee3649(target) {\n // The browser will focus the nearest focusable ancestor of our target.\n while(target && !(0, $3b8b240c1bf84ab9$export$4c063cf1350e6fed)(target, {\n skipVisibilityCheck: true\n }))target = target.parentElement;\n let ownerWindow = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(target);\n let activeElement = (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)(ownerWindow.document);\n if (!activeElement || activeElement === target) return;\n // Listen on the target's root (document or shadow root) so we catch focus events inside\n // shadow DOM; they do not reach the main window.\n let targetRoot = target?.getRootNode();\n let root = targetRoot != null && (0, $d447af545b77c9f1$export$af51f0f06c0f328a)(targetRoot) ? targetRoot : (0, $d447af545b77c9f1$export$f21a1ffae260145a)(target);\n // Focus is \"moving to target\" when it moves to the button or to a descendant of the button\n // (e.g. SVG icon)\n let isFocusMovingToTarget = (focusTarget)=>focusTarget === target || (0, $d447af545b77c9f1$export$8ee0fc9ee280b4ee)(focusTarget) && (0, $23f2114a1b82827e$export$4282f70798064fe0)(target, focusTarget);\n // Blur/focusout events have their target as the element losing focus. Stop propagation when\n // that is the previously focused element (activeElement) or a descendant (e.g. in shadow DOM).\n let isBlurFromActiveElement = (eventTarget)=>eventTarget === activeElement || activeElement != null && (0, $d447af545b77c9f1$export$8ee0fc9ee280b4ee)(eventTarget) && (0, $23f2114a1b82827e$export$4282f70798064fe0)(activeElement, eventTarget);\n $a92dc41f639950be$export$fda7da73ab5d4c48 = true;\n let isRefocusing = false;\n let onBlur = (e)=>{\n if (isBlurFromActiveElement((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e)) || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusOut = (e)=>{\n if (isBlurFromActiveElement((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e)) || isRefocusing) {\n e.stopImmediatePropagation();\n // If there was no focusable ancestor, we don't expect a focus event.\n // Re-focus the original active element here.\n if (!target && !isRefocusing) {\n isRefocusing = true;\n (0, $1969ac565cfec8d0$export$de79e2c695e052f3)(activeElement);\n cleanup();\n }\n }\n };\n let onFocus = (e)=>{\n if (isFocusMovingToTarget((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e)) || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusIn = (e)=>{\n if (isFocusMovingToTarget((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e)) || isRefocusing) {\n e.stopImmediatePropagation();\n if (!isRefocusing) {\n isRefocusing = true;\n (0, $1969ac565cfec8d0$export$de79e2c695e052f3)(activeElement);\n cleanup();\n }\n }\n };\n root.addEventListener('blur', onBlur, true);\n root.addEventListener('focusout', onFocusOut, true);\n root.addEventListener('focusin', onFocusIn, true);\n root.addEventListener('focus', onFocus, true);\n let cleanup = ()=>{\n cancelAnimationFrame(raf);\n root.removeEventListener('blur', onBlur, true);\n root.removeEventListener('focusout', onFocusOut, true);\n root.removeEventListener('focusin', onFocusIn, true);\n root.removeEventListener('focus', onFocus, true);\n $a92dc41f639950be$export$fda7da73ab5d4c48 = false;\n isRefocusing = false;\n };\n let raf = requestAnimationFrame(cleanup);\n return cleanup;\n}\n\n\nexport {$a92dc41f639950be$export$525bc4921d56d4a as createSyntheticEvent, $a92dc41f639950be$export$c2b7abe5d61ec696 as setEventTarget, $a92dc41f639950be$export$715c682d09d639cc as useSyntheticBlurEvent, $a92dc41f639950be$export$fda7da73ab5d4c48 as ignoreFocusEvent, $a92dc41f639950be$export$cabe61c495ee3649 as preventFocus};\n//# sourceMappingURL=utils.mjs.map\n"],"names":["$a92dc41f639950be$export$525bc4921d56d4a","nativeEvent","event","$a92dc41f639950be$export$715c682d09d639cc","onBlur","stateRef","$lIB5W$useRef","$c4867b2f328c2698$export$e5c5a5f917a5871c","state","$lIB5W$useCallback","e","eventTarget","$23f2114a1b82827e$export$e58f029f0fbfdb29","target","onBlurHandler","_a","relatedTargetEl","$23f2114a1b82827e$export$cd4e5573fbe2b576"],"mappings":"oMAuBA,SAASA,EAAyCC,EAAa,CAC3D,IAAIC,EAAQD,EACZ,OAAAC,EAAM,YAAcD,EACpBC,EAAM,mBAAqB,IAAIA,EAAM,iBAErCA,EAAM,qBAAuB,IAAIA,EAAM,aACvCA,EAAM,QAAU,IAAI,CAAC,EACdA,CACX,CASA,SAASC,EAA0CC,EAAQ,CACvD,IAAIC,EAAeC,SAAe,CAC9B,UAAW,GACX,SAAU,IAClB,CAAK,EAED,OAAIC,EAAAA,gBAA2C,IAAI,CAC/C,MAAMC,EAAQH,EAAS,QACvB,MAAO,IAAI,CACHG,EAAM,WACNA,EAAM,SAAS,WAAU,EACzBA,EAAM,SAAW,KAEzB,CACJ,EAAG,CAAA,CAAE,EAEMC,EAAAA,YAAqBC,GAAI,CAKhC,IAAIC,EAAkBC,EAAAA,eAA2CF,CAAC,EAClE,GAAIC,aAAuB,mBAAqBA,aAAuB,kBAAoBA,aAAuB,qBAAuBA,aAAuB,kBAAmB,CAC/KN,EAAS,QAAQ,UAAY,GAC7B,IAAIQ,EAASF,EACTG,EAAiBJ,GAAI,CAErB,GADAL,EAAS,QAAQ,UAAY,GACzBQ,EAAO,SAAU,CAEjB,IAAIX,EAAQF,EAAyCU,CAAC,EACtDN,GAAA,MAAAA,EAASF,EACb,CAEIG,EAAS,QAAQ,WACjBA,EAAS,QAAQ,SAAS,WAAU,EACpCA,EAAS,QAAQ,SAAW,KAEpC,EACAQ,EAAO,iBAAiB,WAAYC,EAAe,CAC/C,KAAM,EACtB,CAAa,EACDT,EAAS,QAAQ,SAAW,IAAI,iBAAiB,IAAI,OACjD,GAAIA,EAAS,QAAQ,WAAaQ,EAAO,SAAU,EAC/CE,EAAAV,EAAS,QAAQ,WAAjB,MAAAU,EAA2B,aAC3B,IAAIC,EAAkBH,IAAeI,EAAAA,iBAAyC,EAAM,KAAWA,mBAAyC,EACxIJ,EAAO,cAAc,IAAI,WAAW,OAAQ,CACxC,cAAeG,CACvC,CAAqB,CAAC,EACFH,EAAO,cAAc,IAAI,WAAW,WAAY,CAC5C,QAAS,GACT,cAAeG,CACvC,CAAqB,CAAC,CACN,CACJ,CAAC,EACDX,EAAS,QAAQ,SAAS,QAAQQ,EAAQ,CACtC,WAAY,GACZ,gBAAiB,CACb,UACpB,CACA,CAAa,CACL,CACJ,EAAG,CACCT,CACR,CAAK,CACL","x_google_ignoreList":[0]}
@@ -0,0 +1,59 @@
1
+ import { getEventTarget as i, getActiveElement as o } from "../utils/shadowdom/DOMFunctions.js";
2
+ import { useLayoutEffect as l } from "../utils/useLayoutEffect.js";
3
+ import { useRef as f, useCallback as b } from "react";
4
+ function d(t) {
5
+ let e = t;
6
+ return e.nativeEvent = t, e.isDefaultPrevented = () => e.defaultPrevented, e.isPropagationStopped = () => e.cancelBubble, e.persist = () => {
7
+ }, e;
8
+ }
9
+ function $(t) {
10
+ let e = f({
11
+ isFocused: !1,
12
+ observer: null
13
+ });
14
+ return l(() => {
15
+ const n = e.current;
16
+ return () => {
17
+ n.observer && (n.observer.disconnect(), n.observer = null);
18
+ };
19
+ }, []), b((n) => {
20
+ let s = i(n);
21
+ if (s instanceof HTMLButtonElement || s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement) {
22
+ e.current.isFocused = !0;
23
+ let r = s, u = (c) => {
24
+ if (e.current.isFocused = !1, r.disabled) {
25
+ let a = d(c);
26
+ t == null || t(a);
27
+ }
28
+ e.current.observer && (e.current.observer.disconnect(), e.current.observer = null);
29
+ };
30
+ r.addEventListener("focusout", u, {
31
+ once: !0
32
+ }), e.current.observer = new MutationObserver(() => {
33
+ var c;
34
+ if (e.current.isFocused && r.disabled) {
35
+ (c = e.current.observer) == null || c.disconnect();
36
+ let a = r === o() ? null : o();
37
+ r.dispatchEvent(new FocusEvent("blur", {
38
+ relatedTarget: a
39
+ })), r.dispatchEvent(new FocusEvent("focusout", {
40
+ bubbles: !0,
41
+ relatedTarget: a
42
+ }));
43
+ }
44
+ }), e.current.observer.observe(r, {
45
+ attributes: !0,
46
+ attributeFilter: [
47
+ "disabled"
48
+ ]
49
+ });
50
+ }
51
+ }, [
52
+ t
53
+ ]);
54
+ }
55
+ export {
56
+ d as createSyntheticEvent,
57
+ $ as useSyntheticBlurEvent
58
+ };
59
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../../node_modules/react-aria/dist/private/interactions/utils.mjs"],"sourcesContent":["import {focusWithoutScrolling as $1969ac565cfec8d0$export$de79e2c695e052f3} from \"../utils/focusWithoutScrolling.mjs\";\nimport {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerWindow as $d447af545b77c9f1$export$f21a1ffae260145a, isNode as $d447af545b77c9f1$export$8ee0fc9ee280b4ee, isShadowRoot as $d447af545b77c9f1$export$af51f0f06c0f328a} from \"../utils/domHelpers.mjs\";\nimport {isFocusable as $3b8b240c1bf84ab9$export$4c063cf1350e6fed} from \"../utils/isFocusable.mjs\";\nimport {useLayoutEffect as $c4867b2f328c2698$export$e5c5a5f917a5871c} from \"../utils/useLayoutEffect.mjs\";\nimport {useRef as $lIB5W$useRef, useCallback as $lIB5W$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $a92dc41f639950be$export$525bc4921d56d4a(nativeEvent) {\n let event = nativeEvent;\n event.nativeEvent = nativeEvent;\n event.isDefaultPrevented = ()=>event.defaultPrevented;\n // cancelBubble is technically deprecated in the spec, but still supported in all browsers.\n event.isPropagationStopped = ()=>event.cancelBubble;\n event.persist = ()=>{};\n return event;\n}\nfunction $a92dc41f639950be$export$c2b7abe5d61ec696(event, target) {\n Object.defineProperty(event, 'target', {\n value: target\n });\n Object.defineProperty(event, 'currentTarget', {\n value: target\n });\n}\nfunction $a92dc41f639950be$export$715c682d09d639cc(onBlur) {\n let stateRef = (0, $lIB5W$useRef)({\n isFocused: false,\n observer: null\n });\n // Clean up MutationObserver on unmount. See below.\n (0, $c4867b2f328c2698$export$e5c5a5f917a5871c)(()=>{\n const state = stateRef.current;\n return ()=>{\n if (state.observer) {\n state.observer.disconnect();\n state.observer = null;\n }\n };\n }, []);\n // This function is called during a React onFocus event.\n return (0, $lIB5W$useCallback)((e)=>{\n // React does not fire onBlur when an element is disabled. https://github.com/facebook/react/issues/9142\n // Most browsers fire a native focusout event in this case, except for Firefox. In that case, we use a\n // MutationObserver to watch for the disabled attribute, and dispatch these events ourselves.\n // For browsers that do, focusout fires before the MutationObserver, so onBlur should not fire twice.\n let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n if (eventTarget instanceof HTMLButtonElement || eventTarget instanceof HTMLInputElement || eventTarget instanceof HTMLTextAreaElement || eventTarget instanceof HTMLSelectElement) {\n stateRef.current.isFocused = true;\n let target = eventTarget;\n let onBlurHandler = (e)=>{\n stateRef.current.isFocused = false;\n if (target.disabled) {\n // For backward compatibility, dispatch a (fake) React synthetic event.\n let event = $a92dc41f639950be$export$525bc4921d56d4a(e);\n onBlur?.(event);\n }\n // We no longer need the MutationObserver once the target is blurred.\n if (stateRef.current.observer) {\n stateRef.current.observer.disconnect();\n stateRef.current.observer = null;\n }\n };\n target.addEventListener('focusout', onBlurHandler, {\n once: true\n });\n stateRef.current.observer = new MutationObserver(()=>{\n if (stateRef.current.isFocused && target.disabled) {\n stateRef.current.observer?.disconnect();\n let relatedTargetEl = target === (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)() ? null : (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)();\n target.dispatchEvent(new FocusEvent('blur', {\n relatedTarget: relatedTargetEl\n }));\n target.dispatchEvent(new FocusEvent('focusout', {\n bubbles: true,\n relatedTarget: relatedTargetEl\n }));\n }\n });\n stateRef.current.observer.observe(target, {\n attributes: true,\n attributeFilter: [\n 'disabled'\n ]\n });\n }\n }, [\n onBlur\n ]);\n}\nlet $a92dc41f639950be$export$fda7da73ab5d4c48 = false;\nfunction $a92dc41f639950be$export$cabe61c495ee3649(target) {\n // The browser will focus the nearest focusable ancestor of our target.\n while(target && !(0, $3b8b240c1bf84ab9$export$4c063cf1350e6fed)(target, {\n skipVisibilityCheck: true\n }))target = target.parentElement;\n let ownerWindow = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(target);\n let activeElement = (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)(ownerWindow.document);\n if (!activeElement || activeElement === target) return;\n // Listen on the target's root (document or shadow root) so we catch focus events inside\n // shadow DOM; they do not reach the main window.\n let targetRoot = target?.getRootNode();\n let root = targetRoot != null && (0, $d447af545b77c9f1$export$af51f0f06c0f328a)(targetRoot) ? targetRoot : (0, $d447af545b77c9f1$export$f21a1ffae260145a)(target);\n // Focus is \"moving to target\" when it moves to the button or to a descendant of the button\n // (e.g. SVG icon)\n let isFocusMovingToTarget = (focusTarget)=>focusTarget === target || (0, $d447af545b77c9f1$export$8ee0fc9ee280b4ee)(focusTarget) && (0, $23f2114a1b82827e$export$4282f70798064fe0)(target, focusTarget);\n // Blur/focusout events have their target as the element losing focus. Stop propagation when\n // that is the previously focused element (activeElement) or a descendant (e.g. in shadow DOM).\n let isBlurFromActiveElement = (eventTarget)=>eventTarget === activeElement || activeElement != null && (0, $d447af545b77c9f1$export$8ee0fc9ee280b4ee)(eventTarget) && (0, $23f2114a1b82827e$export$4282f70798064fe0)(activeElement, eventTarget);\n $a92dc41f639950be$export$fda7da73ab5d4c48 = true;\n let isRefocusing = false;\n let onBlur = (e)=>{\n if (isBlurFromActiveElement((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e)) || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusOut = (e)=>{\n if (isBlurFromActiveElement((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e)) || isRefocusing) {\n e.stopImmediatePropagation();\n // If there was no focusable ancestor, we don't expect a focus event.\n // Re-focus the original active element here.\n if (!target && !isRefocusing) {\n isRefocusing = true;\n (0, $1969ac565cfec8d0$export$de79e2c695e052f3)(activeElement);\n cleanup();\n }\n }\n };\n let onFocus = (e)=>{\n if (isFocusMovingToTarget((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e)) || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusIn = (e)=>{\n if (isFocusMovingToTarget((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e)) || isRefocusing) {\n e.stopImmediatePropagation();\n if (!isRefocusing) {\n isRefocusing = true;\n (0, $1969ac565cfec8d0$export$de79e2c695e052f3)(activeElement);\n cleanup();\n }\n }\n };\n root.addEventListener('blur', onBlur, true);\n root.addEventListener('focusout', onFocusOut, true);\n root.addEventListener('focusin', onFocusIn, true);\n root.addEventListener('focus', onFocus, true);\n let cleanup = ()=>{\n cancelAnimationFrame(raf);\n root.removeEventListener('blur', onBlur, true);\n root.removeEventListener('focusout', onFocusOut, true);\n root.removeEventListener('focusin', onFocusIn, true);\n root.removeEventListener('focus', onFocus, true);\n $a92dc41f639950be$export$fda7da73ab5d4c48 = false;\n isRefocusing = false;\n };\n let raf = requestAnimationFrame(cleanup);\n return cleanup;\n}\n\n\nexport {$a92dc41f639950be$export$525bc4921d56d4a as createSyntheticEvent, $a92dc41f639950be$export$c2b7abe5d61ec696 as setEventTarget, $a92dc41f639950be$export$715c682d09d639cc as useSyntheticBlurEvent, $a92dc41f639950be$export$fda7da73ab5d4c48 as ignoreFocusEvent, $a92dc41f639950be$export$cabe61c495ee3649 as preventFocus};\n//# sourceMappingURL=utils.mjs.map\n"],"names":["$a92dc41f639950be$export$525bc4921d56d4a","nativeEvent","event","$a92dc41f639950be$export$715c682d09d639cc","onBlur","stateRef","$lIB5W$useRef","$c4867b2f328c2698$export$e5c5a5f917a5871c","state","$lIB5W$useCallback","e","eventTarget","$23f2114a1b82827e$export$e58f029f0fbfdb29","target","onBlurHandler","_a","relatedTargetEl","$23f2114a1b82827e$export$cd4e5573fbe2b576"],"mappings":";;;AAuBA,SAASA,EAAyCC,GAAa;AAC3D,MAAIC,IAAQD;AACZ,SAAAC,EAAM,cAAcD,GACpBC,EAAM,qBAAqB,MAAIA,EAAM,kBAErCA,EAAM,uBAAuB,MAAIA,EAAM,cACvCA,EAAM,UAAU,MAAI;AAAA,EAAC,GACdA;AACX;AASA,SAASC,EAA0CC,GAAQ;AACvD,MAAIC,IAAeC,EAAe;AAAA,IAC9B,WAAW;AAAA,IACX,UAAU;AAAA,EAClB,CAAK;AAED,SAAIC,EAA2C,MAAI;AAC/C,UAAMC,IAAQH,EAAS;AACvB,WAAO,MAAI;AACP,MAAIG,EAAM,aACNA,EAAM,SAAS,WAAU,GACzBA,EAAM,WAAW;AAAA,IAEzB;AAAA,EACJ,GAAG,CAAA,CAAE,GAEMC,EAAoB,CAACC,MAAI;AAKhC,QAAIC,IAAkBC,EAA2CF,CAAC;AAClE,QAAIC,aAAuB,qBAAqBA,aAAuB,oBAAoBA,aAAuB,uBAAuBA,aAAuB,mBAAmB;AAC/K,MAAAN,EAAS,QAAQ,YAAY;AAC7B,UAAIQ,IAASF,GACTG,IAAgB,CAACJ,MAAI;AAErB,YADAL,EAAS,QAAQ,YAAY,IACzBQ,EAAO,UAAU;AAEjB,cAAIX,IAAQF,EAAyCU,CAAC;AACtD,UAAAN,KAAA,QAAAA,EAASF;AAAA,QACb;AAEA,QAAIG,EAAS,QAAQ,aACjBA,EAAS,QAAQ,SAAS,WAAU,GACpCA,EAAS,QAAQ,WAAW;AAAA,MAEpC;AACA,MAAAQ,EAAO,iBAAiB,YAAYC,GAAe;AAAA,QAC/C,MAAM;AAAA,MACtB,CAAa,GACDT,EAAS,QAAQ,WAAW,IAAI,iBAAiB,MAAI;;AACjD,YAAIA,EAAS,QAAQ,aAAaQ,EAAO,UAAU;AAC/C,WAAAE,IAAAV,EAAS,QAAQ,aAAjB,QAAAU,EAA2B;AAC3B,cAAIC,IAAkBH,MAAeI,EAAyC,IAAM,OAAWA,EAAyC;AACxI,UAAAJ,EAAO,cAAc,IAAI,WAAW,QAAQ;AAAA,YACxC,eAAeG;AAAA,UACvC,CAAqB,CAAC,GACFH,EAAO,cAAc,IAAI,WAAW,YAAY;AAAA,YAC5C,SAAS;AAAA,YACT,eAAeG;AAAA,UACvC,CAAqB,CAAC;AAAA,QACN;AAAA,MACJ,CAAC,GACDX,EAAS,QAAQ,SAAS,QAAQQ,GAAQ;AAAA,QACtC,YAAY;AAAA,QACZ,iBAAiB;AAAA,UACb;AAAA,QACpB;AAAA,MACA,CAAa;AAAA,IACL;AAAA,EACJ,GAAG;AAAA,IACCT;AAAA,EACR,CAAK;AACL;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),$={prefix:String(Math.round(Math.random()*1e10)),current:0},s=e.createContext($),S=e.createContext(!1);let o=new WeakMap;function b(t=!1){var n,f;let r=e.useContext(s),a=e.useRef(null);if(a.current===null&&!t){let c=(f=(n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:n.ReactCurrentOwner)==null?void 0:f.current;if(c){let u=o.get(c);u==null?o.set(c,{id:r.current,state:c.memoizedState}):c.memoizedState!==u.state&&(r.current=u.id,o.delete(c))}a.current=++r.current}return a.current}function l(t){let r=e.useContext(s),a=b(!!t),n=`react-aria${r.prefix}`;return t||`${n}-${a}`}function d(t){let r=e.useId(),[a]=e.useState(i()),n=a?"react-aria":`react-aria${$.prefix}`;return t||`${n}-${r}`}const x=typeof e.useId=="function"?d:l;function p(){return!1}function v(){return!0}function C(t){return()=>{}}function i(){return typeof e.useSyncExternalStore=="function"?e.useSyncExternalStore(C,p,v):e.useContext(S)}exports.useIsSSR=i;exports.useSSRSafeId=x;
2
+ //# sourceMappingURL=SSRProvider.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SSRProvider.cjs","sources":["../../../../../../../node_modules/react-aria/dist/private/ssr/SSRProvider.mjs"],"sourcesContent":["import $bl59K$react, {useContext as $bl59K$useContext, useState as $bl59K$useState, useMemo as $bl59K$useMemo, useLayoutEffect as $bl59K$useLayoutEffect, useRef as $bl59K$useRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is\n// guarded by a check that it only runs on the client side.\n// eslint-disable-next-line rsp-rules/use-layout-effect-rule\n\n// Default context value to use in case there is no SSRProvider. This is fine for\n// client-only apps. In order to support multiple copies of React Aria potentially\n// being on the page at once, the prefix is set to a random number. SSRProvider\n// will reset this to zero for consistency between server and client, so in the\n// SSR case multiple copies of React Aria is not supported.\nconst $c7eafbbe1ea5834e$var$defaultContext = {\n prefix: String(Math.round(Math.random() * 10000000000)),\n current: 0\n};\nconst $c7eafbbe1ea5834e$var$SSRContext = /*#__PURE__*/ (0, $bl59K$react).createContext($c7eafbbe1ea5834e$var$defaultContext);\nconst $c7eafbbe1ea5834e$var$IsSSRContext = /*#__PURE__*/ (0, $bl59K$react).createContext(false);\n// This is only used in React < 18.\nfunction $c7eafbbe1ea5834e$var$LegacySSRProvider(props) {\n let cur = (0, $bl59K$useContext)($c7eafbbe1ea5834e$var$SSRContext);\n let counter = $c7eafbbe1ea5834e$var$useCounter(cur === $c7eafbbe1ea5834e$var$defaultContext);\n let [isSSR, setIsSSR] = (0, $bl59K$useState)(true);\n let value = (0, $bl59K$useMemo)(()=>({\n // If this is the first SSRProvider, start with an empty string prefix, otherwise\n // append and increment the counter.\n prefix: cur === $c7eafbbe1ea5834e$var$defaultContext ? '' : `${cur.prefix}-${counter}`,\n current: 0\n }), [\n cur,\n counter\n ]);\n // If on the client, and the component was initially server rendered,\n // then schedule a layout effect to update the component after hydration.\n if (typeof document !== 'undefined') // This if statement technically breaks the rules of hooks, but is safe\n // because the condition never changes after mounting.\n // oxlint-disable-next-line react/react-compiler, react-hooks/rules-of-hooks\n (0, $bl59K$useLayoutEffect)(()=>{\n // oxlint-disable-next-line react/react-compiler\n setIsSSR(false);\n }, []);\n return /*#__PURE__*/ (0, $bl59K$react).createElement($c7eafbbe1ea5834e$var$SSRContext.Provider, {\n value: value\n }, /*#__PURE__*/ (0, $bl59K$react).createElement($c7eafbbe1ea5834e$var$IsSSRContext.Provider, {\n value: isSSR\n }, props.children));\n}\nlet $c7eafbbe1ea5834e$var$warnedAboutSSRProvider = false;\nfunction $c7eafbbe1ea5834e$export$9f8ac96af4b1b2ae(props) {\n // oxlint-disable-next-line react/react-compiler\n if (typeof (0, $bl59K$react)['useId'] === 'function') {\n if (process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'production' && !$c7eafbbe1ea5834e$var$warnedAboutSSRProvider) {\n console.warn('In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.');\n // oxlint-disable-next-line react/react-compiler\n $c7eafbbe1ea5834e$var$warnedAboutSSRProvider = true;\n }\n return /*#__PURE__*/ (0, $bl59K$react).createElement((0, $bl59K$react).Fragment, null, props.children);\n }\n return /*#__PURE__*/ (0, $bl59K$react).createElement($c7eafbbe1ea5834e$var$LegacySSRProvider, props);\n}\nlet $c7eafbbe1ea5834e$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);\nlet $c7eafbbe1ea5834e$var$componentIds = new WeakMap();\nfunction $c7eafbbe1ea5834e$var$useCounter(isDisabled = false) {\n let ctx = (0, $bl59K$useContext)($c7eafbbe1ea5834e$var$SSRContext);\n let ref = (0, $bl59K$useRef)(null);\n // eslint-disable-next-line rsp-rules/pure-render\n // oxlint-disable-next-line react/react-compiler, rsp-rules/pure-render\n if (ref.current === null && !isDisabled) {\n // In strict mode, React renders components twice, and the ref will be reset to null on the second render.\n // This means our id counter will be incremented twice instead of once. This is a problem because on the\n // server, components are only rendered once and so ids generated on the server won't match the client.\n // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this\n // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.\n // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.\n // To ensure that we only increment the global counter once, we store the starting id for this component in\n // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.\n // Since React runs the second render immediately after the first, this is safe.\n let currentOwner = // @ts-ignore\n (0, $bl59K$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;\n if (currentOwner) {\n let prevComponentValue = $c7eafbbe1ea5834e$var$componentIds.get(currentOwner);\n if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.\n $c7eafbbe1ea5834e$var$componentIds.set(currentOwner, {\n id: ctx.current,\n state: currentOwner.memoizedState\n });\n else if (currentOwner.memoizedState !== prevComponentValue.state) {\n // On the second render, the memoizedState gets reset by React.\n // Reset the counter, and remove from the weak map so we don't\n // do this for subsequent useId calls.\n // oxlint-disable-next-line react/react-compiler\n ctx.current = prevComponentValue.id;\n $c7eafbbe1ea5834e$var$componentIds.delete(currentOwner);\n }\n }\n // eslint-disable-next-line rsp-rules/pure-render\n // oxlint-disable-next-line react/react-compiler, rsp-rules/pure-render\n ref.current = ++ctx.current;\n }\n // eslint-disable-next-line rsp-rules/pure-render\n // oxlint-disable-next-line react/react-compiler, rsp-rules/pure-render\n return ref.current;\n}\nfunction $c7eafbbe1ea5834e$var$useLegacySSRSafeId(defaultId) {\n let ctx = (0, $bl59K$useContext)($c7eafbbe1ea5834e$var$SSRContext);\n // If we are rendering in a non-DOM environment, and there's no SSRProvider,\n // provide a warning to hint to the developer to add one.\n if (ctx === $c7eafbbe1ea5834e$var$defaultContext && !$c7eafbbe1ea5834e$var$canUseDOM && process.env.NODE_ENV !== 'production') console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.');\n let counter = $c7eafbbe1ea5834e$var$useCounter(!!defaultId);\n let prefix = ctx === $c7eafbbe1ea5834e$var$defaultContext && process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${ctx.prefix}`;\n return defaultId || `${prefix}-${counter}`;\n}\nfunction $c7eafbbe1ea5834e$var$useModernSSRSafeId(defaultId) {\n let id = (0, $bl59K$react).useId();\n let [didSSR] = (0, $bl59K$useState)($c7eafbbe1ea5834e$export$535bd6ca7f90a273());\n let prefix = didSSR || process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${$c7eafbbe1ea5834e$var$defaultContext.prefix}`;\n return defaultId || `${prefix}-${id}`;\n}\nconst $c7eafbbe1ea5834e$export$619500959fc48b26 = typeof (0, $bl59K$react)['useId'] === 'function' ? $c7eafbbe1ea5834e$var$useModernSSRSafeId : $c7eafbbe1ea5834e$var$useLegacySSRSafeId;\nfunction $c7eafbbe1ea5834e$var$getSnapshot() {\n return false;\n}\nfunction $c7eafbbe1ea5834e$var$getServerSnapshot() {\n return true;\n}\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $c7eafbbe1ea5834e$var$subscribe(onStoreChange) {\n // noop\n return ()=>{};\n}\nfunction $c7eafbbe1ea5834e$export$535bd6ca7f90a273() {\n // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.\n // oxlint-disable-next-line react/react-compiler\n if (typeof (0, $bl59K$react)['useSyncExternalStore'] === 'function') // oxlint-disable-next-line react/react-compiler\n return (0, $bl59K$react)['useSyncExternalStore']($c7eafbbe1ea5834e$var$subscribe, $c7eafbbe1ea5834e$var$getSnapshot, $c7eafbbe1ea5834e$var$getServerSnapshot);\n // oxlint-disable-next-line react/react-compiler, react-hooks/rules-of-hooks\n return (0, $bl59K$useContext)($c7eafbbe1ea5834e$var$IsSSRContext);\n}\n\n\nexport {$c7eafbbe1ea5834e$export$9f8ac96af4b1b2ae as SSRProvider, $c7eafbbe1ea5834e$export$535bd6ca7f90a273 as useIsSSR, $c7eafbbe1ea5834e$export$619500959fc48b26 as useSSRSafeId};\n//# sourceMappingURL=SSRProvider.mjs.map\n"],"names":["$c7eafbbe1ea5834e$var$defaultContext","$c7eafbbe1ea5834e$var$SSRContext","$bl59K$react","$c7eafbbe1ea5834e$var$IsSSRContext","$c7eafbbe1ea5834e$var$componentIds","$c7eafbbe1ea5834e$var$useCounter","isDisabled","ctx","$bl59K$useContext","ref","$bl59K$useRef","currentOwner","prevComponentValue","$c7eafbbe1ea5834e$var$useLegacySSRSafeId","defaultId","counter","prefix","$c7eafbbe1ea5834e$var$useModernSSRSafeId","id","didSSR","$bl59K$useState","$c7eafbbe1ea5834e$export$535bd6ca7f90a273","$c7eafbbe1ea5834e$export$619500959fc48b26","$c7eafbbe1ea5834e$var$getSnapshot","$c7eafbbe1ea5834e$var$getServerSnapshot","$c7eafbbe1ea5834e$var$subscribe","onStoreChange"],"mappings":"yGAqBMA,EAAuC,CACzC,OAAQ,OAAO,KAAK,MAAM,KAAK,OAAA,EAAW,IAAW,CAAC,EACtD,QAAS,CACb,EACMC,EAAqDC,EAAc,cAAcF,CAAoC,EACrHG,EAAuDD,EAAc,cAAc,EAAK,EA4C9F,IAAIE,MAAyC,QAC7C,SAASC,EAAiCC,EAAa,GAAO,SAC1D,IAAIC,EAAUC,EAAAA,WAAmBP,CAAgC,EAC7DQ,EAAUC,EAAAA,OAAe,IAAI,EAGjC,GAAID,EAAI,UAAY,MAAQ,CAACH,EAAY,CAUrC,IAAIK,GACAT,GAAAA,EAAAA,EAAc,qDAAdA,YAAAA,EAAkE,oBAAlEA,YAAAA,EAAqF,QACzF,GAAIS,EAAc,CACd,IAAIC,EAAqBR,EAAmC,IAAIO,CAAY,EACxEC,GAAsB,KAC1BR,EAAmC,IAAIO,EAAc,CACjD,GAAIJ,EAAI,QACR,MAAOI,EAAa,aAAA,CACvB,EACQA,EAAa,gBAAkBC,EAAmB,QAKvDL,EAAI,QAAUK,EAAmB,GACjCR,EAAmC,OAAOO,CAAY,EAE9D,CAGAF,EAAI,QAAU,EAAEF,EAAI,OACxB,CAGA,OAAOE,EAAI,OACf,CACA,SAASI,EAAyCC,EAAW,CACzD,IAAIP,EAAUC,EAAAA,WAAmBP,CAAgC,EAI7Dc,EAAUV,EAAiC,CAAC,CAACS,CAAS,EACtDE,EAA0G,aAAaT,EAAI,MAAM,GACrI,OAAOO,GAAa,GAAGE,CAAM,IAAID,CAAO,EAC5C,CACA,SAASE,EAAyCH,EAAW,CACzD,IAAII,EAAShB,EAAc,MAAA,EACvB,CAACiB,CAAM,EAAQC,EAAAA,SAAiBC,GAA2C,EAC3EL,EAASG,EAA4C,aAAe,aAAanB,EAAqC,MAAM,GAChI,OAAOc,GAAa,GAAGE,CAAM,IAAIE,CAAE,EACvC,CACA,MAAMI,EAA4C,OAAWpB,EAAc,OAAa,WAAae,EAA2CJ,EAChJ,SAASU,GAAoC,CACzC,MAAO,EACX,CACA,SAASC,GAA0C,CAC/C,MAAO,EACX,CAEA,SAASC,EAAgCC,EAAe,CAEpD,MAAO,IAAI,CAAC,CAChB,CACA,SAASL,GAA4C,CAGjD,OAAI,OAAWnB,EAAc,sBAA4B,WAC9CA,EAAc,qBAAwBuB,EAAiCF,EAAmCC,CAAuC,EAEjJhB,EAAAA,WAAmBL,CAAkC,CACpE","x_google_ignoreList":[0]}
@@ -0,0 +1,52 @@
1
+ import a, { useState as i, useContext as $, useRef as b } from "react";
2
+ const s = {
3
+ prefix: String(Math.round(Math.random() * 1e10)),
4
+ current: 0
5
+ }, S = /* @__PURE__ */ a.createContext(s), l = /* @__PURE__ */ a.createContext(!1);
6
+ let f = /* @__PURE__ */ new WeakMap();
7
+ function x(e = !1) {
8
+ var n, o;
9
+ let t = $(S), r = b(null);
10
+ if (r.current === null && !e) {
11
+ let c = (
12
+ // @ts-ignore
13
+ (o = (n = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) == null ? void 0 : n.ReactCurrentOwner) == null ? void 0 : o.current
14
+ );
15
+ if (c) {
16
+ let u = f.get(c);
17
+ u == null ? f.set(c, {
18
+ id: t.current,
19
+ state: c.memoizedState
20
+ }) : c.memoizedState !== u.state && (t.current = u.id, f.delete(c));
21
+ }
22
+ r.current = ++t.current;
23
+ }
24
+ return r.current;
25
+ }
26
+ function d(e) {
27
+ let t = $(S), r = x(!!e), n = `react-aria${t.prefix}`;
28
+ return e || `${n}-${r}`;
29
+ }
30
+ function p(e) {
31
+ let t = a.useId(), [r] = i(_()), n = r ? "react-aria" : `react-aria${s.prefix}`;
32
+ return e || `${n}-${t}`;
33
+ }
34
+ const m = typeof a.useId == "function" ? p : d;
35
+ function R() {
36
+ return !1;
37
+ }
38
+ function v() {
39
+ return !0;
40
+ }
41
+ function C(e) {
42
+ return () => {
43
+ };
44
+ }
45
+ function _() {
46
+ return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(C, R, v) : $(l);
47
+ }
48
+ export {
49
+ _ as useIsSSR,
50
+ m as useSSRSafeId
51
+ };
52
+ //# sourceMappingURL=SSRProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SSRProvider.js","sources":["../../../../../../../node_modules/react-aria/dist/private/ssr/SSRProvider.mjs"],"sourcesContent":["import $bl59K$react, {useContext as $bl59K$useContext, useState as $bl59K$useState, useMemo as $bl59K$useMemo, useLayoutEffect as $bl59K$useLayoutEffect, useRef as $bl59K$useRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is\n// guarded by a check that it only runs on the client side.\n// eslint-disable-next-line rsp-rules/use-layout-effect-rule\n\n// Default context value to use in case there is no SSRProvider. This is fine for\n// client-only apps. In order to support multiple copies of React Aria potentially\n// being on the page at once, the prefix is set to a random number. SSRProvider\n// will reset this to zero for consistency between server and client, so in the\n// SSR case multiple copies of React Aria is not supported.\nconst $c7eafbbe1ea5834e$var$defaultContext = {\n prefix: String(Math.round(Math.random() * 10000000000)),\n current: 0\n};\nconst $c7eafbbe1ea5834e$var$SSRContext = /*#__PURE__*/ (0, $bl59K$react).createContext($c7eafbbe1ea5834e$var$defaultContext);\nconst $c7eafbbe1ea5834e$var$IsSSRContext = /*#__PURE__*/ (0, $bl59K$react).createContext(false);\n// This is only used in React < 18.\nfunction $c7eafbbe1ea5834e$var$LegacySSRProvider(props) {\n let cur = (0, $bl59K$useContext)($c7eafbbe1ea5834e$var$SSRContext);\n let counter = $c7eafbbe1ea5834e$var$useCounter(cur === $c7eafbbe1ea5834e$var$defaultContext);\n let [isSSR, setIsSSR] = (0, $bl59K$useState)(true);\n let value = (0, $bl59K$useMemo)(()=>({\n // If this is the first SSRProvider, start with an empty string prefix, otherwise\n // append and increment the counter.\n prefix: cur === $c7eafbbe1ea5834e$var$defaultContext ? '' : `${cur.prefix}-${counter}`,\n current: 0\n }), [\n cur,\n counter\n ]);\n // If on the client, and the component was initially server rendered,\n // then schedule a layout effect to update the component after hydration.\n if (typeof document !== 'undefined') // This if statement technically breaks the rules of hooks, but is safe\n // because the condition never changes after mounting.\n // oxlint-disable-next-line react/react-compiler, react-hooks/rules-of-hooks\n (0, $bl59K$useLayoutEffect)(()=>{\n // oxlint-disable-next-line react/react-compiler\n setIsSSR(false);\n }, []);\n return /*#__PURE__*/ (0, $bl59K$react).createElement($c7eafbbe1ea5834e$var$SSRContext.Provider, {\n value: value\n }, /*#__PURE__*/ (0, $bl59K$react).createElement($c7eafbbe1ea5834e$var$IsSSRContext.Provider, {\n value: isSSR\n }, props.children));\n}\nlet $c7eafbbe1ea5834e$var$warnedAboutSSRProvider = false;\nfunction $c7eafbbe1ea5834e$export$9f8ac96af4b1b2ae(props) {\n // oxlint-disable-next-line react/react-compiler\n if (typeof (0, $bl59K$react)['useId'] === 'function') {\n if (process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'production' && !$c7eafbbe1ea5834e$var$warnedAboutSSRProvider) {\n console.warn('In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.');\n // oxlint-disable-next-line react/react-compiler\n $c7eafbbe1ea5834e$var$warnedAboutSSRProvider = true;\n }\n return /*#__PURE__*/ (0, $bl59K$react).createElement((0, $bl59K$react).Fragment, null, props.children);\n }\n return /*#__PURE__*/ (0, $bl59K$react).createElement($c7eafbbe1ea5834e$var$LegacySSRProvider, props);\n}\nlet $c7eafbbe1ea5834e$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);\nlet $c7eafbbe1ea5834e$var$componentIds = new WeakMap();\nfunction $c7eafbbe1ea5834e$var$useCounter(isDisabled = false) {\n let ctx = (0, $bl59K$useContext)($c7eafbbe1ea5834e$var$SSRContext);\n let ref = (0, $bl59K$useRef)(null);\n // eslint-disable-next-line rsp-rules/pure-render\n // oxlint-disable-next-line react/react-compiler, rsp-rules/pure-render\n if (ref.current === null && !isDisabled) {\n // In strict mode, React renders components twice, and the ref will be reset to null on the second render.\n // This means our id counter will be incremented twice instead of once. This is a problem because on the\n // server, components are only rendered once and so ids generated on the server won't match the client.\n // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this\n // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.\n // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.\n // To ensure that we only increment the global counter once, we store the starting id for this component in\n // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.\n // Since React runs the second render immediately after the first, this is safe.\n let currentOwner = // @ts-ignore\n (0, $bl59K$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;\n if (currentOwner) {\n let prevComponentValue = $c7eafbbe1ea5834e$var$componentIds.get(currentOwner);\n if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.\n $c7eafbbe1ea5834e$var$componentIds.set(currentOwner, {\n id: ctx.current,\n state: currentOwner.memoizedState\n });\n else if (currentOwner.memoizedState !== prevComponentValue.state) {\n // On the second render, the memoizedState gets reset by React.\n // Reset the counter, and remove from the weak map so we don't\n // do this for subsequent useId calls.\n // oxlint-disable-next-line react/react-compiler\n ctx.current = prevComponentValue.id;\n $c7eafbbe1ea5834e$var$componentIds.delete(currentOwner);\n }\n }\n // eslint-disable-next-line rsp-rules/pure-render\n // oxlint-disable-next-line react/react-compiler, rsp-rules/pure-render\n ref.current = ++ctx.current;\n }\n // eslint-disable-next-line rsp-rules/pure-render\n // oxlint-disable-next-line react/react-compiler, rsp-rules/pure-render\n return ref.current;\n}\nfunction $c7eafbbe1ea5834e$var$useLegacySSRSafeId(defaultId) {\n let ctx = (0, $bl59K$useContext)($c7eafbbe1ea5834e$var$SSRContext);\n // If we are rendering in a non-DOM environment, and there's no SSRProvider,\n // provide a warning to hint to the developer to add one.\n if (ctx === $c7eafbbe1ea5834e$var$defaultContext && !$c7eafbbe1ea5834e$var$canUseDOM && process.env.NODE_ENV !== 'production') console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.');\n let counter = $c7eafbbe1ea5834e$var$useCounter(!!defaultId);\n let prefix = ctx === $c7eafbbe1ea5834e$var$defaultContext && process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${ctx.prefix}`;\n return defaultId || `${prefix}-${counter}`;\n}\nfunction $c7eafbbe1ea5834e$var$useModernSSRSafeId(defaultId) {\n let id = (0, $bl59K$react).useId();\n let [didSSR] = (0, $bl59K$useState)($c7eafbbe1ea5834e$export$535bd6ca7f90a273());\n let prefix = didSSR || process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${$c7eafbbe1ea5834e$var$defaultContext.prefix}`;\n return defaultId || `${prefix}-${id}`;\n}\nconst $c7eafbbe1ea5834e$export$619500959fc48b26 = typeof (0, $bl59K$react)['useId'] === 'function' ? $c7eafbbe1ea5834e$var$useModernSSRSafeId : $c7eafbbe1ea5834e$var$useLegacySSRSafeId;\nfunction $c7eafbbe1ea5834e$var$getSnapshot() {\n return false;\n}\nfunction $c7eafbbe1ea5834e$var$getServerSnapshot() {\n return true;\n}\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $c7eafbbe1ea5834e$var$subscribe(onStoreChange) {\n // noop\n return ()=>{};\n}\nfunction $c7eafbbe1ea5834e$export$535bd6ca7f90a273() {\n // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.\n // oxlint-disable-next-line react/react-compiler\n if (typeof (0, $bl59K$react)['useSyncExternalStore'] === 'function') // oxlint-disable-next-line react/react-compiler\n return (0, $bl59K$react)['useSyncExternalStore']($c7eafbbe1ea5834e$var$subscribe, $c7eafbbe1ea5834e$var$getSnapshot, $c7eafbbe1ea5834e$var$getServerSnapshot);\n // oxlint-disable-next-line react/react-compiler, react-hooks/rules-of-hooks\n return (0, $bl59K$useContext)($c7eafbbe1ea5834e$var$IsSSRContext);\n}\n\n\nexport {$c7eafbbe1ea5834e$export$9f8ac96af4b1b2ae as SSRProvider, $c7eafbbe1ea5834e$export$535bd6ca7f90a273 as useIsSSR, $c7eafbbe1ea5834e$export$619500959fc48b26 as useSSRSafeId};\n//# sourceMappingURL=SSRProvider.mjs.map\n"],"names":["$c7eafbbe1ea5834e$var$defaultContext","$c7eafbbe1ea5834e$var$SSRContext","$bl59K$react","$c7eafbbe1ea5834e$var$IsSSRContext","$c7eafbbe1ea5834e$var$componentIds","$c7eafbbe1ea5834e$var$useCounter","isDisabled","ctx","$bl59K$useContext","ref","$bl59K$useRef","currentOwner","prevComponentValue","$c7eafbbe1ea5834e$var$useLegacySSRSafeId","defaultId","counter","prefix","$c7eafbbe1ea5834e$var$useModernSSRSafeId","id","didSSR","$bl59K$useState","$c7eafbbe1ea5834e$export$535bd6ca7f90a273","$c7eafbbe1ea5834e$export$619500959fc48b26","$c7eafbbe1ea5834e$var$getSnapshot","$c7eafbbe1ea5834e$var$getServerSnapshot","$c7eafbbe1ea5834e$var$subscribe","onStoreChange"],"mappings":";AAqBA,MAAMA,IAAuC;AAAA,EACzC,QAAQ,OAAO,KAAK,MAAM,KAAK,OAAA,IAAW,IAAW,CAAC;AAAA,EACtD,SAAS;AACb,GACMC,IAAqDC,gBAAAA,EAAc,cAAcF,CAAoC,GACrHG,IAAuDD,gBAAAA,EAAc,cAAc,EAAK;AA4C9F,IAAIE,wBAAyC,QAAA;AAC7C,SAASC,EAAiCC,IAAa,IAAO;;AAC1D,MAAIC,IAAUC,EAAmBP,CAAgC,GAC7DQ,IAAUC,EAAe,IAAI;AAGjC,MAAID,EAAI,YAAY,QAAQ,CAACH,GAAY;AAUrC,QAAIK;AAAA;AAAA,OACAT,KAAAA,IAAAA,EAAc,uDAAdA,gBAAAA,EAAkE,sBAAlEA,gBAAAA,EAAqF;AAAA;AACzF,QAAIS,GAAc;AACd,UAAIC,IAAqBR,EAAmC,IAAIO,CAAY;AAC5E,MAAIC,KAAsB,OAC1BR,EAAmC,IAAIO,GAAc;AAAA,QACjD,IAAIJ,EAAI;AAAA,QACR,OAAOI,EAAa;AAAA,MAAA,CACvB,IACQA,EAAa,kBAAkBC,EAAmB,UAKvDL,EAAI,UAAUK,EAAmB,IACjCR,EAAmC,OAAOO,CAAY;AAAA,IAE9D;AAGA,IAAAF,EAAI,UAAU,EAAEF,EAAI;AAAA,EACxB;AAGA,SAAOE,EAAI;AACf;AACA,SAASI,EAAyCC,GAAW;AACzD,MAAIP,IAAUC,EAAmBP,CAAgC,GAI7Dc,IAAUV,EAAiC,CAAC,CAACS,CAAS,GACtDE,IAA0G,aAAaT,EAAI,MAAM;AACrI,SAAOO,KAAa,GAAGE,CAAM,IAAID,CAAO;AAC5C;AACA,SAASE,EAAyCH,GAAW;AACzD,MAAII,IAAShB,EAAc,MAAA,GACvB,CAACiB,CAAM,IAAQC,EAAiBC,GAA2C,GAC3EL,IAASG,IAA4C,eAAe,aAAanB,EAAqC,MAAM;AAChI,SAAOc,KAAa,GAAGE,CAAM,IAAIE,CAAE;AACvC;AACA,MAAMI,IAA4C,OAAWpB,EAAc,SAAa,aAAae,IAA2CJ;AAChJ,SAASU,IAAoC;AACzC,SAAO;AACX;AACA,SAASC,IAA0C;AAC/C,SAAO;AACX;AAEA,SAASC,EAAgCC,GAAe;AAEpD,SAAO,MAAI;AAAA,EAAC;AAChB;AACA,SAASL,IAA4C;AAGjD,SAAI,OAAWnB,EAAc,wBAA4B,aAC9CA,EAAc,qBAAwBuB,GAAiCF,GAAmCC,CAAuC,IAEjJhB,EAAmBL,CAAkC;AACpE;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../interactions/useFocusVisible.cjs"),F=require("../utils/mergeProps.cjs"),m=require("../interactions/useFocusable.cjs"),q=require("../interactions/useHover.cjs"),w=require("../utils/useId.cjs"),u=require("react");function E(p,o,t){let{isDisabled:i,trigger:l,shouldCloseOnPress:g=!0}=p,c=w.useId(),e=u.useRef(!1),r=u.useRef(!1),a=()=>{(e.current||r.current)&&o.open(r.current)},n=s=>{!e.current&&!r.current&&o.close(s)};u.useEffect(()=>{let s=f=>{t&&t.current&&f.key==="Escape"&&(f.stopPropagation(),o.close(!0))};if(o.isOpen)return document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("keydown",s,!0)}},[t,o]);let P=()=>{l!=="focus"&&(b.getInteractionModality()==="pointer"?e.current=!0:e.current=!1,a())},v=()=>{l!=="focus"&&(r.current=!1,e.current=!1,n())},d=()=>{g&&(r.current=!1,e.current=!1,n(!0))},y=()=>{b.isFocusVisible()&&(r.current=!0,a())},H=()=>{r.current=!1,e.current=!1,n(!0)},{hoverProps:h}=q.useHover({isDisabled:i,onHoverStart:P,onHoverEnd:v}),{focusableProps:D}=m.useFocusable({isDisabled:i,onFocus:y,onBlur:H},t);return{triggerProps:{"aria-describedby":o.isOpen?c:void 0,...F.mergeProps(D,h,{onPointerDown:d,onKeyDown:d}),tabIndex:void 0},tooltipProps:{id:c}}}exports.useTooltipTrigger=E;
2
+ //# sourceMappingURL=useTooltipTrigger.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTooltipTrigger.cjs","sources":["../../../../../../../node_modules/react-aria/dist/private/tooltip/useTooltipTrigger.mjs"],"sourcesContent":["import {getInteractionModality as $8f5a2122b0992be3$export$630ff653c5ada6a9, isFocusVisible as $8f5a2122b0992be3$export$b9b3dfddab17db27} from \"../interactions/useFocusVisible.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {useHover as $e969f22b6713ca4a$export$ae780daf29e6d456} from \"../interactions/useHover.mjs\";\nimport {useId as $390e54f620492c70$export$f680877a34711e37} from \"../utils/useId.mjs\";\nimport {useRef as $t8vQD$useRef, useEffect as $t8vQD$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $85908aa8a35f0fac$export$a6da6c504e4bba8b(props, state, ref) {\n let { isDisabled: isDisabled, trigger: trigger, shouldCloseOnPress: shouldCloseOnPress = true } = props;\n let tooltipId = (0, $390e54f620492c70$export$f680877a34711e37)();\n let isHovered = (0, $t8vQD$useRef)(false);\n let isFocused = (0, $t8vQD$useRef)(false);\n let handleShow = ()=>{\n if (isHovered.current || isFocused.current) state.open(isFocused.current);\n };\n let handleHide = (immediate)=>{\n if (!isHovered.current && !isFocused.current) state.close(immediate);\n };\n (0, $t8vQD$useEffect)(()=>{\n let onKeyDown = (e)=>{\n if (ref && ref.current) // Escape after clicking something can give it keyboard focus\n // dismiss tooltip on esc key press\n {\n if (e.key === 'Escape') {\n e.stopPropagation();\n state.close(true);\n }\n }\n };\n if (state.isOpen) {\n document.addEventListener('keydown', onKeyDown, true);\n return ()=>{\n document.removeEventListener('keydown', onKeyDown, true);\n };\n }\n }, [\n ref,\n state\n ]);\n let onHoverStart = ()=>{\n if (trigger === 'focus') return;\n // In chrome, if you hover a trigger, then another element obscures it, due to keyboard\n // interactions for example, hover will end. When hover is restored after that element disappears,\n // focus moves on for example, then the tooltip will reopen. We check the modality to know if the hover\n // is the result of moving the mouse.\n if ((0, $8f5a2122b0992be3$export$630ff653c5ada6a9)() === 'pointer') isHovered.current = true;\n else isHovered.current = false;\n handleShow();\n };\n let onHoverEnd = ()=>{\n if (trigger === 'focus') return;\n // no matter how the trigger is left, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide();\n };\n let onPressStart = ()=>{\n // if shouldCloseOnPress is false, we should not close the tooltip\n if (!shouldCloseOnPress) return;\n // no matter how the trigger is pressed, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let onFocus = ()=>{\n let isVisible = (0, $8f5a2122b0992be3$export$b9b3dfddab17db27)();\n if (isVisible) {\n isFocused.current = true;\n handleShow();\n }\n };\n let onBlur = ()=>{\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let { hoverProps: hoverProps } = (0, $e969f22b6713ca4a$export$ae780daf29e6d456)({\n isDisabled: isDisabled,\n onHoverStart: onHoverStart,\n onHoverEnd: onHoverEnd\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)({\n isDisabled: isDisabled,\n onFocus: onFocus,\n onBlur: onBlur\n }, ref);\n return {\n triggerProps: {\n 'aria-describedby': state.isOpen ? tooltipId : undefined,\n // oxlint-disable-next-line react/react-compiler\n ...(0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(focusableProps, hoverProps, {\n onPointerDown: onPressStart,\n onKeyDown: onPressStart\n }),\n tabIndex: undefined\n },\n tooltipProps: {\n id: tooltipId\n }\n };\n}\n\n\nexport {$85908aa8a35f0fac$export$a6da6c504e4bba8b as useTooltipTrigger};\n//# sourceMappingURL=useTooltipTrigger.mjs.map\n"],"names":["$85908aa8a35f0fac$export$a6da6c504e4bba8b","props","state","ref","isDisabled","trigger","shouldCloseOnPress","tooltipId","$390e54f620492c70$export$f680877a34711e37","isHovered","$t8vQD$useRef","isFocused","handleShow","handleHide","immediate","$t8vQD$useEffect","onKeyDown","e","onHoverStart","$8f5a2122b0992be3$export$630ff653c5ada6a9","onHoverEnd","onPressStart","onFocus","$8f5a2122b0992be3$export$b9b3dfddab17db27","onBlur","hoverProps","$e969f22b6713ca4a$export$ae780daf29e6d456","focusableProps","$d1116acdf220c2da$export$4c014de7c8940b4c","$bbaa08b3cd72f041$export$9d1611c77c2fe928"],"mappings":"uTAuBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,WAAYC,EAAY,QAASC,EAAS,mBAAoBC,EAAqB,EAAI,EAAKL,EAC9FM,EAAgBC,QAAyC,EACzDC,EAAgBC,EAAAA,OAAe,EAAK,EACpCC,EAAgBD,EAAAA,OAAe,EAAK,EACpCE,EAAa,IAAI,EACbH,EAAU,SAAWE,EAAU,UAAST,EAAM,KAAKS,EAAU,OAAO,CAC5E,EACIE,EAAcC,GAAY,CACtB,CAACL,EAAU,SAAW,CAACE,EAAU,SAAST,EAAM,MAAMY,CAAS,CACvE,EACIC,EAAAA,UAAkB,IAAI,CACtB,IAAIC,EAAaC,GAAI,CACbd,GAAOA,EAAI,SAGPc,EAAE,MAAQ,WACVA,EAAE,gBAAe,EACjBf,EAAM,MAAM,EAAI,EAG5B,EACA,GAAIA,EAAM,OACN,gBAAS,iBAAiB,UAAWc,EAAW,EAAI,EAC7C,IAAI,CACP,SAAS,oBAAoB,UAAWA,EAAW,EAAI,CAC3D,CAER,EAAG,CACCb,EACAD,CACR,CAAK,EACD,IAAIgB,EAAe,IAAI,CACfb,IAAY,UAKRc,EAAAA,uBAAyC,IAAQ,UAAWV,EAAU,QAAU,GACnFA,EAAU,QAAU,GACzBG,EAAU,EACd,EACIQ,EAAa,IAAI,CACbf,IAAY,UAEhBM,EAAU,QAAU,GACpBF,EAAU,QAAU,GACpBI,EAAU,EACd,EACIQ,EAAe,IAAI,CAEdf,IAELK,EAAU,QAAU,GACpBF,EAAU,QAAU,GACpBI,EAAW,EAAI,EACnB,EACIS,EAAU,IAAI,CACMC,iBAAyC,IAEzDZ,EAAU,QAAU,GACpBC,EAAU,EAElB,EACIY,EAAS,IAAI,CACbb,EAAU,QAAU,GACpBF,EAAU,QAAU,GACpBI,EAAW,EAAI,CACnB,EACI,CAAE,WAAYY,CAAU,EAASC,EAAAA,SAA2C,CAC5E,WAAYtB,EACZ,aAAcc,EACd,WAAYE,CACpB,CAAK,EACG,CAAE,eAAgBO,CAAc,EAASC,EAAAA,aAA2C,CACpF,WAAYxB,EACZ,QAASkB,EACT,OAAQE,CAChB,EAAOrB,CAAG,EACN,MAAO,CACH,aAAc,CACV,mBAAoBD,EAAM,OAASK,EAAY,OAE/C,GAAOsB,EAAAA,WAA2CF,EAAgBF,EAAY,CAC1E,cAAeJ,EACf,UAAWA,CAC3B,CAAa,EACD,SAAU,MACtB,EACQ,aAAc,CACV,GAAId,CAChB,CACA,CACA","x_google_ignoreList":[0]}
@@ -0,0 +1,62 @@
1
+ import { getInteractionModality as h, isFocusVisible as y } from "../interactions/useFocusVisible.js";
2
+ import { mergeProps as D } from "../utils/mergeProps.js";
3
+ import { useFocusable as H } from "../interactions/useFocusable.js";
4
+ import { useHover as w } from "../interactions/useHover.js";
5
+ import { useId as E } from "../utils/useId.js";
6
+ import { useRef as d, useEffect as F } from "react";
7
+ function C(p, o, s) {
8
+ let { isDisabled: i, trigger: a, shouldCloseOnPress: b = !0 } = p, u = E(), e = d(!1), r = d(!1), l = () => {
9
+ (e.current || r.current) && o.open(r.current);
10
+ }, n = (t) => {
11
+ !e.current && !r.current && o.close(t);
12
+ };
13
+ F(() => {
14
+ let t = (f) => {
15
+ s && s.current && f.key === "Escape" && (f.stopPropagation(), o.close(!0));
16
+ };
17
+ if (o.isOpen)
18
+ return document.addEventListener("keydown", t, !0), () => {
19
+ document.removeEventListener("keydown", t, !0);
20
+ };
21
+ }, [
22
+ s,
23
+ o
24
+ ]);
25
+ let $ = () => {
26
+ a !== "focus" && (h() === "pointer" ? e.current = !0 : e.current = !1, l());
27
+ }, m = () => {
28
+ a !== "focus" && (r.current = !1, e.current = !1, n());
29
+ }, c = () => {
30
+ b && (r.current = !1, e.current = !1, n(!0));
31
+ }, P = () => {
32
+ y() && (r.current = !0, l());
33
+ }, g = () => {
34
+ r.current = !1, e.current = !1, n(!0);
35
+ }, { hoverProps: v } = w({
36
+ isDisabled: i,
37
+ onHoverStart: $,
38
+ onHoverEnd: m
39
+ }), { focusableProps: x } = H({
40
+ isDisabled: i,
41
+ onFocus: P,
42
+ onBlur: g
43
+ }, s);
44
+ return {
45
+ triggerProps: {
46
+ "aria-describedby": o.isOpen ? u : void 0,
47
+ // oxlint-disable-next-line react/react-compiler
48
+ ...D(x, v, {
49
+ onPointerDown: c,
50
+ onKeyDown: c
51
+ }),
52
+ tabIndex: void 0
53
+ },
54
+ tooltipProps: {
55
+ id: u
56
+ }
57
+ };
58
+ }
59
+ export {
60
+ C as useTooltipTrigger
61
+ };
62
+ //# sourceMappingURL=useTooltipTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTooltipTrigger.js","sources":["../../../../../../../node_modules/react-aria/dist/private/tooltip/useTooltipTrigger.mjs"],"sourcesContent":["import {getInteractionModality as $8f5a2122b0992be3$export$630ff653c5ada6a9, isFocusVisible as $8f5a2122b0992be3$export$b9b3dfddab17db27} from \"../interactions/useFocusVisible.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {useHover as $e969f22b6713ca4a$export$ae780daf29e6d456} from \"../interactions/useHover.mjs\";\nimport {useId as $390e54f620492c70$export$f680877a34711e37} from \"../utils/useId.mjs\";\nimport {useRef as $t8vQD$useRef, useEffect as $t8vQD$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $85908aa8a35f0fac$export$a6da6c504e4bba8b(props, state, ref) {\n let { isDisabled: isDisabled, trigger: trigger, shouldCloseOnPress: shouldCloseOnPress = true } = props;\n let tooltipId = (0, $390e54f620492c70$export$f680877a34711e37)();\n let isHovered = (0, $t8vQD$useRef)(false);\n let isFocused = (0, $t8vQD$useRef)(false);\n let handleShow = ()=>{\n if (isHovered.current || isFocused.current) state.open(isFocused.current);\n };\n let handleHide = (immediate)=>{\n if (!isHovered.current && !isFocused.current) state.close(immediate);\n };\n (0, $t8vQD$useEffect)(()=>{\n let onKeyDown = (e)=>{\n if (ref && ref.current) // Escape after clicking something can give it keyboard focus\n // dismiss tooltip on esc key press\n {\n if (e.key === 'Escape') {\n e.stopPropagation();\n state.close(true);\n }\n }\n };\n if (state.isOpen) {\n document.addEventListener('keydown', onKeyDown, true);\n return ()=>{\n document.removeEventListener('keydown', onKeyDown, true);\n };\n }\n }, [\n ref,\n state\n ]);\n let onHoverStart = ()=>{\n if (trigger === 'focus') return;\n // In chrome, if you hover a trigger, then another element obscures it, due to keyboard\n // interactions for example, hover will end. When hover is restored after that element disappears,\n // focus moves on for example, then the tooltip will reopen. We check the modality to know if the hover\n // is the result of moving the mouse.\n if ((0, $8f5a2122b0992be3$export$630ff653c5ada6a9)() === 'pointer') isHovered.current = true;\n else isHovered.current = false;\n handleShow();\n };\n let onHoverEnd = ()=>{\n if (trigger === 'focus') return;\n // no matter how the trigger is left, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide();\n };\n let onPressStart = ()=>{\n // if shouldCloseOnPress is false, we should not close the tooltip\n if (!shouldCloseOnPress) return;\n // no matter how the trigger is pressed, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let onFocus = ()=>{\n let isVisible = (0, $8f5a2122b0992be3$export$b9b3dfddab17db27)();\n if (isVisible) {\n isFocused.current = true;\n handleShow();\n }\n };\n let onBlur = ()=>{\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let { hoverProps: hoverProps } = (0, $e969f22b6713ca4a$export$ae780daf29e6d456)({\n isDisabled: isDisabled,\n onHoverStart: onHoverStart,\n onHoverEnd: onHoverEnd\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)({\n isDisabled: isDisabled,\n onFocus: onFocus,\n onBlur: onBlur\n }, ref);\n return {\n triggerProps: {\n 'aria-describedby': state.isOpen ? tooltipId : undefined,\n // oxlint-disable-next-line react/react-compiler\n ...(0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(focusableProps, hoverProps, {\n onPointerDown: onPressStart,\n onKeyDown: onPressStart\n }),\n tabIndex: undefined\n },\n tooltipProps: {\n id: tooltipId\n }\n };\n}\n\n\nexport {$85908aa8a35f0fac$export$a6da6c504e4bba8b as useTooltipTrigger};\n//# sourceMappingURL=useTooltipTrigger.mjs.map\n"],"names":["$85908aa8a35f0fac$export$a6da6c504e4bba8b","props","state","ref","isDisabled","trigger","shouldCloseOnPress","tooltipId","$390e54f620492c70$export$f680877a34711e37","isHovered","$t8vQD$useRef","isFocused","handleShow","handleHide","immediate","$t8vQD$useEffect","onKeyDown","e","onHoverStart","$8f5a2122b0992be3$export$630ff653c5ada6a9","onHoverEnd","onPressStart","onFocus","$8f5a2122b0992be3$export$b9b3dfddab17db27","onBlur","hoverProps","$e969f22b6713ca4a$export$ae780daf29e6d456","focusableProps","$d1116acdf220c2da$export$4c014de7c8940b4c","$bbaa08b3cd72f041$export$9d1611c77c2fe928"],"mappings":";;;;;;AAuBA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYC,GAAY,SAASC,GAAS,oBAAoBC,IAAqB,GAAI,IAAKL,GAC9FM,IAAgBC,EAAyC,GACzDC,IAAgBC,EAAe,EAAK,GACpCC,IAAgBD,EAAe,EAAK,GACpCE,IAAa,MAAI;AACjB,KAAIH,EAAU,WAAWE,EAAU,YAAST,EAAM,KAAKS,EAAU,OAAO;AAAA,EAC5E,GACIE,IAAa,CAACC,MAAY;AAC1B,IAAI,CAACL,EAAU,WAAW,CAACE,EAAU,WAAST,EAAM,MAAMY,CAAS;AAAA,EACvE;AACA,EAAIC,EAAkB,MAAI;AACtB,QAAIC,IAAY,CAACC,MAAI;AACjB,MAAId,KAAOA,EAAI,WAGPc,EAAE,QAAQ,aACVA,EAAE,gBAAe,GACjBf,EAAM,MAAM,EAAI;AAAA,IAG5B;AACA,QAAIA,EAAM;AACN,sBAAS,iBAAiB,WAAWc,GAAW,EAAI,GAC7C,MAAI;AACP,iBAAS,oBAAoB,WAAWA,GAAW,EAAI;AAAA,MAC3D;AAAA,EAER,GAAG;AAAA,IACCb;AAAA,IACAD;AAAA,EACR,CAAK;AACD,MAAIgB,IAAe,MAAI;AACnB,IAAIb,MAAY,YAKRc,EAAyC,MAAQ,YAAWV,EAAU,UAAU,KACnFA,EAAU,UAAU,IACzBG,EAAU;AAAA,EACd,GACIQ,IAAa,MAAI;AACjB,IAAIf,MAAY,YAEhBM,EAAU,UAAU,IACpBF,EAAU,UAAU,IACpBI,EAAU;AAAA,EACd,GACIQ,IAAe,MAAI;AAEnB,IAAKf,MAELK,EAAU,UAAU,IACpBF,EAAU,UAAU,IACpBI,EAAW,EAAI;AAAA,EACnB,GACIS,IAAU,MAAI;AAEd,IADoBC,EAAyC,MAEzDZ,EAAU,UAAU,IACpBC,EAAU;AAAA,EAElB,GACIY,IAAS,MAAI;AACb,IAAAb,EAAU,UAAU,IACpBF,EAAU,UAAU,IACpBI,EAAW,EAAI;AAAA,EACnB,GACI,EAAE,YAAYY,EAAU,IAASC,EAA2C;AAAA,IAC5E,YAAYtB;AAAA,IACZ,cAAcc;AAAA,IACd,YAAYE;AAAA,EACpB,CAAK,GACG,EAAE,gBAAgBO,EAAc,IAASC,EAA2C;AAAA,IACpF,YAAYxB;AAAA,IACZ,SAASkB;AAAA,IACT,QAAQE;AAAA,EAChB,GAAOrB,CAAG;AACN,SAAO;AAAA,IACH,cAAc;AAAA,MACV,oBAAoBD,EAAM,SAASK,IAAY;AAAA;AAAA,MAE/C,GAAOsB,EAA2CF,GAAgBF,GAAY;AAAA,QAC1E,eAAeJ;AAAA,QACf,WAAWA;AAAA,MAC3B,CAAa;AAAA,MACD,UAAU;AAAA,IACtB;AAAA,IACQ,cAAc;AAAA,MACV,IAAId;AAAA,IAChB;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(...t){return(...o)=>{for(let e of t)typeof e=="function"&&e(...o)}}exports.chain=n;
2
+ //# sourceMappingURL=chain.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.cjs","sources":["../../../../../../../node_modules/react-aria/dist/private/utils/chain.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /**\n * Calls all functions in the order they were chained with the same arguments.\n */ function $a4e76a5424781910$export$e08e3b67e392101e(...callbacks) {\n return (...args)=>{\n for (let callback of callbacks)if (typeof callback === 'function') callback(...args);\n };\n}\n\n\nexport {$a4e76a5424781910$export$e08e3b67e392101e as chain};\n//# sourceMappingURL=chain.mjs.map\n"],"names":["$a4e76a5424781910$export$e08e3b67e392101e","callbacks","args","callback"],"mappings":"gFAYI,SAASA,KAA6CC,EAAW,CACjE,MAAO,IAAIC,IAAO,CACd,QAASC,KAAYF,EAAc,OAAOE,GAAa,YAAYA,EAAS,GAAGD,CAAI,CACvF,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ function a(...o) {
2
+ return (...t) => {
3
+ for (let e of o) typeof e == "function" && e(...t);
4
+ };
5
+ }
6
+ export {
7
+ a as chain
8
+ };
9
+ //# sourceMappingURL=chain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.js","sources":["../../../../../../../node_modules/react-aria/dist/private/utils/chain.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /**\n * Calls all functions in the order they were chained with the same arguments.\n */ function $a4e76a5424781910$export$e08e3b67e392101e(...callbacks) {\n return (...args)=>{\n for (let callback of callbacks)if (typeof callback === 'function') callback(...args);\n };\n}\n\n\nexport {$a4e76a5424781910$export$e08e3b67e392101e as chain};\n//# sourceMappingURL=chain.mjs.map\n"],"names":["$a4e76a5424781910$export$e08e3b67e392101e","callbacks","args","callback"],"mappings":"AAYI,SAASA,KAA6CC,GAAW;AACjE,SAAO,IAAIC,MAAO;AACd,aAASC,KAAYF,EAAU,CAAI,OAAOE,KAAa,cAAYA,EAAS,GAAGD,CAAI;AAAA,EACvF;AACJ;","x_google_ignoreList":[0]}