@protonradio/proton-ui 0.11.5 → 0.11.6

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 (498) hide show
  1. package/dist/_virtual/jsx-runtime.cjs.js +2 -0
  2. package/dist/_virtual/jsx-runtime.cjs.js.map +1 -0
  3. package/dist/_virtual/jsx-runtime.es.js +5 -0
  4. package/dist/_virtual/jsx-runtime.es.js.map +1 -0
  5. package/dist/_virtual/react-jsx-runtime.development.cjs.js +2 -0
  6. package/dist/_virtual/react-jsx-runtime.development.cjs.js.map +1 -0
  7. package/dist/_virtual/react-jsx-runtime.development.es.js +5 -0
  8. package/dist/_virtual/react-jsx-runtime.development.es.js.map +1 -0
  9. package/dist/_virtual/react-jsx-runtime.production.min.cjs.js +2 -0
  10. package/dist/_virtual/react-jsx-runtime.production.min.cjs.js.map +1 -0
  11. package/dist/_virtual/react-jsx-runtime.production.min.es.js +5 -0
  12. package/dist/_virtual/react-jsx-runtime.production.min.es.js.map +1 -0
  13. package/dist/assets/svg/icons.svg.cjs.js +2 -0
  14. package/dist/assets/svg/icons.svg.cjs.js.map +1 -0
  15. package/dist/assets/svg/icons.svg.es.js +5 -0
  16. package/dist/assets/svg/icons.svg.es.js.map +1 -0
  17. package/dist/components/ActionMenu/ActionMenu.cjs.js +2 -0
  18. package/dist/components/ActionMenu/ActionMenu.cjs.js.map +1 -0
  19. package/dist/components/ActionMenu/ActionMenu.es.js +262 -0
  20. package/dist/components/ActionMenu/ActionMenu.es.js.map +1 -0
  21. package/dist/components/Badge/Badge.cjs.js +2 -0
  22. package/dist/components/Badge/Badge.cjs.js.map +1 -0
  23. package/dist/components/Badge/Badge.es.js +25 -0
  24. package/dist/components/Badge/Badge.es.js.map +1 -0
  25. package/dist/components/Banner/Banner.cjs.js +2 -0
  26. package/dist/components/Banner/Banner.cjs.js.map +1 -0
  27. package/dist/components/Banner/Banner.es.js +131 -0
  28. package/dist/components/Banner/Banner.es.js.map +1 -0
  29. package/dist/components/Button/Button.cjs.js +2 -0
  30. package/dist/components/Button/Button.cjs.js.map +1 -0
  31. package/dist/components/Button/Button.es.js +99 -0
  32. package/dist/components/Button/Button.es.js.map +1 -0
  33. package/dist/components/ButtonGroup/ButtonGroup.cjs.js +2 -0
  34. package/dist/components/ButtonGroup/ButtonGroup.cjs.js.map +1 -0
  35. package/dist/components/ButtonGroup/ButtonGroup.es.js +51 -0
  36. package/dist/components/ButtonGroup/ButtonGroup.es.js.map +1 -0
  37. package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +2 -0
  38. package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +1 -0
  39. package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +80 -0
  40. package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +1 -0
  41. package/dist/components/DataTable/DataTable.cjs.js +2 -0
  42. package/dist/components/DataTable/DataTable.cjs.js.map +1 -0
  43. package/dist/components/DataTable/DataTable.es.js +137 -0
  44. package/dist/components/DataTable/DataTable.es.js.map +1 -0
  45. package/dist/components/Dialog/Dialog.cjs.js +2 -0
  46. package/dist/components/Dialog/Dialog.cjs.js.map +1 -0
  47. package/dist/components/Dialog/Dialog.es.js +15 -0
  48. package/dist/components/Dialog/Dialog.es.js.map +1 -0
  49. package/dist/components/Elevation/Elevation.cjs.js +2 -0
  50. package/dist/components/Elevation/Elevation.cjs.js.map +1 -0
  51. package/dist/components/Elevation/Elevation.es.js +33 -0
  52. package/dist/components/Elevation/Elevation.es.js.map +1 -0
  53. package/dist/components/Icon/Icon.cjs.js +2 -0
  54. package/dist/components/Icon/Icon.cjs.js.map +1 -0
  55. package/dist/components/Icon/Icon.es.js +42 -0
  56. package/dist/components/Icon/Icon.es.js.map +1 -0
  57. package/dist/components/ImageBackground/ImageBackground.cjs.js +2 -0
  58. package/dist/components/ImageBackground/ImageBackground.cjs.js.map +1 -0
  59. package/dist/components/ImageBackground/ImageBackground.es.js +55 -0
  60. package/dist/components/ImageBackground/ImageBackground.es.js.map +1 -0
  61. package/dist/components/Input/BaseInput/Input.cjs.js +2 -0
  62. package/dist/components/Input/BaseInput/Input.cjs.js.map +1 -0
  63. package/dist/components/Input/BaseInput/Input.es.js +182 -0
  64. package/dist/components/Input/BaseInput/Input.es.js.map +1 -0
  65. package/dist/components/Input/CopyInput/CopyInput.cjs.js +2 -0
  66. package/dist/components/Input/CopyInput/CopyInput.cjs.js.map +1 -0
  67. package/dist/components/Input/CopyInput/CopyInput.es.js +83 -0
  68. package/dist/components/Input/CopyInput/CopyInput.es.js.map +1 -0
  69. package/dist/components/Input/SearchInput/SearchInput.cjs.js +2 -0
  70. package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +1 -0
  71. package/dist/components/Input/SearchInput/SearchInput.es.js +118 -0
  72. package/dist/components/Input/SearchInput/SearchInput.es.js.map +1 -0
  73. package/dist/components/Menu/MenuTrigger.cjs.js +2 -0
  74. package/dist/components/Menu/MenuTrigger.cjs.js.map +1 -0
  75. package/dist/components/Menu/MenuTrigger.es.js +89 -0
  76. package/dist/components/Menu/MenuTrigger.es.js.map +1 -0
  77. package/dist/components/Menu/PopoverMenu.cjs.js +2 -0
  78. package/dist/components/Menu/PopoverMenu.cjs.js.map +1 -0
  79. package/dist/components/Menu/PopoverMenu.es.js +122 -0
  80. package/dist/components/Menu/PopoverMenu.es.js.map +1 -0
  81. package/dist/components/Modal/Modal.cjs.js +2 -0
  82. package/dist/components/Modal/Modal.cjs.js.map +1 -0
  83. package/dist/components/Modal/Modal.es.js +122 -0
  84. package/dist/components/Modal/Modal.es.js.map +1 -0
  85. package/dist/components/Popover/Popover.cjs.js +2 -0
  86. package/dist/components/Popover/Popover.cjs.js.map +1 -0
  87. package/dist/components/Popover/Popover.es.js +53 -0
  88. package/dist/components/Popover/Popover.es.js.map +1 -0
  89. package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js +2 -0
  90. package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js.map +1 -0
  91. package/dist/components/ScreenOverlay/ScreenOverlay.es.js +44 -0
  92. package/dist/components/ScreenOverlay/ScreenOverlay.es.js.map +1 -0
  93. package/dist/components/Select/Select.cjs.js +2 -0
  94. package/dist/components/Select/Select.cjs.js.map +1 -0
  95. package/dist/components/Select/Select.es.js +224 -0
  96. package/dist/components/Select/Select.es.js.map +1 -0
  97. package/dist/components/Switch/Switch.cjs.js +2 -0
  98. package/dist/components/Switch/Switch.cjs.js.map +1 -0
  99. package/dist/components/Switch/Switch.es.js +40 -0
  100. package/dist/components/Switch/Switch.es.js.map +1 -0
  101. package/dist/components/Table/Collection/CompoundComponents.cjs.js +2 -0
  102. package/dist/components/Table/Collection/CompoundComponents.cjs.js.map +1 -0
  103. package/dist/components/Table/Collection/CompoundComponents.es.js +9 -0
  104. package/dist/components/Table/Collection/CompoundComponents.es.js.map +1 -0
  105. package/dist/components/Table/Collection/collectionParser.cjs.js +2 -0
  106. package/dist/components/Table/Collection/collectionParser.cjs.js.map +1 -0
  107. package/dist/components/Table/Collection/collectionParser.es.js +54 -0
  108. package/dist/components/Table/Collection/collectionParser.es.js.map +1 -0
  109. package/dist/components/Table/Collection/useTableCollection.cjs.js +2 -0
  110. package/dist/components/Table/Collection/useTableCollection.cjs.js.map +1 -0
  111. package/dist/components/Table/Collection/useTableCollection.es.js +59 -0
  112. package/dist/components/Table/Collection/useTableCollection.es.js.map +1 -0
  113. package/dist/components/Table/Table.cjs.js +2 -0
  114. package/dist/components/Table/Table.cjs.js.map +1 -0
  115. package/dist/components/Table/Table.es.js +89 -0
  116. package/dist/components/Table/Table.es.js.map +1 -0
  117. package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js +2 -0
  118. package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js.map +1 -0
  119. package/dist/components/Text/TextEllipsis/TextEllipsis.es.js +30 -0
  120. package/dist/components/Text/TextEllipsis/TextEllipsis.es.js.map +1 -0
  121. package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js +2 -0
  122. package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js.map +1 -0
  123. package/dist/components/Text/TextEmphasis/TextEmphasis.es.js +54 -0
  124. package/dist/components/Text/TextEmphasis/TextEmphasis.es.js.map +1 -0
  125. package/dist/components/ThemeProvider.cjs.js +2 -0
  126. package/dist/components/ThemeProvider.cjs.js.map +1 -0
  127. package/dist/components/ThemeProvider.es.js +43 -0
  128. package/dist/components/ThemeProvider.es.js.map +1 -0
  129. package/dist/components/Tombstone/Tombstone.cjs.js +2 -0
  130. package/dist/components/Tombstone/Tombstone.cjs.js.map +1 -0
  131. package/dist/components/Tombstone/Tombstone.es.js +35 -0
  132. package/dist/components/Tombstone/Tombstone.es.js.map +1 -0
  133. package/dist/components/Tooltip/Tooltip.cjs.js +2 -0
  134. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -0
  135. package/dist/components/Tooltip/Tooltip.es.js +78 -0
  136. package/dist/components/Tooltip/Tooltip.es.js.map +1 -0
  137. package/dist/components/Waveform/Waveform.cjs.js +2 -0
  138. package/dist/components/Waveform/Waveform.cjs.js.map +1 -0
  139. package/dist/components/Waveform/Waveform.es.js +163 -0
  140. package/dist/components/Waveform/Waveform.es.js.map +1 -0
  141. package/dist/components/Waveform/WaveformBar.cjs.js +2 -0
  142. package/dist/components/Waveform/WaveformBar.cjs.js.map +1 -0
  143. package/dist/components/Waveform/WaveformBar.es.js +74 -0
  144. package/dist/components/Waveform/WaveformBar.es.js.map +1 -0
  145. package/dist/constants/breakpoint.cjs.js +2 -0
  146. package/dist/constants/breakpoint.cjs.js.map +1 -0
  147. package/dist/{breakpoint-9y1_8U_b.mjs → constants/breakpoint.es.js} +2 -2
  148. package/dist/constants/breakpoint.es.js.map +1 -0
  149. package/dist/constants/placement.cjs.js +2 -0
  150. package/dist/constants/placement.cjs.js.map +1 -0
  151. package/dist/constants/placement.es.js +28 -0
  152. package/dist/constants/placement.es.js.map +1 -0
  153. package/dist/constants.cjs.js +1 -1
  154. package/dist/constants.cjs.js.map +1 -1
  155. package/dist/constants.es.js +3 -26
  156. package/dist/constants.es.js.map +1 -1
  157. package/dist/design/colors.cjs.js +2 -0
  158. package/dist/design/colors.cjs.js.map +1 -0
  159. package/dist/{colors-CWaj9dFz.mjs → design/colors.es.js} +7 -7
  160. package/dist/design/colors.es.js.map +1 -0
  161. package/dist/design/darkTheme/colors.cjs.js +2 -0
  162. package/dist/{colors-Ceyo4oCJ.mjs.map → design/darkTheme/colors.cjs.js.map} +1 -1
  163. package/dist/{colors-Ceyo4oCJ.mjs → design/darkTheme/colors.es.js} +13 -13
  164. package/dist/{colors-CebzFjpe.js.map → design/darkTheme/colors.es.js.map} +1 -1
  165. package/dist/design/darkTheme/stylesheet.cjs.js +2 -0
  166. package/dist/design/darkTheme/stylesheet.cjs.js.map +1 -0
  167. package/dist/design/darkTheme/stylesheet.es.js +52 -0
  168. package/dist/design/darkTheme/stylesheet.es.js.map +1 -0
  169. package/dist/design/generateStylesheet.cjs.js +2 -0
  170. package/dist/design/generateStylesheet.cjs.js.map +1 -0
  171. package/dist/design/generateStylesheet.es.js +26 -0
  172. package/dist/design/generateStylesheet.es.js.map +1 -0
  173. package/dist/design/lightTheme/colors.cjs.js +2 -0
  174. package/dist/{colors-DMkDnu4U.mjs.map → design/lightTheme/colors.cjs.js.map} +1 -1
  175. package/dist/{colors-DMkDnu4U.mjs → design/lightTheme/colors.es.js} +11 -11
  176. package/dist/{colors-DL1dYffC.js.map → design/lightTheme/colors.es.js.map} +1 -1
  177. package/dist/design/lightTheme/stylesheet.cjs.js +2 -0
  178. package/dist/design/lightTheme/stylesheet.cjs.js.map +1 -0
  179. package/dist/design/lightTheme/stylesheet.es.js +52 -0
  180. package/dist/design/lightTheme/stylesheet.es.js.map +1 -0
  181. package/dist/design/theme.cjs.js +2 -0
  182. package/dist/design/theme.cjs.js.map +1 -0
  183. package/dist/design/theme.es.js +12 -0
  184. package/dist/design/theme.es.js.map +1 -0
  185. package/dist/hooks/useBreakpoint.cjs.js +2 -0
  186. package/dist/hooks/useBreakpoint.cjs.js.map +1 -0
  187. package/dist/hooks/useBreakpoint.es.js +17 -0
  188. package/dist/hooks/useBreakpoint.es.js.map +1 -0
  189. package/dist/hooks/useIsClosing.cjs.js +2 -0
  190. package/dist/hooks/useIsClosing.cjs.js.map +1 -0
  191. package/dist/hooks/useIsClosing.es.js +30 -0
  192. package/dist/hooks/useIsClosing.es.js.map +1 -0
  193. package/dist/hooks/useLockBodyScroll.cjs.js +2 -0
  194. package/dist/hooks/useLockBodyScroll.cjs.js.map +1 -0
  195. package/dist/hooks/useLockBodyScroll.es.js +14 -0
  196. package/dist/hooks/useLockBodyScroll.es.js.map +1 -0
  197. package/dist/hooks/usePalette.cjs.js +2 -0
  198. package/dist/hooks/usePalette.cjs.js.map +1 -0
  199. package/dist/hooks/usePalette.es.js +37 -0
  200. package/dist/hooks/usePalette.es.js.map +1 -0
  201. package/dist/hooks.cjs.js +1 -1
  202. package/dist/hooks.cjs.js.map +1 -1
  203. package/dist/hooks.es.js +8 -37
  204. package/dist/hooks.es.js.map +1 -1
  205. package/dist/index.cjs.js +1 -17
  206. package/dist/index.cjs.js.map +1 -1
  207. package/dist/index.d.ts +67 -105
  208. package/dist/index.es.js +60 -8700
  209. package/dist/index.es.js.map +1 -1
  210. package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js +2 -0
  211. package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js.map +1 -0
  212. package/dist/node_modules/@react-aria/button/dist/useButton.es.js +47 -0
  213. package/dist/node_modules/@react-aria/button/dist/useButton.es.js.map +1 -0
  214. package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js +2 -0
  215. package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js.map +1 -0
  216. package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js +44 -0
  217. package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js.map +1 -0
  218. package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js +2 -0
  219. package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js.map +1 -0
  220. package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js +423 -0
  221. package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js.map +1 -0
  222. package/dist/node_modules/@react-aria/focus/dist/isElementVisible.cjs.js +2 -0
  223. package/dist/node_modules/@react-aria/focus/dist/isElementVisible.cjs.js.map +1 -0
  224. package/dist/node_modules/@react-aria/focus/dist/isElementVisible.es.js +23 -0
  225. package/dist/node_modules/@react-aria/focus/dist/isElementVisible.es.js.map +1 -0
  226. package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js +2 -0
  227. package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js.map +1 -0
  228. package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js +76 -0
  229. package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js.map +1 -0
  230. package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js +2 -0
  231. package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js.map +1 -0
  232. package/dist/node_modules/@react-aria/i18n/dist/context.es.js +11 -0
  233. package/dist/node_modules/@react-aria/i18n/dist/context.es.js.map +1 -0
  234. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js +2 -0
  235. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js.map +1 -0
  236. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js +30 -0
  237. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js.map +1 -0
  238. package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js +2 -0
  239. package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js.map +1 -0
  240. package/dist/node_modules/@react-aria/i18n/dist/utils.es.js +45 -0
  241. package/dist/node_modules/@react-aria/i18n/dist/utils.es.js.map +1 -0
  242. package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js +2 -0
  243. package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js.map +1 -0
  244. package/dist/node_modules/@react-aria/interactions/dist/context.es.js +10 -0
  245. package/dist/node_modules/@react-aria/interactions/dist/context.es.js.map +1 -0
  246. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js +2 -0
  247. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js.map +1 -0
  248. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js +29 -0
  249. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js.map +1 -0
  250. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js +2 -0
  251. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js.map +1 -0
  252. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js +15 -0
  253. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js.map +1 -0
  254. package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js +2 -0
  255. package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js.map +1 -0
  256. package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js +35 -0
  257. package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js.map +1 -0
  258. package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js +2 -0
  259. package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js.map +1 -0
  260. package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js +30 -0
  261. package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js.map +1 -0
  262. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js +2 -0
  263. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +1 -0
  264. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js +63 -0
  265. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +1 -0
  266. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js +2 -0
  267. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js.map +1 -0
  268. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js +56 -0
  269. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js.map +1 -0
  270. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js +2 -0
  271. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js.map +1 -0
  272. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js +42 -0
  273. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js.map +1 -0
  274. package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js +2 -0
  275. package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js.map +1 -0
  276. package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js +51 -0
  277. package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js.map +1 -0
  278. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js +2 -0
  279. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js.map +1 -0
  280. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js +13 -0
  281. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js.map +1 -0
  282. package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js +2 -0
  283. package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js.map +1 -0
  284. package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js +375 -0
  285. package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js.map +1 -0
  286. package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js +2 -0
  287. package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js.map +1 -0
  288. package/dist/node_modules/@react-aria/interactions/dist/utils.es.js +92 -0
  289. package/dist/node_modules/@react-aria/interactions/dist/utils.es.js.map +1 -0
  290. package/dist/node_modules/@react-aria/label/dist/useField.cjs.js +2 -0
  291. package/dist/node_modules/@react-aria/label/dist/useField.cjs.js.map +1 -0
  292. package/dist/node_modules/@react-aria/label/dist/useField.es.js +36 -0
  293. package/dist/node_modules/@react-aria/label/dist/useField.es.js.map +1 -0
  294. package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js +2 -0
  295. package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js.map +1 -0
  296. package/dist/node_modules/@react-aria/label/dist/useLabel.es.js +23 -0
  297. package/dist/node_modules/@react-aria/label/dist/useLabel.es.js.map +1 -0
  298. package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js +2 -0
  299. package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +1 -0
  300. package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js +16 -0
  301. package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +1 -0
  302. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js +2 -0
  303. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js.map +1 -0
  304. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js +64 -0
  305. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js.map +1 -0
  306. package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js +2 -0
  307. package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js.map +1 -0
  308. package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js +30 -0
  309. package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js.map +1 -0
  310. package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js +2 -0
  311. package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js.map +1 -0
  312. package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js +53 -0
  313. package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js.map +1 -0
  314. package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js +2 -0
  315. package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js.map +1 -0
  316. package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js +98 -0
  317. package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js.map +1 -0
  318. package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js +2 -0
  319. package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js.map +1 -0
  320. package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js +58 -0
  321. package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js.map +1 -0
  322. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js +2 -0
  323. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js.map +1 -0
  324. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js +78 -0
  325. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js.map +1 -0
  326. package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js +2 -0
  327. package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js.map +1 -0
  328. package/dist/node_modules/@react-aria/radio/dist/utils.es.js +5 -0
  329. package/dist/node_modules/@react-aria/radio/dist/utils.es.js.map +1 -0
  330. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js +2 -0
  331. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js.map +1 -0
  332. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js +19 -0
  333. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js.map +1 -0
  334. package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js +2 -0
  335. package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js.map +1 -0
  336. package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js +20 -0
  337. package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js.map +1 -0
  338. package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js +2 -0
  339. package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js.map +1 -0
  340. package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js +48 -0
  341. package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js.map +1 -0
  342. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js +2 -0
  343. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js.map +1 -0
  344. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js +41 -0
  345. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js.map +1 -0
  346. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js +2 -0
  347. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js.map +1 -0
  348. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js +110 -0
  349. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js.map +1 -0
  350. package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js +2 -0
  351. package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js.map +1 -0
  352. package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js +30 -0
  353. package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js.map +1 -0
  354. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js +2 -0
  355. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js.map +1 -0
  356. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js +33 -0
  357. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js.map +1 -0
  358. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js +2 -0
  359. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js.map +1 -0
  360. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js +19 -0
  361. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js.map +1 -0
  362. package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js +2 -0
  363. package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js.map +1 -0
  364. package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js +31 -0
  365. package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js.map +1 -0
  366. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js +2 -0
  367. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js.map +1 -0
  368. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js +9 -0
  369. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js.map +1 -0
  370. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js +2 -0
  371. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js.map +1 -0
  372. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js +8 -0
  373. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js.map +1 -0
  374. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js +2 -0
  375. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js.map +1 -0
  376. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js +13 -0
  377. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js.map +1 -0
  378. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js +2 -0
  379. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js.map +1 -0
  380. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js +9 -0
  381. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js.map +1 -0
  382. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js +2 -0
  383. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js.map +1 -0
  384. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js +11 -0
  385. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js.map +1 -0
  386. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js +2 -0
  387. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js.map +1 -0
  388. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js +9 -0
  389. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js.map +1 -0
  390. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js +2 -0
  391. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js.map +1 -0
  392. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js +11 -0
  393. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js.map +1 -0
  394. package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js +2 -0
  395. package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js.map +1 -0
  396. package/dist/node_modules/color2k/dist/index.exports.import.es.es.js +171 -0
  397. package/dist/node_modules/color2k/dist/index.exports.import.es.es.js.map +1 -0
  398. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +23 -0
  399. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js.map +1 -0
  400. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +609 -0
  401. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -0
  402. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +10 -0
  403. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js.map +1 -0
  404. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +29 -0
  405. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +1 -0
  406. package/dist/node_modules/react/jsx-runtime.cjs.js +2 -0
  407. package/dist/node_modules/react/jsx-runtime.cjs.js.map +1 -0
  408. package/dist/node_modules/react/jsx-runtime.es.js +9 -0
  409. package/dist/node_modules/react/jsx-runtime.es.js.map +1 -0
  410. package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js +2 -0
  411. package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js.map +1 -0
  412. package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js +37 -0
  413. package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js.map +1 -0
  414. package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js +2 -0
  415. package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js.map +1 -0
  416. package/dist/node_modules/react-aria-components/dist/Tooltip.es.js +97 -0
  417. package/dist/node_modules/react-aria-components/dist/Tooltip.es.js.map +1 -0
  418. package/dist/node_modules/react-aria-components/dist/utils.cjs.js +2 -0
  419. package/dist/node_modules/react-aria-components/dist/utils.cjs.js.map +1 -0
  420. package/dist/node_modules/react-aria-components/dist/utils.es.js +89 -0
  421. package/dist/node_modules/react-aria-components/dist/utils.es.js.map +1 -0
  422. package/dist/style.css +1 -1
  423. package/dist/theme/dark.cjs.js +1 -1
  424. package/dist/theme/dark.cjs.js.map +1 -1
  425. package/dist/theme/dark.es.js +8 -55
  426. package/dist/theme/dark.es.js.map +1 -1
  427. package/dist/theme/light.cjs.js +1 -1
  428. package/dist/theme/light.cjs.js.map +1 -1
  429. package/dist/theme/light.es.js +8 -55
  430. package/dist/theme/light.es.js.map +1 -1
  431. package/dist/theme.cjs.js +1 -1
  432. package/dist/theme.cjs.js.map +1 -1
  433. package/dist/theme.es.js +9 -15
  434. package/dist/theme.es.js.map +1 -1
  435. package/dist/utils/color2k.cjs.js +2 -0
  436. package/dist/utils/color2k.cjs.js.map +1 -0
  437. package/dist/utils/color2k.es.js +14 -0
  438. package/dist/utils/color2k.es.js.map +1 -0
  439. package/dist/utils/copy.cjs.js +2 -0
  440. package/dist/utils/copy.cjs.js.map +1 -0
  441. package/dist/{copy-qSgElu2b.mjs → utils/copy.es.js} +2 -2
  442. package/dist/utils/copy.es.js.map +1 -0
  443. package/dist/utils/image.cjs.js +2 -0
  444. package/dist/utils/image.cjs.js.map +1 -0
  445. package/dist/utils/image.es.js +28 -0
  446. package/dist/utils/image.es.js.map +1 -0
  447. package/dist/utils/navigation.cjs.js +2 -0
  448. package/dist/utils/navigation.cjs.js.map +1 -0
  449. package/dist/utils/navigation.es.js +12 -0
  450. package/dist/utils/navigation.es.js.map +1 -0
  451. package/dist/utils/palette.cjs.js +2 -0
  452. package/dist/utils/palette.cjs.js.map +1 -0
  453. package/dist/utils/palette.es.js +183 -0
  454. package/dist/utils/palette.es.js.map +1 -0
  455. package/dist/utils/string.cjs.js +2 -0
  456. package/dist/utils/string.cjs.js.map +1 -0
  457. package/dist/utils/string.es.js +8 -0
  458. package/dist/utils/string.es.js.map +1 -0
  459. package/dist/utils.cjs.js +1 -1
  460. package/dist/utils.es.js +19 -16
  461. package/dist/utils.es.js.map +1 -1
  462. package/package.json +6 -10
  463. package/dist/Button-BLlr5ezy.js +0 -31
  464. package/dist/Button-BLlr5ezy.js.map +0 -1
  465. package/dist/Button-DuAhPJPD.mjs +0 -727
  466. package/dist/Button-DuAhPJPD.mjs.map +0 -1
  467. package/dist/Button.cjs.js +0 -2
  468. package/dist/Button.cjs.js.map +0 -1
  469. package/dist/Button.d.ts +0 -53
  470. package/dist/Button.es.js +0 -9
  471. package/dist/Button.es.js.map +0 -1
  472. package/dist/breakpoint-9y1_8U_b.mjs.map +0 -1
  473. package/dist/breakpoint-DtqbboOa.js +0 -2
  474. package/dist/breakpoint-DtqbboOa.js.map +0 -1
  475. package/dist/color2k-CpDB_dpw.mjs +0 -168
  476. package/dist/color2k-CpDB_dpw.mjs.map +0 -1
  477. package/dist/color2k-DCgwXUem.js +0 -2
  478. package/dist/color2k-DCgwXUem.js.map +0 -1
  479. package/dist/colors-CWaj9dFz.mjs.map +0 -1
  480. package/dist/colors-CebzFjpe.js +0 -2
  481. package/dist/colors-CmSJBHaf.js +0 -2
  482. package/dist/colors-CmSJBHaf.js.map +0 -1
  483. package/dist/colors-DL1dYffC.js +0 -2
  484. package/dist/copy-DxIZCnfT.js +0 -2
  485. package/dist/copy-DxIZCnfT.js.map +0 -1
  486. package/dist/copy-qSgElu2b.mjs.map +0 -1
  487. package/dist/image-CUSfY1_T.js +0 -2
  488. package/dist/image-CUSfY1_T.js.map +0 -1
  489. package/dist/image-DFyN0Kd9.mjs +0 -207
  490. package/dist/image-DFyN0Kd9.mjs.map +0 -1
  491. package/dist/navigation-DdxS0JoV.js +0 -2
  492. package/dist/navigation-DdxS0JoV.js.map +0 -1
  493. package/dist/navigation-DsfDNfej.mjs +0 -16
  494. package/dist/navigation-DsfDNfej.mjs.map +0 -1
  495. package/dist/useBreakpoint-CjRyGKN-.mjs +0 -53
  496. package/dist/useBreakpoint-CjRyGKN-.mjs.map +0 -1
  497. package/dist/useBreakpoint-DA-JqOu3.js +0 -2
  498. package/dist/useBreakpoint-DA-JqOu3.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePress.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/usePress.mjs"],"sourcesContent":["import {createSyntheticEvent as $8a9cb279dc87e130$export$525bc4921d56d4a, preventFocus as $8a9cb279dc87e130$export$cabe61c495ee3649, setEventTarget as $8a9cb279dc87e130$export$c2b7abe5d61ec696} from \"./utils.mjs\";\nimport {disableTextSelection as $14c0b72509d70225$export$16a4697467175487, restoreTextSelection as $14c0b72509d70225$export$b0d6fa1ab32e3295} from \"./textSelection.mjs\";\nimport {PressResponderContext as $ae1eeba8b9eafd08$export$5165eccb35aaadb5} from \"./context.mjs\";\nimport {_ as $7mdmh$_} from \"@swc/helpers/_/_class_private_field_get\";\nimport {_ as $7mdmh$_1} from \"@swc/helpers/_/_class_private_field_init\";\nimport {_ as $7mdmh$_2} from \"@swc/helpers/_/_class_private_field_set\";\nimport {mergeProps as $7mdmh$mergeProps, useSyncRef as $7mdmh$useSyncRef, useGlobalListeners as $7mdmh$useGlobalListeners, useEffectEvent as $7mdmh$useEffectEvent, nodeContains as $7mdmh$nodeContains, getEventTarget as $7mdmh$getEventTarget, getOwnerDocument as $7mdmh$getOwnerDocument, chain as $7mdmh$chain, isMac as $7mdmh$isMac, openLink as $7mdmh$openLink, isVirtualClick as $7mdmh$isVirtualClick, isVirtualPointerEvent as $7mdmh$isVirtualPointerEvent, focusWithoutScrolling as $7mdmh$focusWithoutScrolling, getOwnerWindow as $7mdmh$getOwnerWindow} from \"@react-aria/utils\";\nimport {flushSync as $7mdmh$flushSync} from \"react-dom\";\nimport {useContext as $7mdmh$useContext, useState as $7mdmh$useState, useRef as $7mdmh$useRef, useMemo as $7mdmh$useMemo, useEffect as $7mdmh$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 */ // 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\n\n\n\n\nfunction $f6c31cce2adf654f$var$usePressResponderContext(props) {\n // Consume context from <PressResponder> and merge with props.\n let context = (0, $7mdmh$useContext)((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5));\n if (context) {\n let { register: register, ...contextProps } = context;\n props = (0, $7mdmh$mergeProps)(contextProps, props);\n register();\n }\n (0, $7mdmh$useSyncRef)(context, props.ref);\n return props;\n}\nvar $f6c31cce2adf654f$var$_shouldStopPropagation = /*#__PURE__*/ new WeakMap();\nclass $f6c31cce2adf654f$var$PressEvent {\n continuePropagation() {\n (0, $7mdmh$_2)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, false);\n }\n get shouldStopPropagation() {\n return (0, $7mdmh$_)(this, $f6c31cce2adf654f$var$_shouldStopPropagation);\n }\n constructor(type, pointerType, originalEvent, state){\n (0, $7mdmh$_1)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, {\n writable: true,\n value: void 0\n });\n (0, $7mdmh$_2)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, true);\n var _state_target;\n let currentTarget = (_state_target = state === null || state === void 0 ? void 0 : state.target) !== null && _state_target !== void 0 ? _state_target : originalEvent.currentTarget;\n const rect = currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.getBoundingClientRect();\n let x, y = 0;\n let clientX, clientY = null;\n if (originalEvent.clientX != null && originalEvent.clientY != null) {\n clientX = originalEvent.clientX;\n clientY = originalEvent.clientY;\n }\n if (rect) {\n if (clientX != null && clientY != null) {\n x = clientX - rect.left;\n y = clientY - rect.top;\n } else {\n x = rect.width / 2;\n y = rect.height / 2;\n }\n }\n this.type = type;\n this.pointerType = pointerType;\n this.target = originalEvent.currentTarget;\n this.shiftKey = originalEvent.shiftKey;\n this.metaKey = originalEvent.metaKey;\n this.ctrlKey = originalEvent.ctrlKey;\n this.altKey = originalEvent.altKey;\n this.x = x;\n this.y = y;\n }\n}\nconst $f6c31cce2adf654f$var$LINK_CLICKED = Symbol('linkClicked');\nfunction $f6c31cce2adf654f$export$45712eceda6fad21(props) {\n let { onPress: onPress, onPressChange: onPressChange, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onClick: onClick, isDisabled: isDisabled, isPressed: isPressedProp, preventFocusOnPress: preventFocusOnPress, shouldCancelOnPointerExit: shouldCancelOnPointerExit, allowTextSelectionOnPress: allowTextSelectionOnPress, ref: domRef, ...domProps } = $f6c31cce2adf654f$var$usePressResponderContext(props);\n let [isPressed, setPressed] = (0, $7mdmh$useState)(false);\n let ref = (0, $7mdmh$useRef)({\n isPressed: false,\n ignoreEmulatedMouseEvents: false,\n didFirePressStart: false,\n isTriggeringEvent: false,\n activePointerId: null,\n target: null,\n isOverTarget: false,\n pointerType: null,\n disposables: []\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $7mdmh$useGlobalListeners)();\n let triggerPressStart = (0, $7mdmh$useEffectEvent)((originalEvent, pointerType)=>{\n let state = ref.current;\n if (isDisabled || state.didFirePressStart) return false;\n let shouldStopPropagation = true;\n state.isTriggeringEvent = true;\n if (onPressStart) {\n let event = new $f6c31cce2adf654f$var$PressEvent('pressstart', pointerType, originalEvent);\n onPressStart(event);\n shouldStopPropagation = event.shouldStopPropagation;\n }\n if (onPressChange) onPressChange(true);\n state.isTriggeringEvent = false;\n state.didFirePressStart = true;\n setPressed(true);\n return shouldStopPropagation;\n });\n let triggerPressEnd = (0, $7mdmh$useEffectEvent)((originalEvent, pointerType, wasPressed = true)=>{\n let state = ref.current;\n if (!state.didFirePressStart) return false;\n state.didFirePressStart = false;\n state.isTriggeringEvent = true;\n let shouldStopPropagation = true;\n if (onPressEnd) {\n let event = new $f6c31cce2adf654f$var$PressEvent('pressend', pointerType, originalEvent);\n onPressEnd(event);\n shouldStopPropagation = event.shouldStopPropagation;\n }\n if (onPressChange) onPressChange(false);\n setPressed(false);\n if (onPress && wasPressed && !isDisabled) {\n let event = new $f6c31cce2adf654f$var$PressEvent('press', pointerType, originalEvent);\n onPress(event);\n shouldStopPropagation && (shouldStopPropagation = event.shouldStopPropagation);\n }\n state.isTriggeringEvent = false;\n return shouldStopPropagation;\n });\n let triggerPressUp = (0, $7mdmh$useEffectEvent)((originalEvent, pointerType)=>{\n let state = ref.current;\n if (isDisabled) return false;\n if (onPressUp) {\n state.isTriggeringEvent = true;\n let event = new $f6c31cce2adf654f$var$PressEvent('pressup', pointerType, originalEvent);\n onPressUp(event);\n state.isTriggeringEvent = false;\n return event.shouldStopPropagation;\n }\n return true;\n });\n let cancel = (0, $7mdmh$useEffectEvent)((e)=>{\n let state = ref.current;\n if (state.isPressed && state.target) {\n if (state.didFirePressStart && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);\n state.isPressed = false;\n state.isOverTarget = false;\n state.activePointerId = null;\n state.pointerType = null;\n removeAllGlobalListeners();\n if (!allowTextSelectionOnPress) (0, $14c0b72509d70225$export$b0d6fa1ab32e3295)(state.target);\n for (let dispose of state.disposables)dispose();\n state.disposables = [];\n }\n });\n let cancelOnPointerExit = (0, $7mdmh$useEffectEvent)((e)=>{\n if (shouldCancelOnPointerExit) cancel(e);\n });\n let triggerClick = (0, $7mdmh$useEffectEvent)((e)=>{\n onClick === null || onClick === void 0 ? void 0 : onClick(e);\n });\n let triggerSyntheticClick = (0, $7mdmh$useEffectEvent)((e, target)=>{\n // Some third-party libraries pass in onClick instead of onPress.\n // Create a fake mouse event and trigger onClick as well.\n // This matches the browser's native activation behavior for certain elements (e.g. button).\n // https://html.spec.whatwg.org/#activation\n // https://html.spec.whatwg.org/#fire-a-synthetic-pointer-event\n if (onClick) {\n let event = new MouseEvent('click', e);\n (0, $8a9cb279dc87e130$export$c2b7abe5d61ec696)(event, target);\n onClick((0, $8a9cb279dc87e130$export$525bc4921d56d4a)(event));\n }\n });\n let pressProps = (0, $7mdmh$useMemo)(()=>{\n let state = ref.current;\n let pressProps = {\n onKeyDown (e) {\n if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && (0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) {\n var _state_metaKeyEvents;\n if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard((0, $7mdmh$getEventTarget)(e.nativeEvent), e.key)) e.preventDefault();\n // If the event is repeating, it may have started on a different element\n // after which focus moved to the current element. Ignore these events and\n // only handle the first key down event.\n let shouldStopPropagation = true;\n if (!state.isPressed && !e.repeat) {\n state.target = e.currentTarget;\n state.isPressed = true;\n state.pointerType = 'keyboard';\n shouldStopPropagation = triggerPressStart(e, 'keyboard');\n // Focus may move before the key up event, so register the event on the document\n // instead of the same element where the key down event occurred. Make it capturing so that it will trigger\n // before stopPropagation from useKeyboard on a child element may happen and thus we can still call triggerPress for the parent element.\n let originalTarget = e.currentTarget;\n let pressUp = (e)=>{\n if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e, originalTarget) && !e.repeat && (0, $7mdmh$nodeContains)(originalTarget, (0, $7mdmh$getEventTarget)(e)) && state.target) triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target, e), 'keyboard');\n };\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'keyup', (0, $7mdmh$chain)(pressUp, onKeyUp), true);\n }\n if (shouldStopPropagation) e.stopPropagation();\n // Keep track of the keydown events that occur while the Meta (e.g. Command) key is held.\n // macOS has a bug where keyup events are not fired while the Meta key is down.\n // When the Meta key itself is released we will get an event for that, and we'll act as if\n // all of these other keys were released as well.\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1393524\n // https://bugs.webkit.org/show_bug.cgi?id=55291\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1299553\n if (e.metaKey && (0, $7mdmh$isMac)()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.set(e.key, e.nativeEvent);\n } else if (e.key === 'Meta') state.metaKeyEvents = new Map();\n },\n onClick (e) {\n if (e && !(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n if (e && e.button === 0 && !state.isTriggeringEvent && !(0, $7mdmh$openLink).isOpening) {\n let shouldStopPropagation = true;\n if (isDisabled) e.preventDefault();\n // If triggered from a screen reader or by using element.click(),\n // trigger as if it were a keyboard click.\n if (!state.ignoreEmulatedMouseEvents && !state.isPressed && (state.pointerType === 'virtual' || (0, $7mdmh$isVirtualClick)(e.nativeEvent))) {\n let stopPressStart = triggerPressStart(e, 'virtual');\n let stopPressUp = triggerPressUp(e, 'virtual');\n let stopPressEnd = triggerPressEnd(e, 'virtual');\n triggerClick(e);\n shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;\n } else if (state.isPressed && state.pointerType !== 'keyboard') {\n let pointerType = state.pointerType || e.nativeEvent.pointerType || 'virtual';\n shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType, true);\n state.isOverTarget = false;\n triggerClick(e);\n cancel(e);\n }\n state.ignoreEmulatedMouseEvents = false;\n if (shouldStopPropagation) e.stopPropagation();\n }\n }\n };\n let onKeyUp = (e)=>{\n var _state_metaKeyEvents;\n if (state.isPressed && state.target && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state.target)) {\n var _state_metaKeyEvents1;\n if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard((0, $7mdmh$getEventTarget)(e), e.key)) e.preventDefault();\n let target = (0, $7mdmh$getEventTarget)(e);\n let wasPressed = (0, $7mdmh$nodeContains)(state.target, (0, $7mdmh$getEventTarget)(e));\n triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), 'keyboard', wasPressed);\n if (wasPressed) triggerSyntheticClick(e, state.target);\n removeAllGlobalListeners();\n // If a link was triggered with a key other than Enter, open the URL ourselves.\n // This means the link has a role override, and the default browser behavior\n // only applies when using the Enter key.\n if (e.key !== 'Enter' && $f6c31cce2adf654f$var$isHTMLAnchorLink(state.target) && (0, $7mdmh$nodeContains)(state.target, target) && !e[$f6c31cce2adf654f$var$LINK_CLICKED]) {\n // Store a hidden property on the event so we only trigger link click once,\n // even if there are multiple usePress instances attached to the element.\n e[$f6c31cce2adf654f$var$LINK_CLICKED] = true;\n (0, $7mdmh$openLink)(state.target, e, false);\n }\n state.isPressed = false;\n (_state_metaKeyEvents1 = state.metaKeyEvents) === null || _state_metaKeyEvents1 === void 0 ? void 0 : _state_metaKeyEvents1.delete(e.key);\n } else if (e.key === 'Meta' && ((_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.size)) {\n var _state_target;\n // If we recorded keydown events that occurred while the Meta key was pressed,\n // and those haven't received keyup events already, fire keyup events ourselves.\n // See comment above for more info about the macOS bug causing this.\n let events = state.metaKeyEvents;\n state.metaKeyEvents = undefined;\n for (let event of events.values())(_state_target = state.target) === null || _state_target === void 0 ? void 0 : _state_target.dispatchEvent(new KeyboardEvent('keyup', event));\n }\n };\n if (typeof PointerEvent !== 'undefined') {\n pressProps.onPointerDown = (e)=>{\n // Only handle left clicks, and ignore events that bubbled through portals.\n if (e.button !== 0 || !(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n // iOS safari fires pointer events from VoiceOver with incorrect coordinates/target.\n // Ignore and let the onClick handler take care of it instead.\n // https://bugs.webkit.org/show_bug.cgi?id=222627\n // https://bugs.webkit.org/show_bug.cgi?id=223202\n if ((0, $7mdmh$isVirtualPointerEvent)(e.nativeEvent)) {\n state.pointerType = 'virtual';\n return;\n }\n state.pointerType = e.pointerType;\n let shouldStopPropagation = true;\n if (!state.isPressed) {\n state.isPressed = true;\n state.isOverTarget = true;\n state.activePointerId = e.pointerId;\n state.target = e.currentTarget;\n if (!allowTextSelectionOnPress) (0, $14c0b72509d70225$export$16a4697467175487)(state.target);\n shouldStopPropagation = triggerPressStart(e, state.pointerType);\n // Release pointer capture so that touch interactions can leave the original target.\n // This enables onPointerLeave and onPointerEnter to fire.\n let target = (0, $7mdmh$getEventTarget)(e.nativeEvent);\n if ('releasePointerCapture' in target) target.releasePointerCapture(e.pointerId);\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'pointerup', onPointerUp, false);\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'pointercancel', onPointerCancel, false);\n }\n if (shouldStopPropagation) e.stopPropagation();\n };\n pressProps.onMouseDown = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n if (e.button === 0) {\n if (preventFocusOnPress) {\n let dispose = (0, $8a9cb279dc87e130$export$cabe61c495ee3649)(e.target);\n if (dispose) state.disposables.push(dispose);\n }\n e.stopPropagation();\n }\n };\n pressProps.onPointerUp = (e)=>{\n // iOS fires pointerup with zero width and height, so check the pointerType recorded during pointerdown.\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent)) || state.pointerType === 'virtual') return;\n // Only handle left clicks\n if (e.button === 0) triggerPressUp(e, state.pointerType || e.pointerType);\n };\n pressProps.onPointerEnter = (e)=>{\n if (e.pointerId === state.activePointerId && state.target && !state.isOverTarget && state.pointerType != null) {\n state.isOverTarget = true;\n triggerPressStart($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);\n }\n };\n pressProps.onPointerLeave = (e)=>{\n if (e.pointerId === state.activePointerId && state.target && state.isOverTarget && state.pointerType != null) {\n state.isOverTarget = false;\n triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);\n cancelOnPointerExit(e);\n }\n };\n let onPointerUp = (e)=>{\n if (e.pointerId === state.activePointerId && state.isPressed && e.button === 0 && state.target) {\n if ((0, $7mdmh$nodeContains)(state.target, (0, $7mdmh$getEventTarget)(e)) && state.pointerType != null) {\n // Wait for onClick to fire onPress. This avoids browser issues when the DOM\n // is mutated between onPointerUp and onClick, and is more compatible with third party libraries.\n // https://github.com/adobe/react-spectrum/issues/1513\n // https://issues.chromium.org/issues/40732224\n // However, iOS and Android do not focus or fire onClick after a long press.\n // We work around this by triggering a click ourselves after a timeout.\n // This timeout is canceled during the click event in case the real one fires first.\n // The timeout must be at least 32ms, because Safari on iOS delays the click event on\n // non-form elements without certain ARIA roles (for hover emulation).\n // https://github.com/WebKit/WebKit/blob/dccfae42bb29bd4bdef052e469f604a9387241c0/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm#L875-L892\n let clicked = false;\n let timeout = setTimeout(()=>{\n if (state.isPressed && state.target instanceof HTMLElement) {\n if (clicked) cancel(e);\n else {\n (0, $7mdmh$focusWithoutScrolling)(state.target);\n state.target.click();\n }\n }\n }, 80);\n // Use a capturing listener to track if a click occurred.\n // If stopPropagation is called it may never reach our handler.\n addGlobalListener(e.currentTarget, 'click', ()=>clicked = true, true);\n state.disposables.push(()=>clearTimeout(timeout));\n } else cancel(e);\n // Ignore subsequent onPointerLeave event before onClick on touch devices.\n state.isOverTarget = false;\n }\n };\n let onPointerCancel = (e)=>{\n cancel(e);\n };\n pressProps.onDragStart = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n // Safari does not call onPointerCancel when a drag starts, whereas Chrome and Firefox do.\n cancel(e);\n };\n } else if (process.env.NODE_ENV === 'test') {\n // NOTE: this fallback branch is entirely used by unit tests.\n // All browsers now support pointer events, but JSDOM still does not.\n pressProps.onMouseDown = (e)=>{\n // Only handle left clicks\n if (e.button !== 0 || !(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n if (state.ignoreEmulatedMouseEvents) {\n e.stopPropagation();\n return;\n }\n state.isPressed = true;\n state.isOverTarget = true;\n state.target = e.currentTarget;\n state.pointerType = (0, $7mdmh$isVirtualClick)(e.nativeEvent) ? 'virtual' : 'mouse';\n // Flush sync so that focus moved during react re-renders occurs before we yield back to the browser.\n let shouldStopPropagation = (0, $7mdmh$flushSync)(()=>triggerPressStart(e, state.pointerType));\n if (shouldStopPropagation) e.stopPropagation();\n if (preventFocusOnPress) {\n let dispose = (0, $8a9cb279dc87e130$export$cabe61c495ee3649)(e.target);\n if (dispose) state.disposables.push(dispose);\n }\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'mouseup', onMouseUp, false);\n };\n pressProps.onMouseEnter = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n let shouldStopPropagation = true;\n if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {\n state.isOverTarget = true;\n shouldStopPropagation = triggerPressStart(e, state.pointerType);\n }\n if (shouldStopPropagation) e.stopPropagation();\n };\n pressProps.onMouseLeave = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n let shouldStopPropagation = true;\n if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {\n state.isOverTarget = false;\n shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);\n cancelOnPointerExit(e);\n }\n if (shouldStopPropagation) e.stopPropagation();\n };\n pressProps.onMouseUp = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n if (!state.ignoreEmulatedMouseEvents && e.button === 0) triggerPressUp(e, state.pointerType || 'mouse');\n };\n let onMouseUp = (e)=>{\n // Only handle left clicks\n if (e.button !== 0) return;\n if (state.ignoreEmulatedMouseEvents) {\n state.ignoreEmulatedMouseEvents = false;\n return;\n }\n if (state.target && state.target.contains(e.target) && state.pointerType != null) ;\n else cancel(e);\n state.isOverTarget = false;\n };\n pressProps.onTouchStart = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n let touch = $f6c31cce2adf654f$var$getTouchFromEvent(e.nativeEvent);\n if (!touch) return;\n state.activePointerId = touch.identifier;\n state.ignoreEmulatedMouseEvents = true;\n state.isOverTarget = true;\n state.isPressed = true;\n state.target = e.currentTarget;\n state.pointerType = 'touch';\n if (!allowTextSelectionOnPress) (0, $14c0b72509d70225$export$16a4697467175487)(state.target);\n let shouldStopPropagation = triggerPressStart($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);\n if (shouldStopPropagation) e.stopPropagation();\n addGlobalListener((0, $7mdmh$getOwnerWindow)(e.currentTarget), 'scroll', onScroll, true);\n };\n pressProps.onTouchMove = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n if (!state.isPressed) {\n e.stopPropagation();\n return;\n }\n let touch = $f6c31cce2adf654f$var$getTouchById(e.nativeEvent, state.activePointerId);\n let shouldStopPropagation = true;\n if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget)) {\n if (!state.isOverTarget && state.pointerType != null) {\n state.isOverTarget = true;\n shouldStopPropagation = triggerPressStart($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);\n }\n } else if (state.isOverTarget && state.pointerType != null) {\n state.isOverTarget = false;\n shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType, false);\n cancelOnPointerExit($f6c31cce2adf654f$var$createTouchEvent(state.target, e));\n }\n if (shouldStopPropagation) e.stopPropagation();\n };\n pressProps.onTouchEnd = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n if (!state.isPressed) {\n e.stopPropagation();\n return;\n }\n let touch = $f6c31cce2adf654f$var$getTouchById(e.nativeEvent, state.activePointerId);\n let shouldStopPropagation = true;\n if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget) && state.pointerType != null) {\n triggerPressUp($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);\n shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);\n triggerSyntheticClick(e.nativeEvent, state.target);\n } else if (state.isOverTarget && state.pointerType != null) shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType, false);\n if (shouldStopPropagation) e.stopPropagation();\n state.isPressed = false;\n state.activePointerId = null;\n state.isOverTarget = false;\n state.ignoreEmulatedMouseEvents = true;\n if (state.target && !allowTextSelectionOnPress) (0, $14c0b72509d70225$export$b0d6fa1ab32e3295)(state.target);\n removeAllGlobalListeners();\n };\n pressProps.onTouchCancel = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n e.stopPropagation();\n if (state.isPressed) cancel($f6c31cce2adf654f$var$createTouchEvent(state.target, e));\n };\n let onScroll = (e)=>{\n if (state.isPressed && (0, $7mdmh$nodeContains)((0, $7mdmh$getEventTarget)(e), state.target)) cancel({\n currentTarget: state.target,\n shiftKey: false,\n ctrlKey: false,\n metaKey: false,\n altKey: false\n });\n };\n pressProps.onDragStart = (e)=>{\n if (!(0, $7mdmh$nodeContains)(e.currentTarget, (0, $7mdmh$getEventTarget)(e.nativeEvent))) return;\n cancel(e);\n };\n }\n return pressProps;\n }, [\n addGlobalListener,\n isDisabled,\n preventFocusOnPress,\n removeAllGlobalListeners,\n allowTextSelectionOnPress,\n cancel,\n cancelOnPointerExit,\n triggerPressEnd,\n triggerPressStart,\n triggerPressUp,\n triggerClick,\n triggerSyntheticClick\n ]);\n // Avoid onClick delay for double tap to zoom by default.\n (0, $7mdmh$useEffect)(()=>{\n let element = domRef === null || domRef === void 0 ? void 0 : domRef.current;\n if (element && element instanceof (0, $7mdmh$getOwnerWindow)(element).Element) {\n // Only apply touch-action if not already set by another CSS rule.\n let style = (0, $7mdmh$getOwnerWindow)(element).getComputedStyle(element);\n if (style.touchAction === 'auto') // touchAction: 'manipulation' is supposed to be equivalent, but in \n // Safari it causes onPointerCancel not to fire on scroll.\n // https://bugs.webkit.org/show_bug.cgi?id=240917\n element.style.touchAction = 'pan-x pan-y pinch-zoom';\n }\n }, [\n domRef\n ]);\n // Remove user-select: none in case component unmounts immediately after pressStart\n (0, $7mdmh$useEffect)(()=>{\n let state = ref.current;\n return ()=>{\n var _state_target;\n if (!allowTextSelectionOnPress) (0, $14c0b72509d70225$export$b0d6fa1ab32e3295)((_state_target = state.target) !== null && _state_target !== void 0 ? _state_target : undefined);\n for (let dispose of state.disposables)dispose();\n state.disposables = [];\n };\n }, [\n allowTextSelectionOnPress\n ]);\n return {\n isPressed: isPressedProp || isPressed,\n pressProps: (0, $7mdmh$mergeProps)(domProps, pressProps)\n };\n}\nfunction $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {\n return target.tagName === 'A' && target.hasAttribute('href');\n}\nfunction $f6c31cce2adf654f$var$isValidKeyboardEvent(event, currentTarget) {\n const { key: key, code: code } = event;\n const element = currentTarget;\n const role = element.getAttribute('role');\n // Accessibility for keyboards. Space and Enter only.\n // \"Spacebar\" is for IE 11\n return (key === 'Enter' || key === ' ' || key === 'Spacebar' || code === 'Space') && !(element instanceof (0, $7mdmh$getOwnerWindow)(element).HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof (0, $7mdmh$getOwnerWindow)(element).HTMLTextAreaElement || element.isContentEditable) && // Links should only trigger with Enter key\n !((role === 'link' || !role && $f6c31cce2adf654f$var$isHTMLAnchorLink(element)) && key !== 'Enter');\n}\nfunction $f6c31cce2adf654f$var$getTouchFromEvent(event) {\n const { targetTouches: targetTouches } = event;\n if (targetTouches.length > 0) return targetTouches[0];\n return null;\n}\nfunction $f6c31cce2adf654f$var$getTouchById(event, pointerId) {\n const changedTouches = event.changedTouches;\n for(let i = 0; i < changedTouches.length; i++){\n const touch = changedTouches[i];\n if (touch.identifier === pointerId) return touch;\n }\n return null;\n}\nfunction $f6c31cce2adf654f$var$createTouchEvent(target, e) {\n let clientX = 0;\n let clientY = 0;\n if (e.targetTouches && e.targetTouches.length === 1) {\n clientX = e.targetTouches[0].clientX;\n clientY = e.targetTouches[0].clientY;\n }\n return {\n currentTarget: target,\n shiftKey: e.shiftKey,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n clientX: clientX,\n clientY: clientY\n };\n}\nfunction $f6c31cce2adf654f$var$createEvent(target, e) {\n let clientX = e.clientX;\n let clientY = e.clientY;\n return {\n currentTarget: target,\n shiftKey: e.shiftKey,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n clientX: clientX,\n clientY: clientY\n };\n}\nfunction $f6c31cce2adf654f$var$getPointClientRect(point) {\n let offsetX = 0;\n let offsetY = 0;\n if (point.width !== undefined) offsetX = point.width / 2;\n else if (point.radiusX !== undefined) offsetX = point.radiusX;\n if (point.height !== undefined) offsetY = point.height / 2;\n else if (point.radiusY !== undefined) offsetY = point.radiusY;\n return {\n top: point.clientY - offsetY,\n right: point.clientX + offsetX,\n bottom: point.clientY + offsetY,\n left: point.clientX - offsetX\n };\n}\nfunction $f6c31cce2adf654f$var$areRectanglesOverlapping(a, b) {\n // check if they cannot overlap on x axis\n if (a.left > b.right || b.left > a.right) return false;\n // check if they cannot overlap on y axis\n if (a.top > b.bottom || b.top > a.bottom) return false;\n return true;\n}\nfunction $f6c31cce2adf654f$var$isOverTarget(point, target) {\n let rect = target.getBoundingClientRect();\n let pointRect = $f6c31cce2adf654f$var$getPointClientRect(point);\n return $f6c31cce2adf654f$var$areRectanglesOverlapping(rect, pointRect);\n}\nfunction $f6c31cce2adf654f$var$shouldPreventDefaultUp(target) {\n if (target instanceof HTMLInputElement) return false;\n if (target instanceof HTMLButtonElement) return target.type !== 'submit' && target.type !== 'reset';\n if ($f6c31cce2adf654f$var$isHTMLAnchorLink(target)) return false;\n return true;\n}\nfunction $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(target, key) {\n if (target instanceof HTMLInputElement) return !$f6c31cce2adf654f$var$isValidInputKey(target, key);\n return $f6c31cce2adf654f$var$shouldPreventDefaultUp(target);\n}\nconst $f6c31cce2adf654f$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\nfunction $f6c31cce2adf654f$var$isValidInputKey(target, key) {\n // Only space should toggle checkboxes and radios, not enter.\n return target.type === 'checkbox' || target.type === 'radio' ? key === ' ' : $f6c31cce2adf654f$var$nonTextInputTypes.has(target.type);\n}\n\n\nexport {$f6c31cce2adf654f$export$45712eceda6fad21 as usePress};\n//# sourceMappingURL=usePress.module.js.map\n"],"names":["$f6c31cce2adf654f$var$usePressResponderContext","props","context","$7mdmh$useContext","$ae1eeba8b9eafd08$export$5165eccb35aaadb5","register","contextProps","$7mdmh$mergeProps","$7mdmh$useSyncRef","$f6c31cce2adf654f$var$_shouldStopPropagation","$f6c31cce2adf654f$var$PressEvent","$7mdmh$_2","$7mdmh$_","type","pointerType","originalEvent","state","$7mdmh$_1","_state_target","currentTarget","rect","x","y","clientX","clientY","$f6c31cce2adf654f$var$LINK_CLICKED","$f6c31cce2adf654f$export$45712eceda6fad21","onPress","onPressChange","onPressStart","onPressEnd","onPressUp","onClick","isDisabled","isPressedProp","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","domRef","domProps","isPressed","setPressed","$7mdmh$useState","ref","$7mdmh$useRef","addGlobalListener","removeAllGlobalListeners","$7mdmh$useGlobalListeners","triggerPressStart","$7mdmh$useEffectEvent","shouldStopPropagation","event","triggerPressEnd","wasPressed","triggerPressUp","cancel","$f6c31cce2adf654f$var$createEvent","$14c0b72509d70225$export$b0d6fa1ab32e3295","dispose","cancelOnPointerExit","triggerClick","triggerSyntheticClick","target","$8a9cb279dc87e130$export$c2b7abe5d61ec696","$8a9cb279dc87e130$export$525bc4921d56d4a","pressProps","$7mdmh$useMemo","e","$f6c31cce2adf654f$var$isValidKeyboardEvent","$7mdmh$nodeContains","$7mdmh$getEventTarget","_state_metaKeyEvents","$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard","originalTarget","pressUp","$7mdmh$getOwnerDocument","$7mdmh$chain","onKeyUp","$7mdmh$isMac","$7mdmh$openLink","$7mdmh$isVirtualClick","stopPressStart","stopPressUp","stopPressEnd","_state_metaKeyEvents1","$f6c31cce2adf654f$var$isHTMLAnchorLink","events","$7mdmh$isVirtualPointerEvent","$14c0b72509d70225$export$16a4697467175487","onPointerUp","onPointerCancel","$8a9cb279dc87e130$export$cabe61c495ee3649","clicked","timeout","$7mdmh$focusWithoutScrolling","$7mdmh$flushSync","onMouseUp","touch","$f6c31cce2adf654f$var$getTouchFromEvent","$f6c31cce2adf654f$var$createTouchEvent","$7mdmh$getOwnerWindow","onScroll","$f6c31cce2adf654f$var$getTouchById","$f6c31cce2adf654f$var$isOverTarget","$7mdmh$useEffect","element","key","code","role","$f6c31cce2adf654f$var$isValidInputKey","targetTouches","pointerId","changedTouches","i","$f6c31cce2adf654f$var$getPointClientRect","point","offsetX","offsetY","$f6c31cce2adf654f$var$areRectanglesOverlapping","a","b","pointRect","$f6c31cce2adf654f$var$shouldPreventDefaultUp","$f6c31cce2adf654f$var$nonTextInputTypes"],"mappings":";;;;;;;;;AAiCA,SAASA,GAA+CC,GAAO;AAE3D,MAAIC,IAAcC,GAAuBC;AACzC,MAAIF,GAAS;AACT,QAAI,EAAE,UAAUG,GAAU,GAAGC,EAAY,IAAKJ;AAC9C,IAAAD,IAAYM,GAAmBD,GAAcL,CAAK,GAClDI;EACH;AACD,SAAIG,GAAmBN,GAASD,EAAM,GAAG,GAClCA;AACX;AACA,IAAIQ,IAA6D,oBAAI;AACrE,MAAMC,EAAiC;AAAA,EACnC,sBAAsB;AAClB,IAAIC,EAAW,MAAMF,GAA8C,EAAK;AAAA,EAC3E;AAAA,EACD,IAAI,wBAAwB;AACxB,WAAWG,GAAU,MAAMH,CAA4C;AAAA,EAC1E;AAAA,EACD,YAAYI,GAAMC,GAAaC,GAAeC,GAAM;AAChD,IAAIC,GAAW,MAAMR,GAA8C;AAAA,MAC/D,UAAU;AAAA,MACV,OAAO;AAAA,IACnB,CAAS,GACGE,EAAW,MAAMF,GAA8C,EAAI;AACvE,QAAIS;AACJ,QAAIC,KAAiBD,IAAgBF,KAAU,OAA2B,SAASA,EAAM,YAAY,QAAQE,MAAkB,SAASA,IAAgBH,EAAc;AACtK,UAAMK,IAAOD,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/BA,EAAE,MAAMC,EAAE,UAAUA,EAAE,MAAMD,EAAE;AAEtC;AACA,SAAShB,EAAmCY,GAAOrD,GAAQ;AACvD,MAAI1C,IAAO0C,EAAO,yBACd2D,IAAYP,GAAyCC,CAAK;AAC9D,SAAOG,GAA+ClG,GAAMqG,CAAS;AACzE;AACA,SAASC,GAA6C5D,GAAQ;AAC1D,SAAIA,aAAkB,mBAAyB,KAC3CA,aAAkB,oBAA0BA,EAAO,SAAS,YAAYA,EAAO,SAAS,UACxF,CAAAuB,EAAuCvB,CAAM;AAErD;AACA,SAASU,GAAmDV,GAAQ4C,GAAK;AACrE,SAAI5C,aAAkB,mBAAyB,CAAC+C,GAAsC/C,GAAQ4C,CAAG,IAC1FgB,GAA6C5D,CAAM;AAC9D;AACA,MAAM6D,KAA0C,oBAAI,IAAI;AAAA,EACpD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AACD,SAASd,GAAsC/C,GAAQ4C,GAAK;AAExD,SAAO5C,EAAO,SAAS,cAAcA,EAAO,SAAS,UAAU4C,MAAQ,MAAMiB,GAAwC,IAAI7D,EAAO,IAAI;AACxI;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@react-aria/utils"),d=require("react");function v(r){let e=r;return e.nativeEvent=r,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function b(r,e){Object.defineProperty(r,"target",{value:e}),Object.defineProperty(r,"currentTarget",{value:e})}function E(r){let e=d.useRef({isFocused:!1,observer:null});s.useLayoutEffect(()=>{const t=e.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let u=s.useEffectEvent(t=>{r==null||r(t)});return d.useCallback(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=t.target,a=c=>{if(e.current.isFocused=!1,o.disabled){let i=v(c);u(i)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){var c;(c=e.current.observer)===null||c===void 0||c.disconnect();let i=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[u])}exports.ignoreFocusEvent=!1;function m(r){for(;r&&!s.isFocusable(r);)r=r.parentElement;let e=s.getOwnerWindow(r),u=e.document.activeElement;if(!u||u===r)return;exports.ignoreFocusEvent=!0;let t=!1,o=n=>{(n.target===u||t)&&n.stopImmediatePropagation()},a=n=>{(n.target===u||t)&&(n.stopImmediatePropagation(),!r&&!t&&(t=!0,s.focusWithoutScrolling(u),l()))},c=n=>{(n.target===r||t)&&n.stopImmediatePropagation()},i=n=>{(n.target===r||t)&&(n.stopImmediatePropagation(),t||(t=!0,s.focusWithoutScrolling(u),l()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",a,!0),e.addEventListener("focusin",i,!0),e.addEventListener("focus",c,!0);let l=()=>{cancelAnimationFrame(f),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",a,!0),e.removeEventListener("focusin",i,!0),e.removeEventListener("focus",c,!0),exports.ignoreFocusEvent=!1,t=!1},f=requestAnimationFrame(l);return l}exports.createSyntheticEvent=v;exports.preventFocus=m;exports.setEventTarget=b;exports.useSyntheticBlurEvent=E;
2
+ //# sourceMappingURL=utils.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/utils.mjs"],"sourcesContent":["import {useLayoutEffect as $6dfIe$useLayoutEffect, useEffectEvent as $6dfIe$useEffectEvent, isFocusable as $6dfIe$isFocusable, getOwnerWindow as $6dfIe$getOwnerWindow, focusWithoutScrolling as $6dfIe$focusWithoutScrolling} from \"@react-aria/utils\";\nimport {useRef as $6dfIe$useRef, useCallback as $6dfIe$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\nfunction $8a9cb279dc87e130$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 $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target) {\n Object.defineProperty(event, 'target', {\n value: target\n });\n Object.defineProperty(event, 'currentTarget', {\n value: target\n });\n}\nfunction $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {\n let stateRef = (0, $6dfIe$useRef)({\n isFocused: false,\n observer: null\n });\n // Clean up MutationObserver on unmount. See below.\n (0, $6dfIe$useLayoutEffect)(()=>{\n const state = stateRef.current;\n return ()=>{\n if (state.observer) {\n state.observer.disconnect();\n state.observer = null;\n }\n };\n }, []);\n let dispatchBlur = (0, $6dfIe$useEffectEvent)((e)=>{\n onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);\n });\n // This function is called during a React onFocus event.\n return (0, $6dfIe$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 if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {\n stateRef.current.isFocused = true;\n let target = e.target;\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 = $8a9cb279dc87e130$export$525bc4921d56d4a(e);\n dispatchBlur(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 var _stateRef_current_observer;\n (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();\n let relatedTargetEl = target === document.activeElement ? null : document.activeElement;\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 dispatchBlur\n ]);\n}\nlet $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;\nfunction $8a9cb279dc87e130$export$cabe61c495ee3649(target) {\n // The browser will focus the nearest focusable ancestor of our target.\n while(target && !(0, $6dfIe$isFocusable)(target))target = target.parentElement;\n let window = (0, $6dfIe$getOwnerWindow)(target);\n let activeElement = window.document.activeElement;\n if (!activeElement || activeElement === target) return;\n $8a9cb279dc87e130$export$fda7da73ab5d4c48 = true;\n let isRefocusing = false;\n let onBlur = (e)=>{\n if (e.target === activeElement || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusOut = (e)=>{\n if (e.target === activeElement || 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, $6dfIe$focusWithoutScrolling)(activeElement);\n cleanup();\n }\n }\n };\n let onFocus = (e)=>{\n if (e.target === target || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusIn = (e)=>{\n if (e.target === target || isRefocusing) {\n e.stopImmediatePropagation();\n if (!isRefocusing) {\n isRefocusing = true;\n (0, $6dfIe$focusWithoutScrolling)(activeElement);\n cleanup();\n }\n }\n };\n window.addEventListener('blur', onBlur, true);\n window.addEventListener('focusout', onFocusOut, true);\n window.addEventListener('focusin', onFocusIn, true);\n window.addEventListener('focus', onFocus, true);\n let cleanup = ()=>{\n cancelAnimationFrame(raf);\n window.removeEventListener('blur', onBlur, true);\n window.removeEventListener('focusout', onFocusOut, true);\n window.removeEventListener('focusin', onFocusIn, true);\n window.removeEventListener('focus', onFocus, true);\n $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;\n isRefocusing = false;\n };\n let raf = requestAnimationFrame(cleanup);\n return cleanup;\n}\n\n\nexport {$8a9cb279dc87e130$export$525bc4921d56d4a as createSyntheticEvent, $8a9cb279dc87e130$export$c2b7abe5d61ec696 as setEventTarget, $8a9cb279dc87e130$export$715c682d09d639cc as useSyntheticBlurEvent, $8a9cb279dc87e130$export$fda7da73ab5d4c48 as ignoreFocusEvent, $8a9cb279dc87e130$export$cabe61c495ee3649 as preventFocus};\n//# sourceMappingURL=utils.module.js.map\n"],"names":["$8a9cb279dc87e130$export$525bc4921d56d4a","nativeEvent","event","$8a9cb279dc87e130$export$c2b7abe5d61ec696","target","$8a9cb279dc87e130$export$715c682d09d639cc","onBlur","stateRef","$6dfIe$useRef","$6dfIe$useLayoutEffect","state","dispatchBlur","$6dfIe$useEffectEvent","e","$6dfIe$useCallback","onBlurHandler","_stateRef_current_observer","relatedTargetEl","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$8a9cb279dc87e130$export$cabe61c495ee3649","$6dfIe$isFocusable","window","$6dfIe$getOwnerWindow","activeElement","isRefocusing","onFocusOut","$6dfIe$focusWithoutScrolling","cleanup","onFocus","onFocusIn","raf"],"mappings":"wIAeA,SAASA,EAAyCC,EAAa,CAC3D,IAAIC,EAAQD,EACZ,OAAAC,EAAM,YAAcD,EACpBC,EAAM,mBAAqB,IAAIA,EAAM,iBAErCA,EAAM,qBAAuB,IAAIA,EAAM,aACvCA,EAAM,QAAU,IAAI,GACbA,CACX,CACA,SAASC,EAA0CD,EAAOE,EAAQ,CAC9D,OAAO,eAAeF,EAAO,SAAU,CACnC,MAAOE,CACf,CAAK,EACD,OAAO,eAAeF,EAAO,gBAAiB,CAC1C,MAAOE,CACf,CAAK,CACL,CACA,SAASC,EAA0CC,EAAQ,CACvD,IAAIC,EAAeC,SAAe,CAC9B,UAAW,GACX,SAAU,IAClB,CAAK,EAEGC,EAAsB,gBAAE,IAAI,CAC5B,MAAMC,EAAQH,EAAS,QACvB,MAAO,IAAI,CACHG,EAAM,WACNA,EAAM,SAAS,aACfA,EAAM,SAAW,KAEjC,CACK,EAAE,CAAE,CAAA,EACL,IAAIC,EAAmBC,iBAAwBC,GAAI,CAC/CP,GAAW,MAAqCA,EAAOO,CAAC,CAChE,CAAK,EAED,OAAWC,EAAAA,YAAqBD,GAAI,CAKhC,GAAIA,EAAE,kBAAkB,mBAAqBA,EAAE,kBAAkB,kBAAoBA,EAAE,kBAAkB,qBAAuBA,EAAE,kBAAkB,kBAAmB,CACnKN,EAAS,QAAQ,UAAY,GAC7B,IAAIH,EAASS,EAAE,OACXE,EAAiBF,GAAI,CAErB,GADAN,EAAS,QAAQ,UAAY,GACzBH,EAAO,SAAU,CAEjB,IAAIF,EAAQF,EAAyCa,CAAC,EACtDF,EAAaT,CAAK,CACrB,CAEGK,EAAS,QAAQ,WACjBA,EAAS,QAAQ,SAAS,aAC1BA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E,yBAAwB,EACrBW,IACDA,EAAe,GACXE,EAAAA,sBAA8BH,CAAa,EAC/CI,KAGhB,EACIN,EAAO,iBAAiB,OAAQf,EAAQ,EAAI,EAC5Ce,EAAO,iBAAiB,WAAYI,EAAY,EAAI,EACpDJ,EAAO,iBAAiB,UAAWQ,EAAW,EAAI,EAClDR,EAAO,iBAAiB,QAASO,EAAS,EAAI,EAC9C,IAAID,EAAU,IAAI,CACd,qBAAqBG,CAAG,EACxBT,EAAO,oBAAoB,OAAQf,EAAQ,EAAI,EAC/Ce,EAAO,oBAAoB,WAAYI,EAAY,EAAI,EACvDJ,EAAO,oBAAoB,UAAWQ,EAAW,EAAI,EACrDR,EAAO,oBAAoB,QAASO,EAAS,EAAI,EACjDV,QAAAA,iBAA4C,GAC5CM,EAAe,EACvB,EACQM,EAAM,sBAAsBH,CAAO,EACvC,OAAOA,CACX","x_google_ignoreList":[0]}
@@ -0,0 +1,92 @@
1
+ import { useLayoutEffect as v, useEffectEvent as b, isFocusable as m, getOwnerWindow as E, focusWithoutScrolling as l } from "@react-aria/utils";
2
+ import { useRef as p, useCallback as g } from "react";
3
+ function F(r) {
4
+ let e = r;
5
+ return e.nativeEvent = r, e.isDefaultPrevented = () => e.defaultPrevented, e.isPropagationStopped = () => e.cancelBubble, e.persist = () => {
6
+ }, e;
7
+ }
8
+ function T(r, e) {
9
+ Object.defineProperty(r, "target", {
10
+ value: e
11
+ }), Object.defineProperty(r, "currentTarget", {
12
+ value: e
13
+ });
14
+ }
15
+ function P(r) {
16
+ let e = p({
17
+ isFocused: !1,
18
+ observer: null
19
+ });
20
+ v(() => {
21
+ const t = e.current;
22
+ return () => {
23
+ t.observer && (t.observer.disconnect(), t.observer = null);
24
+ };
25
+ }, []);
26
+ let u = b((t) => {
27
+ r == null || r(t);
28
+ });
29
+ return g((t) => {
30
+ if (t.target instanceof HTMLButtonElement || t.target instanceof HTMLInputElement || t.target instanceof HTMLTextAreaElement || t.target instanceof HTMLSelectElement) {
31
+ e.current.isFocused = !0;
32
+ let o = t.target, s = (c) => {
33
+ if (e.current.isFocused = !1, o.disabled) {
34
+ let a = F(c);
35
+ u(a);
36
+ }
37
+ e.current.observer && (e.current.observer.disconnect(), e.current.observer = null);
38
+ };
39
+ o.addEventListener("focusout", s, {
40
+ once: !0
41
+ }), e.current.observer = new MutationObserver(() => {
42
+ if (e.current.isFocused && o.disabled) {
43
+ var c;
44
+ (c = e.current.observer) === null || c === void 0 || c.disconnect();
45
+ let a = o === document.activeElement ? null : document.activeElement;
46
+ o.dispatchEvent(new FocusEvent("blur", {
47
+ relatedTarget: a
48
+ })), o.dispatchEvent(new FocusEvent("focusout", {
49
+ bubbles: !0,
50
+ relatedTarget: a
51
+ }));
52
+ }
53
+ }), e.current.observer.observe(o, {
54
+ attributes: !0,
55
+ attributeFilter: [
56
+ "disabled"
57
+ ]
58
+ });
59
+ }
60
+ }, [
61
+ u
62
+ ]);
63
+ }
64
+ let d = !1;
65
+ function w(r) {
66
+ for (; r && !m(r); ) r = r.parentElement;
67
+ let e = E(r), u = e.document.activeElement;
68
+ if (!u || u === r) return;
69
+ d = !0;
70
+ let t = !1, o = (n) => {
71
+ (n.target === u || t) && n.stopImmediatePropagation();
72
+ }, s = (n) => {
73
+ (n.target === u || t) && (n.stopImmediatePropagation(), !r && !t && (t = !0, l(u), i()));
74
+ }, c = (n) => {
75
+ (n.target === r || t) && n.stopImmediatePropagation();
76
+ }, a = (n) => {
77
+ (n.target === r || t) && (n.stopImmediatePropagation(), t || (t = !0, l(u), i()));
78
+ };
79
+ e.addEventListener("blur", o, !0), e.addEventListener("focusout", s, !0), e.addEventListener("focusin", a, !0), e.addEventListener("focus", c, !0);
80
+ let i = () => {
81
+ cancelAnimationFrame(f), e.removeEventListener("blur", o, !0), e.removeEventListener("focusout", s, !0), e.removeEventListener("focusin", a, !0), e.removeEventListener("focus", c, !0), d = !1, t = !1;
82
+ }, f = requestAnimationFrame(i);
83
+ return i;
84
+ }
85
+ export {
86
+ F as createSyntheticEvent,
87
+ d as ignoreFocusEvent,
88
+ w as preventFocus,
89
+ T as setEventTarget,
90
+ P as useSyntheticBlurEvent
91
+ };
92
+ //# sourceMappingURL=utils.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/utils.mjs"],"sourcesContent":["import {useLayoutEffect as $6dfIe$useLayoutEffect, useEffectEvent as $6dfIe$useEffectEvent, isFocusable as $6dfIe$isFocusable, getOwnerWindow as $6dfIe$getOwnerWindow, focusWithoutScrolling as $6dfIe$focusWithoutScrolling} from \"@react-aria/utils\";\nimport {useRef as $6dfIe$useRef, useCallback as $6dfIe$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\nfunction $8a9cb279dc87e130$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 $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target) {\n Object.defineProperty(event, 'target', {\n value: target\n });\n Object.defineProperty(event, 'currentTarget', {\n value: target\n });\n}\nfunction $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {\n let stateRef = (0, $6dfIe$useRef)({\n isFocused: false,\n observer: null\n });\n // Clean up MutationObserver on unmount. See below.\n (0, $6dfIe$useLayoutEffect)(()=>{\n const state = stateRef.current;\n return ()=>{\n if (state.observer) {\n state.observer.disconnect();\n state.observer = null;\n }\n };\n }, []);\n let dispatchBlur = (0, $6dfIe$useEffectEvent)((e)=>{\n onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);\n });\n // This function is called during a React onFocus event.\n return (0, $6dfIe$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 if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {\n stateRef.current.isFocused = true;\n let target = e.target;\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 = $8a9cb279dc87e130$export$525bc4921d56d4a(e);\n dispatchBlur(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 var _stateRef_current_observer;\n (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();\n let relatedTargetEl = target === document.activeElement ? null : document.activeElement;\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 dispatchBlur\n ]);\n}\nlet $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;\nfunction $8a9cb279dc87e130$export$cabe61c495ee3649(target) {\n // The browser will focus the nearest focusable ancestor of our target.\n while(target && !(0, $6dfIe$isFocusable)(target))target = target.parentElement;\n let window = (0, $6dfIe$getOwnerWindow)(target);\n let activeElement = window.document.activeElement;\n if (!activeElement || activeElement === target) return;\n $8a9cb279dc87e130$export$fda7da73ab5d4c48 = true;\n let isRefocusing = false;\n let onBlur = (e)=>{\n if (e.target === activeElement || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusOut = (e)=>{\n if (e.target === activeElement || 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, $6dfIe$focusWithoutScrolling)(activeElement);\n cleanup();\n }\n }\n };\n let onFocus = (e)=>{\n if (e.target === target || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusIn = (e)=>{\n if (e.target === target || isRefocusing) {\n e.stopImmediatePropagation();\n if (!isRefocusing) {\n isRefocusing = true;\n (0, $6dfIe$focusWithoutScrolling)(activeElement);\n cleanup();\n }\n }\n };\n window.addEventListener('blur', onBlur, true);\n window.addEventListener('focusout', onFocusOut, true);\n window.addEventListener('focusin', onFocusIn, true);\n window.addEventListener('focus', onFocus, true);\n let cleanup = ()=>{\n cancelAnimationFrame(raf);\n window.removeEventListener('blur', onBlur, true);\n window.removeEventListener('focusout', onFocusOut, true);\n window.removeEventListener('focusin', onFocusIn, true);\n window.removeEventListener('focus', onFocus, true);\n $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;\n isRefocusing = false;\n };\n let raf = requestAnimationFrame(cleanup);\n return cleanup;\n}\n\n\nexport {$8a9cb279dc87e130$export$525bc4921d56d4a as createSyntheticEvent, $8a9cb279dc87e130$export$c2b7abe5d61ec696 as setEventTarget, $8a9cb279dc87e130$export$715c682d09d639cc as useSyntheticBlurEvent, $8a9cb279dc87e130$export$fda7da73ab5d4c48 as ignoreFocusEvent, $8a9cb279dc87e130$export$cabe61c495ee3649 as preventFocus};\n//# sourceMappingURL=utils.module.js.map\n"],"names":["$8a9cb279dc87e130$export$525bc4921d56d4a","nativeEvent","event","$8a9cb279dc87e130$export$c2b7abe5d61ec696","target","$8a9cb279dc87e130$export$715c682d09d639cc","onBlur","stateRef","$6dfIe$useRef","$6dfIe$useLayoutEffect","state","dispatchBlur","$6dfIe$useEffectEvent","e","$6dfIe$useCallback","onBlurHandler","_stateRef_current_observer","relatedTargetEl","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$8a9cb279dc87e130$export$cabe61c495ee3649","$6dfIe$isFocusable","window","$6dfIe$getOwnerWindow","activeElement","isRefocusing","onFocusOut","$6dfIe$focusWithoutScrolling","cleanup","onFocus","onFocusIn","raf"],"mappings":";;AAeA,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,KACbA;AACX;AACA,SAASC,EAA0CD,GAAOE,GAAQ;AAC9D,SAAO,eAAeF,GAAO,UAAU;AAAA,IACnC,OAAOE;AAAA,EACf,CAAK,GACD,OAAO,eAAeF,GAAO,iBAAiB;AAAA,IAC1C,OAAOE;AAAA,EACf,CAAK;AACL;AACA,SAASC,EAA0CC,GAAQ;AACvD,MAAIC,IAAeC,EAAe;AAAA,IAC9B,WAAW;AAAA,IACX,UAAU;AAAA,EAClB,CAAK;AAED,EAAIC,EAAwB,MAAI;AAC5B,UAAMC,IAAQH,EAAS;AACvB,WAAO,MAAI;AACP,MAAIG,EAAM,aACNA,EAAM,SAAS,cACfA,EAAM,WAAW;AAAA,IAEjC;AAAA,EACK,GAAE,CAAE,CAAA;AACL,MAAIC,IAAmBC,EAAuB,CAACC,MAAI;AAC/C,IAAAP,KAAW,QAAqCA,EAAOO,CAAC;AAAA,EAChE,CAAK;AAED,SAAWC,EAAoB,CAACD,MAAI;AAKhC,QAAIA,EAAE,kB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C,EAAuBlB,CAAM,GAC1CmB,IAAgBF,EAAO,SAAS;AACpC,MAAI,CAACE,KAAiBA,MAAkBnB,EAAQ;AAChD,EAAAc,IAA4C;AAC5C,MAAIM,IAAe,IACflB,IAAS,CAACO,MAAI;AACd,KAAIA,EAAE,WAAWU,KAAiBC,MAAcX,EAAE;EAC1D,GACQY,IAAa,CAACZ,MAAI;AAClB,KAAIA,EAAE,WAAWU,KAAiBC,OAC9BX,EAAE,yBAAwB,GAGtB,CAACT,KAAU,CAACoB,MACZA,IAAe,IACXE,EAA8BH,CAAa,GAC/CI;EAGhB,GACQC,IAAU,CAACf,MAAI;AACf,KAAIA,EAAE,WAAWT,KAAUoB,MAAcX,EAAE;EACnD,GACQgB,IAAY,CAAChB,MAAI;AACjB,KAAIA,EAAE,WAAWT,KAAUoB,OACvBX,EAAE,yBAAwB,GACrBW,MACDA,IAAe,IACXE,EAA8BH,CAAa,GAC/CI;EAGhB;AACI,EAAAN,EAAO,iBAAiB,QAAQf,GAAQ,EAAI,GAC5Ce,EAAO,iBAAiB,YAAYI,GAAY,EAAI,GACpDJ,EAAO,iBAAiB,WAAWQ,GAAW,EAAI,GAClDR,EAAO,iBAAiB,SAASO,GAAS,EAAI;AAC9C,MAAID,IAAU,MAAI;AACd,yBAAqBG,CAAG,GACxBT,EAAO,oBAAoB,QAAQf,GAAQ,EAAI,GAC/Ce,EAAO,oBAAoB,YAAYI,GAAY,EAAI,GACvDJ,EAAO,oBAAoB,WAAWQ,GAAW,EAAI,GACrDR,EAAO,oBAAoB,SAASO,GAAS,EAAI,GACjDV,IAA4C,IAC5CM,IAAe;AAAA,EACvB,GACQM,IAAM,sBAAsBH,CAAO;AACvC,SAAOA;AACX;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./useLabel.cjs.js"),o=require("@react-aria/utils");function c(e){let{description:i,errorMessage:a,isInvalid:s,validationState:l}=e,{labelProps:n,fieldProps:r}=u.useLabel(e),t=o.useSlotId([!!i,!!a,s,l]),d=o.useSlotId([!!i,!!a,s,l]);return r=o.mergeProps(r,{"aria-describedby":[t,d,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:r,descriptionProps:{id:t},errorMessageProps:{id:d}}}exports.useField=c;
2
+ //# sourceMappingURL=useField.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useField.cjs.js","sources":["../../../../../node_modules/@react-aria/label/dist/useField.mjs"],"sourcesContent":["import {useLabel as $d191a55c9702f145$export$8467354a121f1b9f} from \"./useLabel.mjs\";\nimport {useSlotId as $2kC82$useSlotId, mergeProps as $2kC82$mergeProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2021 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\nfunction $2baaea4c71418dea$export$294aa081a6c6f55d(props) {\n let { description: description, errorMessage: errorMessage, isInvalid: isInvalid, validationState: validationState } = props;\n let { labelProps: labelProps, fieldProps: fieldProps } = (0, $d191a55c9702f145$export$8467354a121f1b9f)(props);\n let descriptionId = (0, $2kC82$useSlotId)([\n Boolean(description),\n Boolean(errorMessage),\n isInvalid,\n validationState\n ]);\n let errorMessageId = (0, $2kC82$useSlotId)([\n Boolean(description),\n Boolean(errorMessage),\n isInvalid,\n validationState\n ]);\n fieldProps = (0, $2kC82$mergeProps)(fieldProps, {\n 'aria-describedby': [\n descriptionId,\n // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268\n errorMessageId,\n props['aria-describedby']\n ].filter(Boolean).join(' ') || undefined\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps,\n descriptionProps: {\n id: descriptionId\n },\n errorMessageProps: {\n id: errorMessageId\n }\n };\n}\n\n\nexport {$2baaea4c71418dea$export$294aa081a6c6f55d as useField};\n//# sourceMappingURL=useField.module.js.map\n"],"names":["$2baaea4c71418dea$export$294aa081a6c6f55d","props","description","errorMessage","isInvalid","validationState","labelProps","fieldProps","$d191a55c9702f145$export$8467354a121f1b9f","descriptionId","$2kC82$useSlotId","errorMessageId","$2kC82$mergeProps"],"mappings":"oJAeA,SAASA,EAA0CC,EAAO,CACtD,GAAI,CAAE,YAAaC,EAAa,aAAcC,EAAc,UAAWC,EAAW,gBAAiBC,CAAiB,EAAGJ,EACnH,CAAE,WAAYK,EAAY,WAAYC,CAAU,EAASC,EAAAA,SAA2CP,CAAK,EACzGQ,EAAoBC,YAAkB,CACtC,EAAQR,EACR,EAAQC,EACRC,EACAC,CACR,CAAK,EACGM,EAAqBD,YAAkB,CACvC,EAAQR,EACR,EAAQC,EACRC,EACAC,CACR,CAAK,EACD,OAAAE,EAAiBK,EAAiB,WAAEL,EAAY,CAC5C,mBAAoB,CAChBE,EAEAE,EACAV,EAAM,kBAAkB,CAC3B,EAAC,OAAO,OAAO,EAAE,KAAK,GAAG,GAAK,MACvC,CAAK,EACM,CACH,WAAYK,EACZ,WAAYC,EACZ,iBAAkB,CACd,GAAIE,CACP,EACD,kBAAmB,CACf,GAAIE,CACP,CACT,CACA","x_google_ignoreList":[0]}
@@ -0,0 +1,36 @@
1
+ import { useLabel as p } from "./useLabel.es.js";
2
+ import { useSlotId as t, mergeProps as f } from "@react-aria/utils";
3
+ function P(e) {
4
+ let { description: o, errorMessage: a, isInvalid: i, validationState: s } = e, { labelProps: n, fieldProps: r } = p(e), d = t([
5
+ !!o,
6
+ !!a,
7
+ i,
8
+ s
9
+ ]), l = t([
10
+ !!o,
11
+ !!a,
12
+ i,
13
+ s
14
+ ]);
15
+ return r = f(r, {
16
+ "aria-describedby": [
17
+ d,
18
+ // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
19
+ l,
20
+ e["aria-describedby"]
21
+ ].filter(Boolean).join(" ") || void 0
22
+ }), {
23
+ labelProps: n,
24
+ fieldProps: r,
25
+ descriptionProps: {
26
+ id: d
27
+ },
28
+ errorMessageProps: {
29
+ id: l
30
+ }
31
+ };
32
+ }
33
+ export {
34
+ P as useField
35
+ };
36
+ //# sourceMappingURL=useField.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useField.es.js","sources":["../../../../../node_modules/@react-aria/label/dist/useField.mjs"],"sourcesContent":["import {useLabel as $d191a55c9702f145$export$8467354a121f1b9f} from \"./useLabel.mjs\";\nimport {useSlotId as $2kC82$useSlotId, mergeProps as $2kC82$mergeProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2021 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\nfunction $2baaea4c71418dea$export$294aa081a6c6f55d(props) {\n let { description: description, errorMessage: errorMessage, isInvalid: isInvalid, validationState: validationState } = props;\n let { labelProps: labelProps, fieldProps: fieldProps } = (0, $d191a55c9702f145$export$8467354a121f1b9f)(props);\n let descriptionId = (0, $2kC82$useSlotId)([\n Boolean(description),\n Boolean(errorMessage),\n isInvalid,\n validationState\n ]);\n let errorMessageId = (0, $2kC82$useSlotId)([\n Boolean(description),\n Boolean(errorMessage),\n isInvalid,\n validationState\n ]);\n fieldProps = (0, $2kC82$mergeProps)(fieldProps, {\n 'aria-describedby': [\n descriptionId,\n // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268\n errorMessageId,\n props['aria-describedby']\n ].filter(Boolean).join(' ') || undefined\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps,\n descriptionProps: {\n id: descriptionId\n },\n errorMessageProps: {\n id: errorMessageId\n }\n };\n}\n\n\nexport {$2baaea4c71418dea$export$294aa081a6c6f55d as useField};\n//# sourceMappingURL=useField.module.js.map\n"],"names":["$2baaea4c71418dea$export$294aa081a6c6f55d","props","description","errorMessage","isInvalid","validationState","labelProps","fieldProps","$d191a55c9702f145$export$8467354a121f1b9f","descriptionId","$2kC82$useSlotId","errorMessageId","$2kC82$mergeProps"],"mappings":";;AAeA,SAASA,EAA0CC,GAAO;AACtD,MAAI,EAAE,aAAaC,GAAa,cAAcC,GAAc,WAAWC,GAAW,iBAAiBC,EAAiB,IAAGJ,GACnH,EAAE,YAAYK,GAAY,YAAYC,EAAU,IAASC,EAA2CP,CAAK,GACzGQ,IAAoBC,EAAkB;AAAA,IACtC,EAAQR;AAAA,IACR,EAAQC;AAAA,IACRC;AAAA,IACAC;AAAA,EACR,CAAK,GACGM,IAAqBD,EAAkB;AAAA,IACvC,EAAQR;AAAA,IACR,EAAQC;AAAA,IACRC;AAAA,IACAC;AAAA,EACR,CAAK;AACD,SAAAE,IAAiBK,EAAmBL,GAAY;AAAA,IAC5C,oBAAoB;AAAA,MAChBE;AAAA;AAAA,MAEAE;AAAA,MACAV,EAAM,kBAAkB;AAAA,IAC3B,EAAC,OAAO,OAAO,EAAE,KAAK,GAAG,KAAK;AAAA,EACvC,CAAK,GACM;AAAA,IACH,YAAYK;AAAA,IACZ,YAAYC;AAAA,IACZ,kBAAkB;AAAA,MACd,IAAIE;AAAA,IACP;AAAA,IACD,mBAAmB;AAAA,MACf,IAAIE;AAAA,IACP;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@react-aria/utils");function u(t){let{id:l,label:o,"aria-labelledby":e,"aria-label":b,labelElementType:s="label"}=t;l=i.useId(l);let a=i.useId(),r={};o?(e=e?`${a} ${e}`:a,r={id:a,htmlFor:s==="label"?l:void 0}):!e&&!b&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=i.useLabels({id:l,"aria-label":b,"aria-labelledby":e});return{labelProps:r,fieldProps:d}}exports.useLabel=u;
2
+ //# sourceMappingURL=useLabel.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLabel.cjs.js","sources":["../../../../../node_modules/@react-aria/label/dist/useLabel.mjs"],"sourcesContent":["import {useId as $83Elw$useId, useLabels as $83Elw$useLabels} from \"@react-aria/utils\";\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 */ \nfunction $d191a55c9702f145$export$8467354a121f1b9f(props) {\n let { id: id, label: label, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, labelElementType: labelElementType = 'label' } = props;\n id = (0, $83Elw$useId)(id);\n let labelId = (0, $83Elw$useId)();\n let labelProps = {};\n if (label) {\n ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;\n labelProps = {\n id: labelId,\n htmlFor: labelElementType === 'label' ? id : undefined\n };\n } else if (!ariaLabelledby && !ariaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility');\n let fieldProps = (0, $83Elw$useLabels)({\n id: id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps\n };\n}\n\n\nexport {$d191a55c9702f145$export$8467354a121f1b9f as useLabel};\n//# sourceMappingURL=useLabel.module.js.map\n"],"names":["$d191a55c9702f145$export$8467354a121f1b9f","props","id","label","ariaLabelledby","ariaLabel","labelElementType","$83Elw$useId","labelId","labelProps","fieldProps","$83Elw$useLabels"],"mappings":"qHAaA,SAASA,EAA0CC,EAAO,CACtD,GAAI,CAAE,GAAIC,EAAI,MAAOC,EAAO,kBAAmBC,EAAgB,aAAcC,EAAW,iBAAkBC,EAAmB,OAAO,EAAKL,EACzIC,EAASK,QAAcL,CAAE,EACzB,IAAIM,EAAcD,EAAAA,QACdE,EAAa,CAAA,EACbN,GACAC,EAAiBA,EAAiB,GAAGI,CAAO,IAAIJ,CAAc,GAAKI,EACnEC,EAAa,CACT,GAAID,EACJ,QAASF,IAAqB,QAAUJ,EAAK,MACzD,GACe,CAACE,GAAkB,CAACC,GAAa,QAAQ,IAAI,WAAa,cAAc,QAAQ,KAAK,sHAAsH,EACtN,IAAIK,EAAiBC,YAAkB,CACnC,GAAIT,EACJ,aAAcG,EACd,kBAAmBD,CAC3B,CAAK,EACD,MAAO,CACH,WAAYK,EACZ,WAAYC,CACpB,CACA","x_google_ignoreList":[0]}
@@ -0,0 +1,23 @@
1
+ import { useId as r, useLabels as f } from "@react-aria/utils";
2
+ function p(o) {
3
+ let { id: l, label: t, "aria-labelledby": e, "aria-label": b, labelElementType: d = "label" } = o;
4
+ l = r(l);
5
+ let a = r(), i = {};
6
+ t ? (e = e ? `${a} ${e}` : a, i = {
7
+ id: a,
8
+ htmlFor: d === "label" ? l : void 0
9
+ }) : !e && !b && process.env.NODE_ENV !== "production" && console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
10
+ let s = f({
11
+ id: l,
12
+ "aria-label": b,
13
+ "aria-labelledby": e
14
+ });
15
+ return {
16
+ labelProps: i,
17
+ fieldProps: s
18
+ };
19
+ }
20
+ export {
21
+ p as useLabel
22
+ };
23
+ //# sourceMappingURL=useLabel.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLabel.es.js","sources":["../../../../../node_modules/@react-aria/label/dist/useLabel.mjs"],"sourcesContent":["import {useId as $83Elw$useId, useLabels as $83Elw$useLabels} from \"@react-aria/utils\";\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 */ \nfunction $d191a55c9702f145$export$8467354a121f1b9f(props) {\n let { id: id, label: label, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, labelElementType: labelElementType = 'label' } = props;\n id = (0, $83Elw$useId)(id);\n let labelId = (0, $83Elw$useId)();\n let labelProps = {};\n if (label) {\n ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;\n labelProps = {\n id: labelId,\n htmlFor: labelElementType === 'label' ? id : undefined\n };\n } else if (!ariaLabelledby && !ariaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility');\n let fieldProps = (0, $83Elw$useLabels)({\n id: id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps\n };\n}\n\n\nexport {$d191a55c9702f145$export$8467354a121f1b9f as useLabel};\n//# sourceMappingURL=useLabel.module.js.map\n"],"names":["$d191a55c9702f145$export$8467354a121f1b9f","props","id","label","ariaLabelledby","ariaLabel","labelElementType","$83Elw$useId","labelId","labelProps","fieldProps","$83Elw$useLabels"],"mappings":";AAaA,SAASA,EAA0CC,GAAO;AACtD,MAAI,EAAE,IAAIC,GAAI,OAAOC,GAAO,mBAAmBC,GAAgB,cAAcC,GAAW,kBAAkBC,IAAmB,QAAO,IAAKL;AACzI,EAAAC,IAASK,EAAcL,CAAE;AACzB,MAAIM,IAAcD,KACdE,IAAa,CAAA;AACjB,EAAIN,KACAC,IAAiBA,IAAiB,GAAGI,CAAO,IAAIJ,CAAc,KAAKI,GACnEC,IAAa;AAAA,IACT,IAAID;AAAA,IACJ,SAASF,MAAqB,UAAUJ,IAAK;AAAA,EACzD,KACe,CAACE,KAAkB,CAACC,KAAa,QAAQ,IAAI,aAAa,gBAAc,QAAQ,KAAK,sHAAsH;AACtN,MAAIK,IAAiBC,EAAkB;AAAA,IACnC,IAAIT;AAAA,IACJ,cAAcG;AAAA,IACd,mBAAmBD;AAAA,EAC3B,CAAK;AACD,SAAO;AAAA,IACH,YAAYK;AAAA,IACZ,YAAYC;AAAA,EACpB;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("@react-aria/utils"),n=o.createContext(null);function u(){let e=o.useContext(n),t=e==null?void 0:e.setContain;a.useLayoutEffect(()=>{t==null||t(!0)},[t])}exports.OverlayContext=n;exports.useOverlayFocusContain=u;
2
+ //# sourceMappingURL=Overlay.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Overlay.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/Overlay.mjs"],"sourcesContent":["import {useUNSAFE_PortalContext as $96b38030c423d352$export$9fc1347d4195ccb3} from \"./PortalProvider.mjs\";\nimport {ClearPressResponder as $1CM7W$ClearPressResponder} from \"@react-aria/interactions\";\nimport {FocusScope as $1CM7W$FocusScope} from \"@react-aria/focus\";\nimport $1CM7W$react, {useState as $1CM7W$useState, useMemo as $1CM7W$useMemo, useContext as $1CM7W$useContext} from \"react\";\nimport $1CM7W$reactdom from \"react-dom\";\nimport {useIsSSR as $1CM7W$useIsSSR} from \"@react-aria/ssr\";\nimport {useLayoutEffect as $1CM7W$useLayoutEffect} from \"@react-aria/utils\";\n\n/*\n * Copyright 2022 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\n\nconst $337b884510726a0d$export$a2200b96afd16271 = /*#__PURE__*/ (0, $1CM7W$react).createContext(null);\nfunction $337b884510726a0d$export$c6fdb837b070b4ff(props) {\n let isSSR = (0, $1CM7W$useIsSSR)();\n let { portalContainer: portalContainer = isSSR ? null : document.body, isExiting: isExiting } = props;\n let [contain, setContain] = (0, $1CM7W$useState)(false);\n let contextValue = (0, $1CM7W$useMemo)(()=>({\n contain: contain,\n setContain: setContain\n }), [\n contain,\n setContain\n ]);\n let { getContainer: getContainer } = (0, $96b38030c423d352$export$9fc1347d4195ccb3)();\n if (!props.portalContainer && getContainer) portalContainer = getContainer();\n if (!portalContainer) return null;\n let contents = props.children;\n if (!props.disableFocusManagement) contents = /*#__PURE__*/ (0, $1CM7W$react).createElement((0, $1CM7W$FocusScope), {\n restoreFocus: true,\n contain: (props.shouldContainFocus || contain) && !isExiting\n }, contents);\n contents = /*#__PURE__*/ (0, $1CM7W$react).createElement($337b884510726a0d$export$a2200b96afd16271.Provider, {\n value: contextValue\n }, /*#__PURE__*/ (0, $1CM7W$react).createElement((0, $1CM7W$ClearPressResponder), null, contents));\n return /*#__PURE__*/ (0, $1CM7W$reactdom).createPortal(contents, portalContainer);\n}\nfunction $337b884510726a0d$export$14c98a7594375490() {\n let ctx = (0, $1CM7W$useContext)($337b884510726a0d$export$a2200b96afd16271);\n let setContain = ctx === null || ctx === void 0 ? void 0 : ctx.setContain;\n (0, $1CM7W$useLayoutEffect)(()=>{\n setContain === null || setContain === void 0 ? void 0 : setContain(true);\n }, [\n setContain\n ]);\n}\n\n\nexport {$337b884510726a0d$export$a2200b96afd16271 as OverlayContext, $337b884510726a0d$export$c6fdb837b070b4ff as Overlay, $337b884510726a0d$export$14c98a7594375490 as useOverlayFocusContain};\n//# sourceMappingURL=Overlay.module.js.map\n"],"names":["$337b884510726a0d$export$a2200b96afd16271","$1CM7W$react","$337b884510726a0d$export$14c98a7594375490","ctx","$1CM7W$useContext","setContain","$1CM7W$useLayoutEffect"],"mappings":"wIAyBMA,EAA8DC,EAAc,cAAc,IAAI,EAyBpG,SAASC,GAA4C,CACjD,IAAIC,EAAUC,aAAmBJ,CAAyC,EACtEK,EAAaF,GAAQ,KAAyB,OAASA,EAAI,WAC3DG,EAAsB,gBAAE,IAAI,CAC5BD,GAAe,MAAyCA,EAAW,EAAI,CAC/E,EAAO,CACCA,CACR,CAAK,CACL","x_google_ignoreList":[0]}
@@ -0,0 +1,16 @@
1
+ import e, { useContext as a } from "react";
2
+ import { useLayoutEffect as n } from "@react-aria/utils";
3
+ const r = /* @__PURE__ */ e.createContext(null);
4
+ function u() {
5
+ let o = a(r), t = o == null ? void 0 : o.setContain;
6
+ n(() => {
7
+ t == null || t(!0);
8
+ }, [
9
+ t
10
+ ]);
11
+ }
12
+ export {
13
+ r as OverlayContext,
14
+ u as useOverlayFocusContain
15
+ };
16
+ //# sourceMappingURL=Overlay.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Overlay.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/Overlay.mjs"],"sourcesContent":["import {useUNSAFE_PortalContext as $96b38030c423d352$export$9fc1347d4195ccb3} from \"./PortalProvider.mjs\";\nimport {ClearPressResponder as $1CM7W$ClearPressResponder} from \"@react-aria/interactions\";\nimport {FocusScope as $1CM7W$FocusScope} from \"@react-aria/focus\";\nimport $1CM7W$react, {useState as $1CM7W$useState, useMemo as $1CM7W$useMemo, useContext as $1CM7W$useContext} from \"react\";\nimport $1CM7W$reactdom from \"react-dom\";\nimport {useIsSSR as $1CM7W$useIsSSR} from \"@react-aria/ssr\";\nimport {useLayoutEffect as $1CM7W$useLayoutEffect} from \"@react-aria/utils\";\n\n/*\n * Copyright 2022 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\n\nconst $337b884510726a0d$export$a2200b96afd16271 = /*#__PURE__*/ (0, $1CM7W$react).createContext(null);\nfunction $337b884510726a0d$export$c6fdb837b070b4ff(props) {\n let isSSR = (0, $1CM7W$useIsSSR)();\n let { portalContainer: portalContainer = isSSR ? null : document.body, isExiting: isExiting } = props;\n let [contain, setContain] = (0, $1CM7W$useState)(false);\n let contextValue = (0, $1CM7W$useMemo)(()=>({\n contain: contain,\n setContain: setContain\n }), [\n contain,\n setContain\n ]);\n let { getContainer: getContainer } = (0, $96b38030c423d352$export$9fc1347d4195ccb3)();\n if (!props.portalContainer && getContainer) portalContainer = getContainer();\n if (!portalContainer) return null;\n let contents = props.children;\n if (!props.disableFocusManagement) contents = /*#__PURE__*/ (0, $1CM7W$react).createElement((0, $1CM7W$FocusScope), {\n restoreFocus: true,\n contain: (props.shouldContainFocus || contain) && !isExiting\n }, contents);\n contents = /*#__PURE__*/ (0, $1CM7W$react).createElement($337b884510726a0d$export$a2200b96afd16271.Provider, {\n value: contextValue\n }, /*#__PURE__*/ (0, $1CM7W$react).createElement((0, $1CM7W$ClearPressResponder), null, contents));\n return /*#__PURE__*/ (0, $1CM7W$reactdom).createPortal(contents, portalContainer);\n}\nfunction $337b884510726a0d$export$14c98a7594375490() {\n let ctx = (0, $1CM7W$useContext)($337b884510726a0d$export$a2200b96afd16271);\n let setContain = ctx === null || ctx === void 0 ? void 0 : ctx.setContain;\n (0, $1CM7W$useLayoutEffect)(()=>{\n setContain === null || setContain === void 0 ? void 0 : setContain(true);\n }, [\n setContain\n ]);\n}\n\n\nexport {$337b884510726a0d$export$a2200b96afd16271 as OverlayContext, $337b884510726a0d$export$c6fdb837b070b4ff as Overlay, $337b884510726a0d$export$14c98a7594375490 as useOverlayFocusContain};\n//# sourceMappingURL=Overlay.module.js.map\n"],"names":["$337b884510726a0d$export$a2200b96afd16271","$1CM7W$react","$337b884510726a0d$export$14c98a7594375490","ctx","$1CM7W$useContext","setContain","$1CM7W$useLayoutEffect"],"mappings":";;AAyBK,MAACA,IAA8DC,gBAAAA,EAAc,cAAc,IAAI;AAyBpG,SAASC,IAA4C;AACjD,MAAIC,IAAUC,EAAmBJ,CAAyC,GACtEK,IAAaF,KAAQ,OAAyB,SAASA,EAAI;AAC/D,EAAIG,EAAwB,MAAI;AAC5B,IAAAD,KAAe,QAAyCA,EAAW,EAAI;AAAA,EAC/E,GAAO;AAAA,IACCA;AAAA,EACR,CAAK;AACL;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let o=new WeakMap,n=[];function p(E,c=document.body){let l=new Set(E),a=new Set,u=t=>{for(let i of t.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(i);let r=i=>{if(l.has(i)||i.parentElement&&a.has(i.parentElement)&&i.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of l)if(i.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r}),b=r(t);if(b===NodeFilter.FILTER_ACCEPT&&f(t),b!==NodeFilter.FILTER_REJECT){let i=e.nextNode();for(;i!=null;)f(i),i=e.nextNode()}},f=t=>{var r;let e=(r=o.get(t))!==null&&r!==void 0?r:0;t.getAttribute("aria-hidden")==="true"&&e===0||(e===0&&t.setAttribute("aria-hidden","true"),a.add(t),o.set(t,e+1))};n.length&&n[n.length-1].disconnect(),u(c);let d=new MutationObserver(t=>{for(let r of t)if(!(r.type!=="childList"||r.addedNodes.length===0)&&![...l,...a].some(e=>e.contains(r.target))){for(let e of r.removedNodes)e instanceof Element&&(l.delete(e),a.delete(e));for(let e of r.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer==="true")?l.add(e):e instanceof Element&&u(e)}});d.observe(c,{childList:!0,subtree:!0});let s={visibleNodes:l,hiddenNodes:a,observe(){d.observe(c,{childList:!0,subtree:!0})},disconnect(){d.disconnect()}};return n.push(s),()=>{d.disconnect();for(let t of a){let r=o.get(t);r!=null&&(r===1?(t.removeAttribute("aria-hidden"),o.delete(t)):o.set(t,r-1))}s===n[n.length-1]?(n.pop(),n.length&&n[n.length-1].observe()):n.splice(n.indexOf(s),1)}}exports.ariaHideOutside=p;
2
+ //# sourceMappingURL=ariaHideOutside.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ariaHideOutside.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/ariaHideOutside.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 */ // Keeps a ref count of all hidden elements. Added to when hiding an element, and\n// subtracted from when showing it again. When it reaches zero, aria-hidden is removed.\nlet $5e3802645cc19319$var$refCountMap = new WeakMap();\nlet $5e3802645cc19319$var$observerStack = [];\nfunction $5e3802645cc19319$export$1c3ebcada18427bf(targets, root = document.body) {\n let visibleNodes = new Set(targets);\n let hiddenNodes = new Set();\n let walk = (root)=>{\n // Keep live announcer and top layer elements (e.g. toasts) visible.\n for (let element of root.querySelectorAll('[data-live-announcer], [data-react-aria-top-layer]'))visibleNodes.add(element);\n let acceptNode = (node)=>{\n // Skip this node and its children if it is one of the target nodes, or a live announcer.\n // Also skip children of already hidden nodes, as aria-hidden is recursive. An exception is\n // made for elements with role=\"row\" since VoiceOver on iOS has issues hiding elements with role=\"row\".\n // For that case we want to hide the cells inside as well (https://bugs.webkit.org/show_bug.cgi?id=222623).\n if (visibleNodes.has(node) || node.parentElement && hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute('role') !== 'row') return NodeFilter.FILTER_REJECT;\n // Skip this node but continue to children if one of the targets is inside the node.\n for (let target of visibleNodes){\n if (node.contains(target)) return NodeFilter.FILTER_SKIP;\n }\n return NodeFilter.FILTER_ACCEPT;\n };\n let walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: acceptNode\n });\n // TreeWalker does not include the root.\n let acceptRoot = acceptNode(root);\n if (acceptRoot === NodeFilter.FILTER_ACCEPT) hide(root);\n if (acceptRoot !== NodeFilter.FILTER_REJECT) {\n let node = walker.nextNode();\n while(node != null){\n hide(node);\n node = walker.nextNode();\n }\n }\n };\n let hide = (node)=>{\n var _refCountMap_get;\n let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0;\n // If already aria-hidden, and the ref count is zero, then this element\n // was already hidden and there's nothing for us to do.\n if (node.getAttribute('aria-hidden') === 'true' && refCount === 0) return;\n if (refCount === 0) node.setAttribute('aria-hidden', 'true');\n hiddenNodes.add(node);\n $5e3802645cc19319$var$refCountMap.set(node, refCount + 1);\n };\n // If there is already a MutationObserver listening from a previous call,\n // disconnect it so the new on takes over.\n if ($5e3802645cc19319$var$observerStack.length) $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].disconnect();\n walk(root);\n let observer = new MutationObserver((changes)=>{\n for (let change of changes){\n if (change.type !== 'childList' || change.addedNodes.length === 0) continue;\n // If the parent element of the added nodes is not within one of the targets,\n // and not already inside a hidden node, hide all of the new children.\n if (![\n ...visibleNodes,\n ...hiddenNodes\n ].some((node)=>node.contains(change.target))) {\n for (let node of change.removedNodes)if (node instanceof Element) {\n visibleNodes.delete(node);\n hiddenNodes.delete(node);\n }\n for (let node of change.addedNodes){\n if ((node instanceof HTMLElement || node instanceof SVGElement) && (node.dataset.liveAnnouncer === 'true' || node.dataset.reactAriaTopLayer === 'true')) visibleNodes.add(node);\n else if (node instanceof Element) walk(node);\n }\n }\n }\n });\n observer.observe(root, {\n childList: true,\n subtree: true\n });\n let observerWrapper = {\n visibleNodes: visibleNodes,\n hiddenNodes: hiddenNodes,\n observe () {\n observer.observe(root, {\n childList: true,\n subtree: true\n });\n },\n disconnect () {\n observer.disconnect();\n }\n };\n $5e3802645cc19319$var$observerStack.push(observerWrapper);\n return ()=>{\n observer.disconnect();\n for (let node of hiddenNodes){\n let count = $5e3802645cc19319$var$refCountMap.get(node);\n if (count == null) continue;\n if (count === 1) {\n node.removeAttribute('aria-hidden');\n $5e3802645cc19319$var$refCountMap.delete(node);\n } else $5e3802645cc19319$var$refCountMap.set(node, count - 1);\n }\n // Remove this observer from the stack, and start the previous one.\n if (observerWrapper === $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1]) {\n $5e3802645cc19319$var$observerStack.pop();\n if ($5e3802645cc19319$var$observerStack.length) $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].observe();\n } else $5e3802645cc19319$var$observerStack.splice($5e3802645cc19319$var$observerStack.indexOf(observerWrapper), 1);\n };\n}\nfunction $5e3802645cc19319$export$1020fa7f77e17884(element) {\n let observer = $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1];\n if (observer && !observer.visibleNodes.has(element)) {\n observer.visibleNodes.add(element);\n return ()=>{\n observer.visibleNodes.delete(element);\n };\n }\n}\n\n\nexport {$5e3802645cc19319$export$1c3ebcada18427bf as ariaHideOutside, $5e3802645cc19319$export$1020fa7f77e17884 as keepVisible};\n//# sourceMappingURL=ariaHideOutside.module.js.map\n"],"names":["$5e3802645cc19319$var$refCountMap","$5e3802645cc19319$var$observerStack","$5e3802645cc19319$export$1c3ebcada18427bf","targets","root","visibleNodes","hiddenNodes","walk","element","acceptNode","node","target","walker","acceptRoot","hide","_refCountMap_get","refCount","observer","changes","change","observerWrapper","count"],"mappings":"gFAYA,IAAIA,EAAoC,IAAI,QACxCC,EAAsC,CAAA,EAC1C,SAASC,EAA0CC,EAASC,EAAO,SAAS,KAAM,CAC9E,IAAIC,EAAe,IAAI,IAAIF,CAAO,EAC9BG,EAAc,IAAI,IAClBC,EAAQH,GAAO,CAEf,QAASI,KAAWJ,EAAK,iBAAiB,oDAAoD,EAAEC,EAAa,IAAIG,CAAO,EACxH,IAAIC,EAAcC,GAAO,CAKrB,GAAIL,EAAa,IAAIK,CAAI,GAAKA,EAAK,eAAiBJ,EAAY,IAAII,EAAK,aAAa,GAAKA,EAAK,cAAc,aAAa,MAAM,IAAM,MAAO,OAAO,WAAW,cAEhK,QAASC,KAAUN,EACf,GAAIK,EAAK,SAASC,CAAM,EAAG,OAAO,WAAW,YAEjD,OAAO,WAAW,aAC9B,EACYC,EAAS,SAAS,iBAAiBR,EAAM,WAAW,aAAc,CAClE,WAAYK,CACxB,CAAS,EAEGI,EAAaJ,EAAWL,CAAI,EAEhC,GADIS,IAAe,WAAW,eAAeC,EAAKV,CAAI,EAClDS,IAAe,WAAW,cAAe,CACzC,IAAIH,EAAOE,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ASP,KAAQJ,EAAY,CACzB,IAAIe,EAAQrB,EAAkC,IAAIU,CAAI,EAClDW,GAAS,OACTA,IAAU,GACVX,EAAK,gBAAgB,aAAa,EAClCV,EAAkC,OAAOU,CAAI,GAC1CV,EAAkC,IAAIU,EAAMW,EAAQ,CAAC,EAC/D,CAEGD,IAAoBnB,EAAoCA,EAAoC,OAAS,CAAC,GACtGA,EAAoC,IAAG,EACnCA,EAAoC,QAAQA,EAAoCA,EAAoC,OAAS,CAAC,EAAE,WACjIA,EAAoC,OAAOA,EAAoC,QAAQmB,CAAe,EAAG,CAAC,CACzH,CACA","x_google_ignoreList":[0]}
@@ -0,0 +1,64 @@
1
+ let d = /* @__PURE__ */ new WeakMap(), n = [];
2
+ function b(h, s = document.body) {
3
+ let l = new Set(h), a = /* @__PURE__ */ new Set(), f = (t) => {
4
+ for (let i of t.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(i);
5
+ let r = (i) => {
6
+ if (l.has(i) || i.parentElement && a.has(i.parentElement) && i.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
7
+ for (let p of l)
8
+ if (i.contains(p)) return NodeFilter.FILTER_SKIP;
9
+ return NodeFilter.FILTER_ACCEPT;
10
+ }, e = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
11
+ acceptNode: r
12
+ }), E = r(t);
13
+ if (E === NodeFilter.FILTER_ACCEPT && u(t), E !== NodeFilter.FILTER_REJECT) {
14
+ let i = e.nextNode();
15
+ for (; i != null; )
16
+ u(i), i = e.nextNode();
17
+ }
18
+ }, u = (t) => {
19
+ var r;
20
+ let e = (r = d.get(t)) !== null && r !== void 0 ? r : 0;
21
+ t.getAttribute("aria-hidden") === "true" && e === 0 || (e === 0 && t.setAttribute("aria-hidden", "true"), a.add(t), d.set(t, e + 1));
22
+ };
23
+ n.length && n[n.length - 1].disconnect(), f(s);
24
+ let o = new MutationObserver((t) => {
25
+ for (let r of t)
26
+ if (!(r.type !== "childList" || r.addedNodes.length === 0) && ![
27
+ ...l,
28
+ ...a
29
+ ].some((e) => e.contains(r.target))) {
30
+ for (let e of r.removedNodes) e instanceof Element && (l.delete(e), a.delete(e));
31
+ for (let e of r.addedNodes)
32
+ (e instanceof HTMLElement || e instanceof SVGElement) && (e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer === "true") ? l.add(e) : e instanceof Element && f(e);
33
+ }
34
+ });
35
+ o.observe(s, {
36
+ childList: !0,
37
+ subtree: !0
38
+ });
39
+ let c = {
40
+ visibleNodes: l,
41
+ hiddenNodes: a,
42
+ observe() {
43
+ o.observe(s, {
44
+ childList: !0,
45
+ subtree: !0
46
+ });
47
+ },
48
+ disconnect() {
49
+ o.disconnect();
50
+ }
51
+ };
52
+ return n.push(c), () => {
53
+ o.disconnect();
54
+ for (let t of a) {
55
+ let r = d.get(t);
56
+ r != null && (r === 1 ? (t.removeAttribute("aria-hidden"), d.delete(t)) : d.set(t, r - 1));
57
+ }
58
+ c === n[n.length - 1] ? (n.pop(), n.length && n[n.length - 1].observe()) : n.splice(n.indexOf(c), 1);
59
+ };
60
+ }
61
+ export {
62
+ b as ariaHideOutside
63
+ };
64
+ //# sourceMappingURL=ariaHideOutside.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ariaHideOutside.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/ariaHideOutside.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 */ // Keeps a ref count of all hidden elements. Added to when hiding an element, and\n// subtracted from when showing it again. When it reaches zero, aria-hidden is removed.\nlet $5e3802645cc19319$var$refCountMap = new WeakMap();\nlet $5e3802645cc19319$var$observerStack = [];\nfunction $5e3802645cc19319$export$1c3ebcada18427bf(targets, root = document.body) {\n let visibleNodes = new Set(targets);\n let hiddenNodes = new Set();\n let walk = (root)=>{\n // Keep live announcer and top layer elements (e.g. toasts) visible.\n for (let element of root.querySelectorAll('[data-live-announcer], [data-react-aria-top-layer]'))visibleNodes.add(element);\n let acceptNode = (node)=>{\n // Skip this node and its children if it is one of the target nodes, or a live announcer.\n // Also skip children of already hidden nodes, as aria-hidden is recursive. An exception is\n // made for elements with role=\"row\" since VoiceOver on iOS has issues hiding elements with role=\"row\".\n // For that case we want to hide the cells inside as well (https://bugs.webkit.org/show_bug.cgi?id=222623).\n if (visibleNodes.has(node) || node.parentElement && hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute('role') !== 'row') return NodeFilter.FILTER_REJECT;\n // Skip this node but continue to children if one of the targets is inside the node.\n for (let target of visibleNodes){\n if (node.contains(target)) return NodeFilter.FILTER_SKIP;\n }\n return NodeFilter.FILTER_ACCEPT;\n };\n let walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: acceptNode\n });\n // TreeWalker does not include the root.\n let acceptRoot = acceptNode(root);\n if (acceptRoot === NodeFilter.FILTER_ACCEPT) hide(root);\n if (acceptRoot !== NodeFilter.FILTER_REJECT) {\n let node = walker.nextNode();\n while(node != null){\n hide(node);\n node = walker.nextNode();\n }\n }\n };\n let hide = (node)=>{\n var _refCountMap_get;\n let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0;\n // If already aria-hidden, and the ref count is zero, then this element\n // was already hidden and there's nothing for us to do.\n if (node.getAttribute('aria-hidden') === 'true' && refCount === 0) return;\n if (refCount === 0) node.setAttribute('aria-hidden', 'true');\n hiddenNodes.add(node);\n $5e3802645cc19319$var$refCountMap.set(node, refCount + 1);\n };\n // If there is already a MutationObserver listening from a previous call,\n // disconnect it so the new on takes over.\n if ($5e3802645cc19319$var$observerStack.length) $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].disconnect();\n walk(root);\n let observer = new MutationObserver((changes)=>{\n for (let change of changes){\n if (change.type !== 'childList' || change.addedNodes.length === 0) continue;\n // If the parent element of the added nodes is not within one of the targets,\n // and not already inside a hidden node, hide all of the new children.\n if (![\n ...visibleNodes,\n ...hiddenNodes\n ].some((node)=>node.contains(change.target))) {\n for (let node of change.removedNodes)if (node instanceof Element) {\n visibleNodes.delete(node);\n hiddenNodes.delete(node);\n }\n for (let node of change.addedNodes){\n if ((node instanceof HTMLElement || node instanceof SVGElement) && (node.dataset.liveAnnouncer === 'true' || node.dataset.reactAriaTopLayer === 'true')) visibleNodes.add(node);\n else if (node instanceof Element) walk(node);\n }\n }\n }\n });\n observer.observe(root, {\n childList: true,\n subtree: true\n });\n let observerWrapper = {\n visibleNodes: visibleNodes,\n hiddenNodes: hiddenNodes,\n observe () {\n observer.observe(root, {\n childList: true,\n subtree: true\n });\n },\n disconnect () {\n observer.disconnect();\n }\n };\n $5e3802645cc19319$var$observerStack.push(observerWrapper);\n return ()=>{\n observer.disconnect();\n for (let node of hiddenNodes){\n let count = $5e3802645cc19319$var$refCountMap.get(node);\n if (count == null) continue;\n if (count === 1) {\n node.removeAttribute('aria-hidden');\n $5e3802645cc19319$var$refCountMap.delete(node);\n } else $5e3802645cc19319$var$refCountMap.set(node, count - 1);\n }\n // Remove this observer from the stack, and start the previous one.\n if (observerWrapper === $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1]) {\n $5e3802645cc19319$var$observerStack.pop();\n if ($5e3802645cc19319$var$observerStack.length) $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].observe();\n } else $5e3802645cc19319$var$observerStack.splice($5e3802645cc19319$var$observerStack.indexOf(observerWrapper), 1);\n };\n}\nfunction $5e3802645cc19319$export$1020fa7f77e17884(element) {\n let observer = $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1];\n if (observer && !observer.visibleNodes.has(element)) {\n observer.visibleNodes.add(element);\n return ()=>{\n observer.visibleNodes.delete(element);\n };\n }\n}\n\n\nexport {$5e3802645cc19319$export$1c3ebcada18427bf as ariaHideOutside, $5e3802645cc19319$export$1020fa7f77e17884 as keepVisible};\n//# sourceMappingURL=ariaHideOutside.module.js.map\n"],"names":["$5e3802645cc19319$var$refCountMap","$5e3802645cc19319$var$observerStack","$5e3802645cc19319$export$1c3ebcada18427bf","targets","root","visibleNodes","hiddenNodes","walk","element","acceptNode","node","target","walker","acceptRoot","hide","_refCountMap_get","refCount","observer","changes","change","observerWrapper","count"],"mappings":"AAYA,IAAIA,IAAoC,oBAAI,WACxCC,IAAsC,CAAA;AAC1C,SAASC,EAA0CC,GAASC,IAAO,SAAS,MAAM;AAC9E,MAAIC,IAAe,IAAI,IAAIF,CAAO,GAC9BG,IAAc,oBAAI,OAClBC,IAAO,CAACH,MAAO;AAEf,aAASI,KAAWJ,EAAK,iBAAiB,oDAAoD,EAAE,CAAAC,EAAa,IAAIG,CAAO;AACxH,QAAIC,IAAa,CAACC,MAAO;AAKrB,UAAIL,EAAa,IAAIK,CAAI,KAAKA,EAAK,iBAAiBJ,EAAY,IAAII,EAAK,aAAa,KAAKA,EAAK,cAAc,aAAa,MAAM,MAAM,MAAO,QAAO,WAAW;AAEhK,eAASC,KAAUN;AACf,YAAIK,EAAK,SAASC,CAAM,EAAG,QAAO,WAAW;AAEjD,aAAO,WAAW;AAAA,IAC9B,GACYC,IAAS,SAAS,iBAAiBR,GAAM,WAAW,cAAc;AAAA,MAClE,YAAYK;AAAA,IACxB,CAAS,GAEGI,IAAaJ,EAAWL,CAAI;AAEhC,QADIS,MAAe,WAAW,iBAAeC,EAAKV,CAAI,GAClDS,MAAe,WAAW,eAAe;AACzC,UAAIH,IAAOE,EAAO;AAClB,aAAMF,KAAQ;AACV,QAAAI,EAAKJ,C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;AAAA,IACD,aAAc;AACV,MAAAa,EAAS,WAAU;AAAA,IACtB;AAAA,EACT;AACI,SAAAhB,EAAoC,KAAKmB,CAAe,GACjD,MAAI;AACP,IAAAH,EAAS,WAAU;AACnB,aAASP,KAAQJ,GAAY;AACzB,UAAIe,IAAQrB,EAAkC,IAAIU,CAAI;AACtD,MAAIW,KAAS,SACTA,MAAU,KACVX,EAAK,gBAAgB,aAAa,GAClCV,EAAkC,OAAOU,CAAI,KAC1CV,EAAkC,IAAIU,GAAMW,IAAQ,CAAC;AAAA,IAC/D;AAED,IAAID,MAAoBnB,EAAoCA,EAAoC,SAAS,CAAC,KACtGA,EAAoC,IAAG,GACnCA,EAAoC,UAAQA,EAAoCA,EAAoC,SAAS,CAAC,EAAE,aACjIA,EAAoC,OAAOA,EAAoC,QAAQmB,CAAe,GAAG,CAAC;AAAA,EACzH;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ariaHideOutside.cjs.js"),i=require("./useOverlay.cjs.js"),l=require("./Overlay.cjs.js"),c=require("./usePreventScroll.cjs.js"),a=require("@react-aria/utils"),t=require("react");function d(s,e,r){let{overlayProps:o,underlayProps:u}=i.useOverlay({...s,isOpen:e.isOpen,onClose:e.close},r);return c.usePreventScroll({isDisabled:!e.isOpen}),l.useOverlayFocusContain(),t.useEffect(()=>{if(e.isOpen&&r.current)return n.ariaHideOutside([r.current])},[e.isOpen,r]),{modalProps:a.mergeProps(o),underlayProps:u}}exports.useModalOverlay=d;
2
+ //# sourceMappingURL=useModalOverlay.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useModalOverlay.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useModalOverlay.mjs"],"sourcesContent":["import {ariaHideOutside as $5e3802645cc19319$export$1c3ebcada18427bf} from \"./ariaHideOutside.mjs\";\nimport {useOverlay as $a11501f3d1d39e6c$export$ea8f71083e90600f} from \"./useOverlay.mjs\";\nimport {useOverlayFocusContain as $337b884510726a0d$export$14c98a7594375490} from \"./Overlay.mjs\";\nimport {usePreventScroll as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18} from \"./usePreventScroll.mjs\";\nimport {mergeProps as $7Dhkr$mergeProps} from \"@react-aria/utils\";\nimport {useEffect as $7Dhkr$useEffect} from \"react\";\n\n/*\n * Copyright 2022 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 $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {\n let { overlayProps: overlayProps, underlayProps: underlayProps } = (0, $a11501f3d1d39e6c$export$ea8f71083e90600f)({\n ...props,\n isOpen: state.isOpen,\n onClose: state.close\n }, ref);\n (0, $49c51c25361d4cd2$export$ee0f7cc6afcd1c18)({\n isDisabled: !state.isOpen\n });\n (0, $337b884510726a0d$export$14c98a7594375490)();\n (0, $7Dhkr$useEffect)(()=>{\n if (state.isOpen && ref.current) return (0, $5e3802645cc19319$export$1c3ebcada18427bf)([\n ref.current\n ]);\n }, [\n state.isOpen,\n ref\n ]);\n return {\n modalProps: (0, $7Dhkr$mergeProps)(overlayProps),\n underlayProps: underlayProps\n };\n}\n\n\nexport {$8ac8429251c45e4b$export$dbc0f175b25fb0fb as useModalOverlay};\n//# sourceMappingURL=useModalOverlay.module.js.map\n"],"names":["$8ac8429251c45e4b$export$dbc0f175b25fb0fb","props","state","ref","overlayProps","underlayProps","$a11501f3d1d39e6c$export$ea8f71083e90600f","$49c51c25361d4cd2$export$ee0f7cc6afcd1c18","$337b884510726a0d$export$14c98a7594375490","$7Dhkr$useEffect","$5e3802645cc19319$export$1c3ebcada18427bf","$7Dhkr$mergeProps"],"mappings":"oRAuBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,aAAcC,EAAc,cAAeC,CAAa,EAASC,aAA2C,CAC9G,GAAGL,EACH,OAAQC,EAAM,OACd,QAASA,EAAM,KAClB,EAAEC,CAAG,EACN,OAAII,mBAA2C,CAC3C,WAAY,CAACL,EAAM,MAC3B,CAAK,EACGM,EAAyC,uBAAA,EACzCC,EAAgB,UAAE,IAAI,CACtB,GAAIP,EAAM,QAAUC,EAAI,QAAS,OAAWO,EAAAA,gBAA2C,CACnFP,EAAI,OAChB,CAAS,CACT,EAAO,CACCD,EAAM,OACNC,CACR,CAAK,EACM,CACH,WAAgBQ,EAAiB,WAAEP,CAAY,EAC/C,cAAeC,CACvB,CACA","x_google_ignoreList":[0]}