@scbt-ecom/ui 0.95.2 → 0.95.4

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 (207) hide show
  1. package/dist/lib/shared/ui/formElements/uncontrolled/combobox/combobox.js +1 -1
  2. package/dist/lib/shared/ui/formElements/uncontrolled/combobox/combobox.js.map +1 -1
  3. package/dist/lib/shared/ui/formElements/uncontrolled/maskInput/MaskInput.js +1 -1
  4. package/dist/lib/shared/ui/formElements/uncontrolled/maskInput/MaskInput.js.map +1 -1
  5. package/dist/lib/shared/ui/formElements/uncontrolled/select/Select.js +1 -1
  6. package/dist/lib/shared/ui/formElements/uncontrolled/select/Select.js.map +1 -1
  7. package/dist/lib/shared/ui/formElements/uncontrolled/select/ui/SelectItem.js +1 -1
  8. package/dist/lib/shared/ui/formElements/uncontrolled/select/ui/SelectItem.js.map +1 -1
  9. package/dist/lib/widgets/model/helpers.js +2 -2
  10. package/dist/lib/widgets/model/helpers.js.map +1 -1
  11. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
  12. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
  13. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
  14. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +1 -1
  15. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
  16. package/dist/node_modules/use-mask-input/dist/index.js +14 -0
  17. package/dist/node_modules/use-mask-input/dist/index.js.map +1 -0
  18. package/dist/stats.html +1 -1
  19. package/package.json +5 -4
  20. package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -2
  21. package/dist/_virtual/use-sync-external-store-with-selector.production.js.map +0 -1
  22. package/dist/_virtual/with-selector.js +0 -2
  23. package/dist/_virtual/with-selector.js.map +0 -1
  24. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js +0 -2
  25. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js.map +0 -1
  26. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js +0 -2
  27. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js.map +0 -1
  28. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +0 -2
  29. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +0 -1
  30. package/dist/node_modules/@headlessui/react/dist/components/description/description.js +0 -2
  31. package/dist/node_modules/@headlessui/react/dist/components/description/description.js.map +0 -1
  32. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +0 -2
  33. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
  34. package/dist/node_modules/@headlessui/react/dist/components/label/label.js +0 -2
  35. package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +0 -1
  36. package/dist/node_modules/@headlessui/react/dist/components/mouse.js +0 -2
  37. package/dist/node_modules/@headlessui/react/dist/components/mouse.js.map +0 -1
  38. package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +0 -2
  39. package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js.map +0 -1
  40. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +0 -2
  41. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +0 -1
  42. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +0 -2
  43. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +0 -1
  44. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +0 -2
  45. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +0 -1
  46. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +0 -2
  47. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +0 -1
  48. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +0 -2
  49. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +0 -1
  50. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +0 -2
  51. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +0 -1
  52. package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.js +0 -2
  53. package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.js.map +0 -1
  54. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +0 -2
  55. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +0 -1
  56. package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js +0 -2
  57. package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js.map +0 -1
  58. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -2
  59. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
  60. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -2
  61. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
  62. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +0 -2
  63. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +0 -1
  64. package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js +0 -2
  65. package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js.map +0 -1
  66. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -2
  67. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
  68. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -2
  69. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
  70. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +0 -2
  71. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +0 -1
  72. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +0 -2
  73. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js.map +0 -1
  74. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -2
  75. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
  76. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -2
  77. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
  78. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +0 -2
  79. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js.map +0 -1
  80. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +0 -2
  81. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js.map +0 -1
  82. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -2
  83. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
  84. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -2
  85. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
  86. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +0 -2
  87. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +0 -1
  88. package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js +0 -2
  89. package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js.map +0 -1
  90. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -2
  91. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
  92. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +0 -2
  93. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +0 -1
  94. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -2
  95. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
  96. package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js +0 -2
  97. package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js.map +0 -1
  98. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -2
  99. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
  100. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -2
  101. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
  102. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -3
  103. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
  104. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -2
  105. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
  106. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -2
  107. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
  108. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -2
  109. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
  110. package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +0 -2
  111. package/dist/node_modules/@headlessui/react/dist/internal/disabled.js.map +0 -1
  112. package/dist/node_modules/@headlessui/react/dist/internal/floating.js +0 -2
  113. package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +0 -1
  114. package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js +0 -2
  115. package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js.map +0 -1
  116. package/dist/node_modules/@headlessui/react/dist/internal/frozen.js +0 -2
  117. package/dist/node_modules/@headlessui/react/dist/internal/frozen.js.map +0 -1
  118. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +0 -2
  119. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
  120. package/dist/node_modules/@headlessui/react/dist/internal/id.js +0 -2
  121. package/dist/node_modules/@headlessui/react/dist/internal/id.js.map +0 -1
  122. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -2
  123. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
  124. package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js +0 -2
  125. package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js.map +0 -1
  126. package/dist/node_modules/@headlessui/react/dist/machine.js +0 -2
  127. package/dist/node_modules/@headlessui/react/dist/machine.js.map +0 -1
  128. package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js +0 -2
  129. package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js.map +0 -1
  130. package/dist/node_modules/@headlessui/react/dist/react-glue.js +0 -2
  131. package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +0 -1
  132. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -2
  133. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
  134. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +0 -2
  135. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
  136. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -2
  137. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
  138. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +0 -2
  139. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
  140. package/dist/node_modules/@headlessui/react/dist/utils/default-map.js +0 -2
  141. package/dist/node_modules/@headlessui/react/dist/utils/default-map.js.map +0 -1
  142. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +0 -2
  143. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
  144. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -2
  145. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
  146. package/dist/node_modules/@headlessui/react/dist/utils/dom.js +0 -2
  147. package/dist/node_modules/@headlessui/react/dist/utils/dom.js.map +0 -1
  148. package/dist/node_modules/@headlessui/react/dist/utils/env.js +0 -2
  149. package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
  150. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -2
  151. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
  152. package/dist/node_modules/@headlessui/react/dist/utils/form.js +0 -2
  153. package/dist/node_modules/@headlessui/react/dist/utils/form.js.map +0 -1
  154. package/dist/node_modules/@headlessui/react/dist/utils/match.js +0 -2
  155. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
  156. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -2
  157. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
  158. package/dist/node_modules/@headlessui/react/dist/utils/owner.js +0 -2
  159. package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
  160. package/dist/node_modules/@headlessui/react/dist/utils/platform.js +0 -2
  161. package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
  162. package/dist/node_modules/@headlessui/react/dist/utils/render.js +0 -5
  163. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
  164. package/dist/node_modules/@headlessui/react/dist/utils/store.js +0 -2
  165. package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +0 -1
  166. package/dist/node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -2
  167. package/dist/node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
  168. package/dist/node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -2
  169. package/dist/node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
  170. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js +0 -2
  171. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js.map +0 -1
  172. package/dist/node_modules/@react-aria/interactions/dist/useFocus.js +0 -2
  173. package/dist/node_modules/@react-aria/interactions/dist/useFocus.js.map +0 -1
  174. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js +0 -2
  175. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js.map +0 -1
  176. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js +0 -2
  177. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js.map +0 -1
  178. package/dist/node_modules/@react-aria/interactions/dist/useHover.js +0 -2
  179. package/dist/node_modules/@react-aria/interactions/dist/useHover.js.map +0 -1
  180. package/dist/node_modules/@react-aria/interactions/dist/utils.js +0 -2
  181. package/dist/node_modules/@react-aria/interactions/dist/utils.js.map +0 -1
  182. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js +0 -2
  183. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js.map +0 -1
  184. package/dist/node_modules/@react-aria/utils/dist/domHelpers.js +0 -2
  185. package/dist/node_modules/@react-aria/utils/dist/domHelpers.js.map +0 -1
  186. package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js +0 -2
  187. package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js.map +0 -1
  188. package/dist/node_modules/@react-aria/utils/dist/platform.js +0 -2
  189. package/dist/node_modules/@react-aria/utils/dist/platform.js.map +0 -1
  190. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.js +0 -2
  191. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.js.map +0 -1
  192. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js +0 -2
  193. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js.map +0 -1
  194. package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js +0 -2
  195. package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js.map +0 -1
  196. package/dist/node_modules/@react-stately/flags/dist/import.js +0 -2
  197. package/dist/node_modules/@react-stately/flags/dist/import.js.map +0 -1
  198. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -2
  199. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
  200. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -2
  201. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
  202. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -5
  203. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
  204. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -10
  205. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js.map +0 -1
  206. package/dist/node_modules/use-sync-external-store/with-selector.js +0 -2
  207. package/dist/node_modules/use-sync-external-store/with-selector.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"floating-ui.react.utils.js","sources":["../../../../../../../../node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs"],"sourcesContent":["import { isShadowRoot, isHTMLElement } from '@floating-ui/utils/dom';\n\nfunction activeElement(doc) {\n let activeElement = doc.activeElement;\n while (((_activeElement = activeElement) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null) {\n var _activeElement;\n activeElement = activeElement.shadowRoot.activeElement;\n }\n return activeElement;\n}\nfunction contains(parent, child) {\n if (!parent || !child) {\n return false;\n }\n const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();\n\n // First, attempt with faster native method\n if (parent.contains(child)) {\n return true;\n }\n\n // then fallback to custom implementation with Shadow DOM support\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) {\n return true;\n }\n // @ts-ignore\n next = next.parentNode || next.host;\n }\n }\n\n // Give up, the result is false\n return false;\n}\n// Avoid Chrome DevTools blue warning.\nfunction getPlatform() {\n const uaData = navigator.userAgentData;\n if (uaData != null && uaData.platform) {\n return uaData.platform;\n }\n return navigator.platform;\n}\nfunction getUserAgent() {\n const uaData = navigator.userAgentData;\n if (uaData && Array.isArray(uaData.brands)) {\n return uaData.brands.map(_ref => {\n let {\n brand,\n version\n } = _ref;\n return brand + \"/\" + version;\n }).join(' ');\n }\n return navigator.userAgent;\n}\n\n// License: https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/utils/src/isVirtualEvent.ts\nfunction isVirtualClick(event) {\n // FIXME: Firefox is now emitting a deprecation warning for `mozInputSource`.\n // Try to find a workaround for this. `react-aria` source still has the check.\n if (event.mozInputSource === 0 && event.isTrusted) {\n return true;\n }\n if (isAndroid() && event.pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n return event.detail === 0 && !event.pointerType;\n}\nfunction isVirtualPointerEvent(event) {\n if (isJSDOM()) return false;\n return !isAndroid() && event.width === 0 && event.height === 0 || isAndroid() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse' ||\n // iOS VoiceOver returns 0.333• for width/height.\n event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'touch';\n}\nfunction isSafari() {\n // Chrome DevTools does not complain about navigator.vendor\n return /apple/i.test(navigator.vendor);\n}\nfunction isAndroid() {\n const re = /android/i;\n return re.test(getPlatform()) || re.test(getUserAgent());\n}\nfunction isMac() {\n return getPlatform().toLowerCase().startsWith('mac') && !navigator.maxTouchPoints;\n}\nfunction isJSDOM() {\n return getUserAgent().includes('jsdom/');\n}\nfunction isMouseLikePointerType(pointerType, strict) {\n // On some Linux machines with Chromium, mouse inputs return a `pointerType`\n // of \"pen\": https://github.com/floating-ui/floating-ui/issues/2015\n const values = ['mouse', 'pen'];\n if (!strict) {\n values.push('', undefined);\n }\n return values.includes(pointerType);\n}\nfunction isReactEvent(event) {\n return 'nativeEvent' in event;\n}\nfunction isRootElement(element) {\n return element.matches('html,body');\n}\nfunction getDocument(node) {\n return (node == null ? void 0 : node.ownerDocument) || document;\n}\nfunction isEventTargetWithin(event, node) {\n if (node == null) {\n return false;\n }\n if ('composedPath' in event) {\n return event.composedPath().includes(node);\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't\n const e = event;\n return e.target != null && node.contains(e.target);\n}\nfunction getTarget(event) {\n if ('composedPath' in event) {\n return event.composedPath()[0];\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support\n // `composedPath()`, but browsers without shadow DOM don't.\n return event.target;\n}\nconst TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nfunction isTypeableElement(element) {\n return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);\n}\nfunction stopEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\nfunction isTypeableCombobox(element) {\n if (!element) return false;\n return element.getAttribute('role') === 'combobox' && isTypeableElement(element);\n}\n\nexport { TYPEABLE_SELECTOR, activeElement, contains, getDocument, getPlatform, getTarget, getUserAgent, isAndroid, isEventTargetWithin, isJSDOM, isMac, isMouseLikePointerType, isReactEvent, isRootElement, isSafari, isTypeableCombobox, isTypeableElement, isVirtualClick, isVirtualPointerEvent, stopEvent };\n"],"names":["getUserAgent","uaData","_ref","brand","version"],"mappings":"AA4CA,SAASA,GAAe,CACtB,MAAMC,EAAS,UAAU,cACzB,OAAIA,GAAU,MAAM,QAAQA,EAAO,MAAM,EAChCA,EAAO,OAAO,IAAIC,GAAQ,CAC/B,GAAI,CACF,MAAAC,EACA,QAAAC,CACR,EAAUF,EACJ,OAAOC,EAAQ,IAAMC,CACvB,CAAC,EAAE,KAAK,GAAG,EAEN,UAAU,SACnB","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{useFocus as $}from"../../interactions/dist/useFocus.js";import{isFocusVisible as h,useFocusVisibleListener as x}from"../../interactions/dist/useFocusVisible.js";import{useFocusWithin as V}from"../../interactions/dist/useFocusWithin.js";import{useRef as m,useState as u,useCallback as c}from"react";function I(r={}){let{autoFocus:a=!1,isTextInput:f,within:i}=r,s=m({isFocused:!1,isFocusVisible:a||h()}),[n,b]=u(!1),[l,d]=u(()=>s.current.isFocused&&s.current.isFocusVisible),o=c(()=>d(s.current.isFocused&&s.current.isFocusVisible),[]),t=c(e=>{s.current.isFocused=e,b(e),o()},[o]);x(e=>{s.current.isFocusVisible=e,o()},[],{isTextInput:f});let{focusProps:F}=$({isDisabled:i,onFocusChange:t}),{focusWithinProps:p}=V({isDisabled:!i,onFocusWithinChange:t});return{isFocused:n,isFocusVisible:l,focusProps:i?p:F}}export{I as useFocusRing};
2
- //# sourceMappingURL=useFocusRing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFocusRing.js","sources":["../../../../../node_modules/@react-aria/focus/dist/useFocusRing.mjs"],"sourcesContent":["import {isFocusVisible as $isWE5$isFocusVisible, useFocusVisibleListener as $isWE5$useFocusVisibleListener, useFocus as $isWE5$useFocus, useFocusWithin as $isWE5$useFocusWithin} from \"@react-aria/interactions\";\nimport {useRef as $isWE5$useRef, useState as $isWE5$useState, useCallback as $isWE5$useCallback} from \"react\";\n\n\n\nfunction $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {\n let { autoFocus: autoFocus = false, isTextInput: isTextInput, within: within } = props;\n let state = (0, $isWE5$useRef)({\n isFocused: false,\n isFocusVisible: autoFocus || (0, $isWE5$isFocusVisible)()\n });\n let [isFocused, setFocused] = (0, $isWE5$useState)(false);\n let [isFocusVisibleState, setFocusVisible] = (0, $isWE5$useState)(()=>state.current.isFocused && state.current.isFocusVisible);\n let updateState = (0, $isWE5$useCallback)(()=>setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);\n let onFocusChange = (0, $isWE5$useCallback)((isFocused)=>{\n state.current.isFocused = isFocused;\n setFocused(isFocused);\n updateState();\n }, [\n updateState\n ]);\n (0, $isWE5$useFocusVisibleListener)((isFocusVisible)=>{\n state.current.isFocusVisible = isFocusVisible;\n updateState();\n }, [], {\n isTextInput: isTextInput\n });\n let { focusProps: focusProps } = (0, $isWE5$useFocus)({\n isDisabled: within,\n onFocusChange: onFocusChange\n });\n let { focusWithinProps: focusWithinProps } = (0, $isWE5$useFocusWithin)({\n isDisabled: !within,\n onFocusWithinChange: onFocusChange\n });\n return {\n isFocused: isFocused,\n isFocusVisible: isFocusVisibleState,\n focusProps: within ? focusWithinProps : focusProps\n };\n}\n\n\nexport {$f7dceffc5ad7768b$export$4e328f61c538687f as useFocusRing};\n//# sourceMappingURL=useFocusRing.module.js.map\n"],"names":["$f7dceffc5ad7768b$export$4e328f61c538687f","props","autoFocus","isTextInput","within","state","$isWE5$useRef","$isWE5$isFocusVisible","isFocused","setFocused","$isWE5$useState","isFocusVisibleState","setFocusVisible","updateState","$isWE5$useCallback","onFocusChange","$isWE5$useFocusVisibleListener","isFocusVisible","focusProps","$isWE5$useFocus","focusWithinProps","$isWE5$useFocusWithin"],"mappings":"iTAKA,SAASA,EAA0CC,EAAQ,GAAI,CAC3D,GAAI,CAAE,UAAWC,EAAY,GAAO,YAAaC,EAAa,OAAQC,CAAM,EAAKH,EAC7EI,EAAYC,EAAe,CAC3B,UAAW,GACX,eAAgBJ,GAAiBK,EAAqB,CAC9D,CAAK,EACG,CAACC,EAAWC,CAAU,EAAQC,EAAiB,EAAK,EACpD,CAACC,EAAqBC,CAAe,EAAQF,EAAiB,IAAIL,EAAM,QAAQ,WAAaA,EAAM,QAAQ,cAAc,EACzHQ,EAAkBC,EAAoB,IAAIF,EAAgBP,EAAM,QAAQ,WAAaA,EAAM,QAAQ,cAAc,EAAG,CAAA,CAAE,EACtHU,EAAoBD,EAAqBN,GAAY,CACrDH,EAAM,QAAQ,UAAYG,EAC1BC,EAAWD,CAAS,EACpBK,EAAW,CACf,EAAG,CACCA,CACR,CAAK,EACGG,EAAiCC,GAAiB,CAClDZ,EAAM,QAAQ,eAAiBY,EAC/BJ,EAAW,CACf,EAAG,CAAA,EAAI,CACH,YAAaV,CACrB,CAAK,EACD,GAAI,CAAE,WAAYe,CAAU,EAASC,EAAiB,CAClD,WAAYf,EACZ,cAAeW,CACvB,CAAK,EACG,CAAE,iBAAkBK,CAAgB,EAASC,EAAuB,CACpE,WAAY,CAACjB,EACb,oBAAqBW,CAC7B,CAAK,EACD,MAAO,CACH,UAAWP,EACX,eAAgBG,EAChB,WAAYP,EAASgB,EAAmBF,CAChD,CACA","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{useSyntheticBlurEvent as l}from"./utils.js";import{useCallback as u}from"react";import{getActiveElement as a,getEventTarget as p}from"../../utils/dist/DOMFunctions.js";import{getOwnerDocument as m}from"../../utils/dist/domHelpers.js";function x(d){let{isDisabled:r,onFocus:n,onBlur:o,onFocusChange:t}=d;const c=u(e=>{if(e.target===e.currentTarget)return o&&o(e),t&&t(!1),!0},[o,t]),f=l(c),i=u(e=>{const s=m(e.target),$=s?a(s):a();e.target===e.currentTarget&&$===p(e.nativeEvent)&&(n&&n(e),t&&t(!0),f(e))},[t,n,f]);return{focusProps:{onFocus:!r&&(n||t||o)?i:void 0,onBlur:!r&&(o||t)?c:void 0}}}export{x as useFocus};
2
- //# sourceMappingURL=useFocus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocus.mjs"],"sourcesContent":["import {useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useCallback as $hf0lj$useCallback} from \"react\";\nimport {getOwnerDocument as $hf0lj$getOwnerDocument, getActiveElement as $hf0lj$getActiveElement, getEventTarget as $hf0lj$getEventTarget} 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 */ // 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\nfunction $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {\n let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;\n const onBlur = (0, $hf0lj$useCallback)((e)=>{\n if (e.target === e.currentTarget) {\n if (onBlurProp) onBlurProp(e);\n if (onFocusChange) onFocusChange(false);\n return true;\n }\n }, [\n onBlurProp,\n onFocusChange\n ]);\n const onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n const onFocus = (0, $hf0lj$useCallback)((e)=>{\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $hf0lj$getOwnerDocument)(e.target);\n const activeElement = ownerDocument ? (0, $hf0lj$getActiveElement)(ownerDocument) : (0, $hf0lj$getActiveElement)();\n if (e.target === e.currentTarget && activeElement === (0, $hf0lj$getEventTarget)(e.nativeEvent)) {\n if (onFocusProp) onFocusProp(e);\n if (onFocusChange) onFocusChange(true);\n onSyntheticFocus(e);\n }\n }, [\n onFocusChange,\n onFocusProp,\n onSyntheticFocus\n ]);\n return {\n focusProps: {\n onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : undefined,\n onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : undefined\n }\n };\n}\n\n\nexport {$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as useFocus};\n//# sourceMappingURL=useFocus.module.js.map\n"],"names":["$a1ea59d68270f0dd$export$f8168d8dd8fd66e6","props","isDisabled","onFocusProp","onBlurProp","onFocusChange","onBlur","$hf0lj$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$hf0lj$getOwnerDocument","activeElement","$hf0lj$getActiveElement","$hf0lj$getEventTarget"],"mappings":"iPAqBA,SAASA,EAA0CC,EAAO,CACtD,GAAI,CAAE,WAAYC,EAAY,QAASC,EAAa,OAAQC,EAAY,cAAeC,CAAa,EAAKJ,EACzG,MAAMK,EAAaC,EAAqB,GAAI,CACxC,GAAI,EAAE,SAAW,EAAE,cACf,OAAIH,GAAYA,EAAW,CAAC,EACxBC,GAAeA,EAAc,EAAK,EAC/B,EAEf,EAAG,CACCD,EACAC,CACR,CAAK,EACKG,EAAuBC,EAA2CH,CAAM,EACxEI,EAAcH,EAAqB,GAAI,CAGzC,MAAMI,EAAoBC,EAAyB,EAAE,MAAM,EACrDC,EAAgBF,EAAoBG,EAAyBH,CAAa,EAAQG,EAAuB,EAC3G,EAAE,SAAW,EAAE,eAAiBD,IAAsBE,EAAuB,EAAE,WAAW,IACtFZ,GAAaA,EAAY,CAAC,EAC1BE,GAAeA,EAAc,EAAI,EACrCG,EAAiB,CAAC,EAE1B,EAAG,CACCH,EACAF,EACAK,CACR,CAAK,EACD,MAAO,CACH,WAAY,CACR,QAAS,CAACN,IAAeC,GAAeE,GAAiBD,GAAcM,EAAU,OACjF,OAAQ,CAACR,IAAeE,GAAcC,GAAiBC,EAAS,MAC5E,CACA,CACA","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{ignoreFocusEvent as T}from"./utils.js";import{getOwnerWindow as r,getOwnerDocument as u}from"../../utils/dist/domHelpers.js";import{isMac as k}from"../../utils/dist/platform.js";import{isVirtualClick as M}from"../../utils/dist/isVirtualEvent.js";import{useEffect as h}from"react";let f=null,b=new Set,d=new Map,a=!1,v=!1;const x={Tab:!0,Escape:!0};function p(e,o){for(let t of b)t(e,o)}function H(e){return!(e.metaKey||!k()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function c(e){a=!0,H(e)&&(f="keyboard",p("keyboard",e))}function i(e){f="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(a=!0,p("pointer",e))}function E(e){M(e)&&(a=!0,f="virtual")}function m(e){e.target===window||e.target===document||T||!e.isTrusted||(!a&&!v&&(f="virtual",p("virtual",e)),a=!1,v=!1)}function y(){a=!1,v=!0}function $(e){if(typeof window>"u"||typeof document>"u"||d.get(r(e)))return;const o=r(e),t=u(e);let n=o.HTMLElement.prototype.focus;o.HTMLElement.prototype.focus=function(){a=!0,n.apply(this,arguments)},t.addEventListener("keydown",c,!0),t.addEventListener("keyup",c,!0),t.addEventListener("click",E,!0),o.addEventListener("focus",m,!0),o.addEventListener("blur",y,!1),typeof PointerEvent<"u"&&(t.addEventListener("pointerdown",i,!0),t.addEventListener("pointermove",i,!0),t.addEventListener("pointerup",i,!0)),o.addEventListener("beforeunload",()=>{L(e)},{once:!0}),d.set(o,{focus:n})}const L=(e,o)=>{const t=r(e),n=u(e);o&&n.removeEventListener("DOMContentLoaded",o),d.has(t)&&(t.HTMLElement.prototype.focus=d.get(t).focus,n.removeEventListener("keydown",c,!0),n.removeEventListener("keyup",c,!0),n.removeEventListener("click",E,!0),t.removeEventListener("focus",m,!0),t.removeEventListener("blur",y,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",i,!0),n.removeEventListener("pointermove",i,!0),n.removeEventListener("pointerup",i,!0)),d.delete(t))};function F(e){const o=u(e);let t;return o.readyState!=="loading"?$(e):(t=()=>{$(e)},o.addEventListener("DOMContentLoaded",t)),()=>L(e,t)}typeof document<"u"&&F();function I(){return f!=="pointer"}const K=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function O(e,o,t){let n=u(t==null?void 0:t.target);const s=typeof window<"u"?r(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?r(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,w=typeof window<"u"?r(t==null?void 0:t.target).HTMLElement:HTMLElement,g=typeof window<"u"?r(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof s&&!K.has(n.activeElement.type)||n.activeElement instanceof l||n.activeElement instanceof w&&n.activeElement.isContentEditable,!(e&&o==="keyboard"&&t instanceof g&&!x[t.key])}function B(e,o,t){$(),h(()=>{let n=(s,l)=>{O(!!(t!=null&&t.isTextInput),s,l)&&e(I())};return b.add(n),()=>{b.delete(n)}},o)}export{F as addWindowFocusTracking,d as hasSetupGlobalListeners,I as isFocusVisible,B as useFocusVisibleListener};
2
- //# sourceMappingURL=useFocusVisible.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFocusVisible.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs"],"sourcesContent":["import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\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\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || typeof document === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n"],"names":["$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$b9b3dfddab17db27","$507fabe10e71c6fb$var$nonTextInputTypes","$507fabe10e71c6fb$var$isKeyboardFocusEvent","isTextInput","document1","IHTMLInputElement","IHTMLTextAreaElement","IHTMLElement","IKeyboardEvent","$507fabe10e71c6fb$export$ec71b4b83ac08ec3","fn","deps","opts","$28AnR$useEffect"],"mappings":"+RAuBA,IAAIA,EAAwC,KACxCC,MAA2C,IAC3CC,MAAgD,IAChDC,EAA4C,GAC5CC,EAAiD,GAErD,MAAMC,EAAiD,CACnD,IAAK,GACL,OAAQ,EACZ,EACA,SAASC,EAA4CC,EAAUC,EAAG,CAC9D,QAASC,KAAWR,EAAqCQ,EAAQF,EAAUC,CAAC,CAChF,CAGI,SAASE,EAAiC,EAAG,CAE7C,MAAO,EAAE,EAAE,SAAW,CAAKC,EAAA,GAAmB,EAAE,QAAU,EAAE,SAAW,EAAE,MAAQ,WAAa,EAAE,MAAQ,SAAW,EAAE,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AC,EAIG,SAASC,EAA2CC,EAAazB,EAAUC,EAAG,CAC9E,IAAIyB,EAAgBT,EAAyBhB,GAAM,KAAuB,OAASA,EAAE,MAAM,EAC3F,MAAM0B,EAAoB,OAAO,OAAW,IAAkBb,EAAuBb,GAAM,KAAuB,OAASA,EAAE,MAAM,EAAE,iBAAmB,iBAClJ2B,EAAuB,OAAO,OAAW,IAAkBd,EAAuBb,GAAM,KAAuB,OAASA,EAAE,MAAM,EAAE,oBAAsB,oBACxJ4B,EAAe,OAAO,OAAW,IAAkBf,EAAuBb,GAAM,KAAuB,OAASA,EAAE,MAAM,EAAE,YAAc,YACxI6B,EAAiB,OAAO,OAAW,IAAkBhB,EAAuBb,GAAM,KAAuB,OAASA,EAAE,MAAM,EAAE,cAAgB,cAGlJ,OAAAwB,EAAcA,GAAeC,EAAU,yBAAyBC,GAAqB,CAACJ,EAAwC,IAAIG,EAAU,cAAc,IAAI,GAAKA,EAAU,yBAAyBE,GAAwBF,EAAU,yBAAyBG,GAAgBH,EAAU,cAAc,kBAClS,EAAED,GAAezB,IAAa,YAAcC,aAAa6B,GAAkB,CAAChC,EAA+CG,EAAE,GAAG,EAC3I,CAeA,SAAS8B,EAA0CC,EAAIC,EAAMC,EAAM,CAC/DtB,EAAA,EACIuB,EAAkB,IAAI,CACtB,IAAIjC,EAAU,CAACF,EAAUC,IAAI,CAEpBuB,EAA2C,CAAC,EAAEU,GAAS,MAAmCA,EAAK,aAAclC,EAAUC,CAAC,GAC7H+B,EAAGV,GAA2C,CAClD,EACA,OAAA5B,EAAqC,IAAIQ,CAAO,EACzC,IAAI,CACPR,EAAqC,OAAOQ,CAAO,CACvD,CAEJ,EAAG+B,CAAI,CACX","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{useSyntheticBlurEvent as F,setEventTarget as W,createSyntheticEvent as v}from"./utils.js";import{useRef as x,useCallback as $}from"react";import{getActiveElement as E,getEventTarget as T,nodeContains as B}from"../../utils/dist/DOMFunctions.js";import{getOwnerDocument as G}from"../../utils/dist/domHelpers.js";import{useGlobalListeners as L}from"../../utils/dist/useGlobalListeners.js";function S(b){let{isDisabled:h,onBlurWithin:i,onFocusWithin:o,onFocusWithinChange:t}=b,r=x({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:s}=L(),n=$(e=>{e.currentTarget.contains(e.target)&&r.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(r.current.isFocusWithin=!1,s(),i&&i(e),t&&t(!1))},[i,t,r,s]),u=F(n),g=$(e=>{if(!e.currentTarget.contains(e.target))return;const a=G(e.target),p=E(a);if(!r.current.isFocusWithin&&p===T(e.nativeEvent)){o&&o(e),t&&t(!0),r.current.isFocusWithin=!0,u(e);let f=e.currentTarget;c(a,"focus",l=>{if(r.current.isFocusWithin&&!B(f,l.target)){let d=new a.defaultView.FocusEvent("blur",{relatedTarget:l.target});W(d,f);let m=v(d);n(m)}},{capture:!0})}},[o,t,u,c,n]);return h?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:g,onBlur:n}}}export{S as useFocusWithin};
2
- //# sourceMappingURL=useFocusWithin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFocusWithin.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusWithin.mjs"],"sourcesContent":["import {createSyntheticEvent as $8a9cb279dc87e130$export$525bc4921d56d4a, setEventTarget as $8a9cb279dc87e130$export$c2b7abe5d61ec696, useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useRef as $3b9Q0$useRef, useCallback as $3b9Q0$useCallback} from \"react\";\nimport {useGlobalListeners as $3b9Q0$useGlobalListeners, getOwnerDocument as $3b9Q0$getOwnerDocument, getActiveElement as $3b9Q0$getActiveElement, getEventTarget as $3b9Q0$getEventTarget, nodeContains as $3b9Q0$nodeContains} 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 */ // 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\nfunction $9ab94262bd0047c7$export$420e68273165f4ec(props) {\n let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;\n let state = (0, $3b9Q0$useRef)({\n isFocusWithin: false\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $3b9Q0$useGlobalListeners)();\n let onBlur = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // We don't want to trigger onBlurWithin and then immediately onFocusWithin again\n // when moving focus inside the element. Only trigger if the currentTarget doesn't\n // include the relatedTarget (where focus is moving).\n if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {\n state.current.isFocusWithin = false;\n removeAllGlobalListeners();\n if (onBlurWithin) onBlurWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(false);\n }\n }, [\n onBlurWithin,\n onFocusWithinChange,\n state,\n removeAllGlobalListeners\n ]);\n let onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n let onFocus = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $3b9Q0$getOwnerDocument)(e.target);\n const activeElement = (0, $3b9Q0$getActiveElement)(ownerDocument);\n if (!state.current.isFocusWithin && activeElement === (0, $3b9Q0$getEventTarget)(e.nativeEvent)) {\n if (onFocusWithin) onFocusWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(true);\n state.current.isFocusWithin = true;\n onSyntheticFocus(e);\n // Browsers don't fire blur events when elements are removed from the DOM.\n // However, if a focus event occurs outside the element we're tracking, we\n // can manually fire onBlur.\n let currentTarget = e.currentTarget;\n addGlobalListener(ownerDocument, 'focus', (e)=>{\n if (state.current.isFocusWithin && !(0, $3b9Q0$nodeContains)(currentTarget, e.target)) {\n let nativeEvent = new ownerDocument.defaultView.FocusEvent('blur', {\n relatedTarget: e.target\n });\n (0, $8a9cb279dc87e130$export$c2b7abe5d61ec696)(nativeEvent, currentTarget);\n let event = (0, $8a9cb279dc87e130$export$525bc4921d56d4a)(nativeEvent);\n onBlur(event);\n }\n }, {\n capture: true\n });\n }\n }, [\n onFocusWithin,\n onFocusWithinChange,\n onSyntheticFocus,\n addGlobalListener,\n onBlur\n ]);\n if (isDisabled) return {\n focusWithinProps: {\n // These cannot be null, that would conflict in mergeProps\n onFocus: undefined,\n onBlur: undefined\n }\n };\n return {\n focusWithinProps: {\n onFocus: onFocus,\n onBlur: onBlur\n }\n };\n}\n\n\nexport {$9ab94262bd0047c7$export$420e68273165f4ec as useFocusWithin};\n//# sourceMappingURL=useFocusWithin.module.js.map\n"],"names":["$9ab94262bd0047c7$export$420e68273165f4ec","props","isDisabled","onBlurWithin","onFocusWithin","onFocusWithinChange","state","$3b9Q0$useRef","addGlobalListener","removeAllGlobalListeners","$3b9Q0$useGlobalListeners","onBlur","$3b9Q0$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$3b9Q0$getOwnerDocument","activeElement","$3b9Q0$getActiveElement","$3b9Q0$getEventTarget","currentTarget","e","$3b9Q0$nodeContains","nativeEvent","$8a9cb279dc87e130$export$c2b7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J,EAAG,CACC,QAAS,EACzB,CAAa,CACL,CACJ,EAAG,CACCtB,EACAC,EACAQ,EACAL,EACAG,CACR,CAAK,EACD,OAAIT,EAAmB,CACnB,iBAAkB,CAEd,QAAS,OACT,OAAQ,MACpB,CACA,EACW,CACH,iBAAkB,CACd,QAASa,EACT,OAAQJ,CACpB,CACA,CACA","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{nodeContains as T}from"../../utils/dist/DOMFunctions.js";import{getOwnerDocument as P}from"../../utils/dist/domHelpers.js";import{useGlobalListeners as G}from"../../utils/dist/useGlobalListeners.js";import{useState as L,useRef as x,useEffect as m,useMemo as M}from"react";let p=!1,v=0;function C(){p=!0,setTimeout(()=>{p=!1},50)}function E(i){i.pointerType==="touch"&&C()}function S(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",E),v++,()=>{v--,!(v>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",E)}}function O(i){let{onHoverStart:u,onHoverChange:o,onHoverEnd:s,isDisabled:n}=i,[b,g]=L(!1),e=x({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;m(S,[]);let{addGlobalListener:$,removeAllGlobalListeners:c}=G(),{hoverProps:H,triggerHoverEnd:h}=M(()=>{let y=(t,r)=>{if(e.pointerType=r,n||r==="touch"||e.isHovered||!t.currentTarget.contains(t.target))return;e.isHovered=!0;let a=t.currentTarget;e.target=a,$(P(t.target),"pointerover",l=>{e.isHovered&&e.target&&!T(e.target,l.target)&&f(l,l.pointerType)},{capture:!0}),u&&u({type:"hoverstart",target:a,pointerType:r}),o&&o(!0),g(!0)},f=(t,r)=>{let a=e.target;e.pointerType="",e.target=null,!(r==="touch"||!e.isHovered||!a)&&(e.isHovered=!1,c(),s&&s({type:"hoverend",target:a,pointerType:r}),o&&o(!1),g(!1))},d={};return typeof PointerEvent<"u"&&(d.onPointerEnter=t=>{p&&t.pointerType==="mouse"||y(t,t.pointerType)},d.onPointerLeave=t=>{!n&&t.currentTarget.contains(t.target)&&f(t,t.pointerType)}),{hoverProps:d,triggerHoverEnd:f}},[u,o,s,n,e,$,c]);return m(()=>{n&&h({currentTarget:e.target},e.pointerType)},[n]),{hoverProps:H,isHovered:b}}export{O as useHover};
2
- //# sourceMappingURL=useHover.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useHover.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useHover.mjs"],"sourcesContent":["import {useGlobalListeners as $AWxnT$useGlobalListeners, getOwnerDocument as $AWxnT$getOwnerDocument, nodeContains as $AWxnT$nodeContains} from \"@react-aria/utils\";\nimport {useState as $AWxnT$useState, useRef as $AWxnT$useRef, useEffect as $AWxnT$useEffect, useMemo as $AWxnT$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n// iOS fires onPointerEnter twice: once with pointerType=\"touch\" and again with pointerType=\"mouse\".\n// We want to ignore these emulated events so they do not trigger hover behavior.\n// See https://bugs.webkit.org/show_bug.cgi?id=214609.\nlet $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;\nlet $6179b936705e76d3$var$hoverCount = 0;\nfunction $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {\n $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = true;\n // Clear globalIgnoreEmulatedMouseEvents after a short timeout. iOS fires onPointerEnter\n // with pointerType=\"mouse\" immediately after onPointerUp and before onFocus. On other\n // devices that don't have this quirk, we don't want to ignore a mouse hover sometime in\n // the distant future because a user previously touched the element.\n setTimeout(()=>{\n $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;\n }, 50);\n}\nfunction $6179b936705e76d3$var$handleGlobalPointerEvent(e) {\n if (e.pointerType === 'touch') $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents();\n}\nfunction $6179b936705e76d3$var$setupGlobalTouchEvents() {\n if (typeof document === 'undefined') return;\n if (typeof PointerEvent !== 'undefined') document.addEventListener('pointerup', $6179b936705e76d3$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') document.addEventListener('touchend', $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);\n $6179b936705e76d3$var$hoverCount++;\n return ()=>{\n $6179b936705e76d3$var$hoverCount--;\n if ($6179b936705e76d3$var$hoverCount > 0) return;\n if (typeof PointerEvent !== 'undefined') document.removeEventListener('pointerup', $6179b936705e76d3$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') document.removeEventListener('touchend', $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);\n };\n}\nfunction $6179b936705e76d3$export$ae780daf29e6d456(props) {\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, isDisabled: isDisabled } = props;\n let [isHovered, setHovered] = (0, $AWxnT$useState)(false);\n let state = (0, $AWxnT$useRef)({\n isHovered: false,\n ignoreEmulatedMouseEvents: false,\n pointerType: '',\n target: null\n }).current;\n (0, $AWxnT$useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents, []);\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $AWxnT$useGlobalListeners)();\n let { hoverProps: hoverProps, triggerHoverEnd: triggerHoverEnd } = (0, $AWxnT$useMemo)(()=>{\n let triggerHoverStart = (event, pointerType)=>{\n state.pointerType = pointerType;\n if (isDisabled || pointerType === 'touch' || state.isHovered || !event.currentTarget.contains(event.target)) return;\n state.isHovered = true;\n let target = event.currentTarget;\n state.target = target;\n // When an element that is hovered over is removed, no pointerleave event is fired by the browser,\n // even though the originally hovered target may have shrunk in size so it is no longer hovered.\n // However, a pointerover event will be fired on the new target the mouse is over.\n // In Chrome this happens immediately. In Safari and Firefox, it happens upon moving the mouse one pixel.\n addGlobalListener((0, $AWxnT$getOwnerDocument)(event.target), 'pointerover', (e)=>{\n if (state.isHovered && state.target && !(0, $AWxnT$nodeContains)(state.target, e.target)) triggerHoverEnd(e, e.pointerType);\n }, {\n capture: true\n });\n if (onHoverStart) onHoverStart({\n type: 'hoverstart',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(true);\n setHovered(true);\n };\n let triggerHoverEnd = (event, pointerType)=>{\n let target = state.target;\n state.pointerType = '';\n state.target = null;\n if (pointerType === 'touch' || !state.isHovered || !target) return;\n state.isHovered = false;\n removeAllGlobalListeners();\n if (onHoverEnd) onHoverEnd({\n type: 'hoverend',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(false);\n setHovered(false);\n };\n let hoverProps = {};\n if (typeof PointerEvent !== 'undefined') {\n hoverProps.onPointerEnter = (e)=>{\n if ($6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === 'mouse') return;\n triggerHoverStart(e, e.pointerType);\n };\n hoverProps.onPointerLeave = (e)=>{\n if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd(e, e.pointerType);\n };\n } else if (process.env.NODE_ENV === 'test') {\n hoverProps.onTouchStart = ()=>{\n state.ignoreEmulatedMouseEvents = true;\n };\n hoverProps.onMouseEnter = (e)=>{\n if (!state.ignoreEmulatedMouseEvents && !$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, 'mouse');\n state.ignoreEmulatedMouseEvents = false;\n };\n hoverProps.onMouseLeave = (e)=>{\n if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd(e, 'mouse');\n };\n }\n return {\n hoverProps: hoverProps,\n triggerHoverEnd: triggerHoverEnd\n };\n }, [\n onHoverStart,\n onHoverChange,\n onHoverEnd,\n isDisabled,\n state,\n addGlobalListener,\n removeAllGlobalListeners\n ]);\n (0, $AWxnT$useEffect)(()=>{\n // Call the triggerHoverEnd as soon as isDisabled changes to true\n // Safe to call triggerHoverEnd, it will early return if we aren't currently hovering\n if (isDisabled) triggerHoverEnd({\n currentTarget: state.target\n }, state.pointerType);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isDisabled\n ]);\n return {\n hoverProps: hoverProps,\n isHovered: isHovered\n };\n}\n\n\nexport {$6179b936705e76d3$export$ae780daf29e6d456 as useHover};\n//# sourceMappingURL=useHover.module.js.map\n"],"names":["$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents","$6179b936705e76d3$var$hoverCount","$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents","$6179b936705e76d3$var$handleGlobalPointerEvent","e","$6179b936705e76d3$var$setupGlobalTouchEvents","$6179b936705e76d3$export$ae780daf29e6d456","props","onHoverStart","onHoverChange","onHoverEnd","isDisabled","isHovered","setHovered","$AWxnT$useState","state","$AWxnT$useRef","$AWxnT$useEffect","addGlobalListener","removeAllGlobalListeners","$AWxnT$useGlobalListeners","hoverProps","triggerHoverEnd","$AWxnT$useMemo","triggerHoverStart","event","pointerType","target","$AWxnT$getOwnerDocument","$AWxnT$nodeContains"],"mappings":"uRAsBA,IAAIA,EAAwD,GACxDC,EAAmC,EACvC,SAASC,GAA2D,CAChEF,EAAwD,GAKxD,WAAW,IAAI,CACXA,EAAwD,EAC5D,EAAG,EAAE,CACT,CACA,SAASG,EAA+CC,EAAG,CACnDA,EAAE,cAAgB,SAASF,EAAA,CACnC,CACA,SAASG,GAA+C,CACpD,GAAI,SAAO,SAAa,KACxB,OAAI,OAAO,aAAiB,KAAa,SAAS,iBAAiB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,GAAYA,EAAW,CACvB,KAAM,WACN,OAAAiB,EACA,YAAAD,CAAA,CACH,EACGjB,KAA6B,EAAK,EACtCI,EAAW,EAAK,EACpB,EACIQ,EAAa,CAAA,EACjB,OAAI,OAAO,aAAiB,MACxBA,EAAW,eAAkBjB,GAAI,CACzBJ,GAAyDI,EAAE,cAAgB,SAC/EoB,EAAkBpB,EAAGA,EAAE,WAAW,CACtC,EACAiB,EAAW,eAAkBjB,GAAI,CACzB,CAACO,GAAcP,EAAE,cAAc,SAASA,EAAE,MAAM,GAAGkB,EAAgBlB,EAAGA,EAAE,WAAW,CAC3F,GAaG,CACH,WAAYiB,EACZ,gBAAiBC,CAAA,CAEzB,EAAG,CACCd,EACAC,EACAC,EACAC,EACAI,EACAG,EACAC,CAAA,CACH,EACD,OAAIF,EAAkB,IAAI,CAGlBN,GAAYW,EAAgB,CAC5B,cAAeP,EAAM,MAAA,EACtBA,EAAM,WAAW,CAExB,EAAG,CACCJ,CAAA,CACH,EACM,CACH,WAAAU,EACA,UAAAT,CAAA,CAER","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{useLayoutEffect as u}from"../../utils/dist/useLayoutEffect.js";import{useEffectEvent as d}from"../../utils/dist/useEffectEvent.js";import{useRef as l,useCallback as i}from"react";function b(r){let e=r;return e.nativeEvent=r,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function E(r,e){Object.defineProperty(r,"target",{value:e}),Object.defineProperty(r,"currentTarget",{value:e})}function $(r){let e=l({isFocused:!1,observer:null});u(()=>{const t=e.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let o=d(t=>{r==null||r(t)});return i(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){e.current.isFocused=!0;let n=t.target,s=c=>{if(e.current.isFocused=!1,n.disabled){let a=b(c);o(a)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};n.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&n.disabled){var c;(c=e.current.observer)===null||c===void 0||c.disconnect();let a=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[o])}let m=!1;export{b as createSyntheticEvent,m as ignoreFocusEvent,E as setEventTarget,$ as useSyntheticBlurEvent};
2
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.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"],"mappings":"0LAeA,SAASA,EAAyCC,EAAa,CAC3D,IAAIC,EAAQD,EACZ,OAAAC,EAAM,YAAcD,EACpBC,EAAM,mBAAqB,IAAIA,EAAM,iBAErCA,EAAM,qBAAuB,IAAIA,EAAM,aACvCA,EAAM,QAAU,IAAI,CAAC,EACdA,CACX,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,EAAe,CAC9B,UAAW,GACX,SAAU,IAClB,CAAK,EAEGC,EAAwB,IAAI,CAC5B,MAAMC,EAAQH,EAAS,QACvB,MAAO,IAAI,CACHG,EAAM,WACNA,EAAM,SAAS,WAAU,EACzBA,EAAM,SAAW,KAEzB,CACJ,EAAG,CAAA,CAAE,EACL,IAAIC,EAAmBC,EAAwBC,GAAI,CAC/CP,GAAW,MAAqCA,EAAOO,CAAC,CAC5D,CAAC,EAED,OAAWC,EAAqBD,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,CACtB,CAEIK,EAAS,QAAQ,WACjBA,EAAS,QAAQ,SAAS,WAAU,EACpCA,EAAS,QAAQ,SAAW,KAEpC,EACAH,EAAO,iBAAiB,WAAYW,EAAe,CAC/C,KAAM,EACtB,CAAa,EACDR,EAAS,QAAQ,SAAW,IAAI,iBAAiB,IAAI,CACjD,GAAIA,EAAS,QAAQ,WAAaH,EAAO,SAAU,CAC/C,IAAIY,GACHA,EAA6BT,EAAS,QAAQ,YAAc,MAAQS,IAA+B,QAAkBA,EAA2B,WAAU,EAC3J,IAAIC,EAAkBb,IAAW,SAAS,cAAgB,KAAO,SAAS,cAC1EA,EAAO,cAAc,IAAI,WAAW,OAAQ,CACxC,cAAea,CACvC,CAAqB,CAAC,EACFb,EAAO,cAAc,IAAI,WAAW,WAAY,CAC5C,QAAS,GACT,cAAea,CACvC,CAAqB,CAAC,CACN,CACJ,CAAC,EACDV,EAAS,QAAQ,SAAS,QAAQH,EAAQ,CACtC,WAAY,GACZ,gBAAiB,CACb,UACpB,CACA,CAAa,CACL,CACJ,EAAG,CACCO,CACR,CAAK,CACL,CACG,IAACO,EAA4C","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{isShadowRoot as f}from"./domHelpers.js";import{shadowDOM as o}from"../../../@react-stately/flags/dist/import.js";function n(t,a){if(!o())return a&&t?t.contains(a):!1;if(!t||!a)return!1;let e=a;for(;e!==null;){if(e===t)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:f(e)?e=e.host:e=e.parentNode}return!1}const s=(t=document)=>{var a;if(!o())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&(!((a=e.shadowRoot)===null||a===void 0)&&a.activeElement);)e=e.shadowRoot.activeElement;return e};function d(t){return o()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}export{s as getActiveElement,d as getEventTarget,n as nodeContains};
2
- //# sourceMappingURL=DOMFunctions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DOMFunctions.js","sources":["../../../../../node_modules/@react-aria/utils/dist/DOMFunctions.mjs"],"sourcesContent":["import {isShadowRoot as $431fbd86ca7dc216$export$af51f0f06c0f328a} from \"./domHelpers.mjs\";\nimport {shadowDOM as $lcSu5$shadowDOM} from \"@react-stately/flags\";\n\n// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16\n\n\nfunction $d4ee10de306f2510$export$4282f70798064fe0(node, otherNode) {\n if (!(0, $lcSu5$shadowDOM)()) return otherNode && node ? node.contains(otherNode) : false;\n if (!node || !otherNode) return false;\n let currentNode = otherNode;\n while(currentNode !== null){\n if (currentNode === node) return true;\n if (currentNode.tagName === 'SLOT' && currentNode.assignedSlot) // Element is slotted\n currentNode = currentNode.assignedSlot.parentNode;\n else if ((0, $431fbd86ca7dc216$export$af51f0f06c0f328a)(currentNode)) // Element is in shadow root\n currentNode = currentNode.host;\n else currentNode = currentNode.parentNode;\n }\n return false;\n}\nconst $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document)=>{\n var _activeElement_shadowRoot;\n if (!(0, $lcSu5$shadowDOM)()) return doc.activeElement;\n let activeElement = doc.activeElement;\n while(activeElement && 'shadowRoot' in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement))activeElement = activeElement.shadowRoot.activeElement;\n return activeElement;\n};\nfunction $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {\n if ((0, $lcSu5$shadowDOM)() && event.target.shadowRoot) {\n if (event.composedPath) return event.composedPath()[0];\n }\n return event.target;\n}\n\n\nexport {$d4ee10de306f2510$export$4282f70798064fe0 as nodeContains, $d4ee10de306f2510$export$cd4e5573fbe2b576 as getActiveElement, $d4ee10de306f2510$export$e58f029f0fbfdb29 as getEventTarget};\n//# sourceMappingURL=DOMFunctions.module.js.map\n"],"names":["$d4ee10de306f2510$export$4282f70798064fe0","node","otherNode","$lcSu5$shadowDOM","currentNode","$431fbd86ca7dc216$export$af51f0f06c0f328a","$d4ee10de306f2510$export$cd4e5573fbe2b576","doc","_activeElement_shadowRoot","activeElement","$d4ee10de306f2510$export$e58f029f0fbfdb29","event"],"mappings":"wHAMA,SAASA,EAA0CC,EAAMC,EAAW,CAChE,GAAI,CAAKC,EAAgB,EAAK,OAAOD,GAAaD,EAAOA,EAAK,SAASC,CAAS,EAAI,GACpF,GAAI,CAACD,GAAQ,CAACC,EAAW,MAAO,GAChC,IAAIE,EAAcF,EAClB,KAAME,IAAgB,MAAK,CACvB,GAAIA,IAAgBH,EAAM,MAAO,GAC7BG,EAAY,UAAY,QAAUA,EAAY,aAClDA,EAAcA,EAAY,aAAa,WAC1BC,EAA2CD,CAAW,EACnEA,EAAcA,EAAY,KACrBA,EAAcA,EAAY,UACnC,CACA,MAAO,EACX,CACK,MAACE,EAA4C,CAACC,EAAM,WAAW,CAChE,IAAIC,EACJ,GAAI,CAAKL,IAAqB,OAAOI,EAAI,cACzC,IAAIE,EAAgBF,EAAI,cACxB,KAAME,GAAiB,eAAgBA,IAAmB,GAAAD,EAA4BC,EAAc,cAAgB,MAAQD,IAA8B,SAAkBA,EAA0B,gBAAeC,EAAgBA,EAAc,WAAW,cAC9P,OAAOA,CACX,EACA,SAASC,EAA0CC,EAAO,CACtD,OAAQR,EAAgB,GAAOQ,EAAM,OAAO,YACpCA,EAAM,aAAqBA,EAAM,aAAY,EAAG,CAAC,EAElDA,EAAM,MACjB","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- const t=o=>{var n;return(n=o==null?void 0:o.ownerDocument)!==null&&n!==void 0?n:document},e=o=>o&&"window"in o&&o.window===o?o:t(o).defaultView||window;function d(o){return o!==null&&typeof o=="object"&&"nodeType"in o&&typeof o.nodeType=="number"}function c(o){return d(o)&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in o}export{t as getOwnerDocument,e as getOwnerWindow,c as isShadowRoot};
2
- //# sourceMappingURL=domHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domHelpers.js","sources":["../../../../../node_modules/@react-aria/utils/dist/domHelpers.mjs"],"sourcesContent":["const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{\n var _el_ownerDocument;\n return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;\n};\nconst $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{\n if (el && 'window' in el && el.window === el) return el;\n const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);\n return doc.defaultView || window;\n};\n/**\n * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.\n */ function $431fbd86ca7dc216$var$isNode(value) {\n return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';\n}\nfunction $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {\n return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;\n}\n\n\nexport {$431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot};\n//# sourceMappingURL=domHelpers.module.js.map\n"],"names":["$431fbd86ca7dc216$export$b204af158042fbac","el","_el_ownerDocument","$431fbd86ca7dc216$export$f21a1ffae260145a","$431fbd86ca7dc216$var$isNode","value","$431fbd86ca7dc216$export$af51f0f06c0f328a","node"],"mappings":"AAAK,MAACA,EAA6CC,GAAK,CACpD,IAAIC,EACJ,OAAQA,EAAoBD,GAAO,KAAwB,OAASA,EAAG,iBAAmB,MAAQC,IAAsB,OAASA,EAAoB,QACzJ,EACMC,EAA6CF,GAC3CA,GAAM,WAAYA,GAAMA,EAAG,SAAWA,EAAWA,EACzCD,EAA0CC,CAAE,EAC7C,aAAe,OAI1B,SAASG,EAA6BC,EAAO,CAC7C,OAAOA,IAAU,MAAQ,OAAOA,GAAU,UAAY,aAAcA,GAAS,OAAOA,EAAM,UAAa,QAC3G,CACA,SAASC,EAA0CC,EAAM,CACrD,OAAOH,EAA6BG,CAAI,GAAKA,EAAK,WAAa,KAAK,wBAA0B,SAAUA,CAC5G","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{isAndroid as i}from"./platform.js";function t(r){return r.mozInputSource===0&&r.isTrusted?!0:i()&&r.pointerType?r.type==="click"&&r.buttons===1:r.detail===0&&!r.pointerType}export{t as isVirtualClick};
2
- //# sourceMappingURL=isVirtualEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isVirtualEvent.js","sources":["../../../../../node_modules/@react-aria/utils/dist/isVirtualEvent.mjs"],"sourcesContent":["import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8} from \"./platform.mjs\";\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 */ \nfunction $6a7db85432448f7f$export$60278871457622de(event) {\n // JAWS/NVDA with Firefox.\n if (event.mozInputSource === 0 && event.isTrusted) return true;\n // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead\n // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check\n // to detect TalkBack virtual clicks.\n if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;\n return event.detail === 0 && !event.pointerType;\n}\nfunction $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {\n // If the pointer size is zero, then we assume it's from a screen reader.\n // Android TalkBack double tap will sometimes return a event with width and height of 1\n // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.\n // Cannot use \"event.pressure === 0\" as the sole check due to Safari pointer events always returning pressure === 0\n // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush\n // Talkback double tap from Windows Firefox touch screen press\n return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';\n}\n\n\nexport {$6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};\n//# sourceMappingURL=isVirtualEvent.module.js.map\n"],"names":["$6a7db85432448f7f$export$60278871457622de","event","$c87311424ea30a05$export$a11b0059900ceec8"],"mappings":"0CAaA,SAASA,EAA0CC,EAAO,CAEtD,OAAIA,EAAM,iBAAmB,GAAKA,EAAM,UAAkB,GAIlDC,EAAyC,GAAOD,EAAM,YAAoBA,EAAM,OAAS,SAAWA,EAAM,UAAY,EACvHA,EAAM,SAAW,GAAK,CAACA,EAAM,WACxC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- function r(a){var n;return typeof window>"u"||window.navigator==null?!1:((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands.some(e=>a.test(e.brand)))||a.test(window.navigator.userAgent)}function o(a){var n;return typeof window<"u"&&window.navigator!=null?a.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function t(a){let n=null;return()=>(n==null&&(n=a()),n)}const i=t(function(){return o(/^Mac/i)}),d=t(function(){return r(/Android/i)});export{d as isAndroid,i as isMac};
2
- //# sourceMappingURL=platform.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"platform.js","sources":["../../../../../node_modules/@react-aria/utils/dist/platform.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 */ function $c87311424ea30a05$var$testUserAgent(re) {\n var _window_navigator_userAgentData;\n if (typeof window === 'undefined' || window.navigator == null) return false;\n return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);\n}\nfunction $c87311424ea30a05$var$testPlatform(re) {\n var _window_navigator_userAgentData;\n return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;\n}\nfunction $c87311424ea30a05$var$cached(fn) {\n if (process.env.NODE_ENV === 'test') return fn;\n let res = null;\n return ()=>{\n if (res == null) res = fn();\n return res;\n };\n}\nconst $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^Mac/i);\n});\nconst $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^iPhone/i);\n});\nconst $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\n $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;\n});\nconst $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();\n});\nconst $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();\n});\nconst $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();\n});\nconst $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Chrome/i);\n});\nconst $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Android/i);\n});\nconst $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Firefox/i);\n});\n\n\nexport {$c87311424ea30a05$export$9ac100e40613ea10 as isMac, $c87311424ea30a05$export$186c6964ca17d99 as isIPhone, $c87311424ea30a05$export$7bef049ce92e4224 as isIPad, $c87311424ea30a05$export$fedb369cb70207f1 as isIOS, $c87311424ea30a05$export$e1865c3bedcd822b as isAppleDevice, $c87311424ea30a05$export$78551043582a6a98 as isWebKit, $c87311424ea30a05$export$6446a186d09e379e as isChrome, $c87311424ea30a05$export$a11b0059900ceec8 as isAndroid, $c87311424ea30a05$export$b7d78993b74f766d as isFirefox};\n//# sourceMappingURL=platform.module.js.map\n"],"names":["$c87311424ea30a05$var$testUserAgent","re","_window_navigator_userAgentData","brand","$c87311424ea30a05$var$testPlatform","$c87311424ea30a05$var$cached","fn","res","$c87311424ea30a05$export$9ac100e40613ea10","$c87311424ea30a05$export$a11b0059900ceec8"],"mappings":"AAUI,SAASA,EAAoCC,EAAI,CACjD,IAAIC,EACJ,OAAI,OAAO,OAAW,KAAe,OAAO,WAAa,KAAa,KAC7DA,EAAkC,OAAO,UAAU,iBAAsB,MAAQA,IAAoC,OAAS,OAASA,EAAgC,OAAO,KAAMC,GAAQF,EAAG,KAAKE,EAAM,KAAK,CAAC,IAAMF,EAAG,KAAK,OAAO,UAAU,SAAS,CACrQ,CACA,SAASG,EAAmCH,EAAI,CAC5C,IAAIC,EACJ,OAAO,OAAO,OAAW,KAAe,OAAO,WAAa,KAAOD,EAAG,OAAOC,EAAkC,OAAO,UAAU,iBAAsB,MAAQA,IAAoC,OAAS,OAASA,EAAgC,WAAa,OAAO,UAAU,QAAQ,EAAI,EAClS,CACA,SAASG,EAA6BC,EAAI,CAEtC,IAAIC,EAAM,KACV,MAAO,KACCA,GAAO,OAAMA,EAAMD,EAAA,GAChBC,EAEf,CACA,MAAMC,EAA4CH,EAA6B,UAAW,CACtF,OAAOD,EAAmC,OAAO,CACrD,CAAC,EAoBKK,EAA4CJ,EAA6B,UAAW,CACtF,OAAOL,EAAoC,UAAU,CACzD,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{useLayoutEffect as f}from"./useLayoutEffect.js";import{useRef as o,useCallback as a}from"react";function s(r){const t=o(null);return f(()=>{t.current=r},[r]),a((...c)=>{const e=t.current;return e==null?void 0:e(...c)},[])}export{s as useEffectEvent};
2
- //# sourceMappingURL=useEffectEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEffectEvent.js","sources":["../../../../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs"],"sourcesContent":["import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\nimport {useRef as $lmaYr$useRef, useCallback as $lmaYr$useCallback} from \"react\";\n\n/*\n * Copyright 2023 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 $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {\n const ref = (0, $lmaYr$useRef)(null);\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n ref.current = fn;\n }, [\n fn\n ]);\n // @ts-ignore\n return (0, $lmaYr$useCallback)((...args)=>{\n const f = ref.current;\n return f === null || f === void 0 ? void 0 : f(...args);\n }, []);\n}\n\n\nexport {$8ae05eaa5c114e9c$export$7f54fc3180508a52 as useEffectEvent};\n//# sourceMappingURL=useEffectEvent.module.js.map\n"],"names":["$8ae05eaa5c114e9c$export$7f54fc3180508a52","fn","ref","$lmaYr$useRef","$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c","$lmaYr$useCallback","args","f"],"mappings":"uGAeA,SAASA,EAA0CC,EAAI,CACnD,MAAMC,EAAUC,EAAe,IAAI,EACnC,OAAIC,EAA2C,IAAI,CAC/CF,EAAI,QAAUD,CAClB,EAAG,CACCA,CACR,CAAK,EAEUI,EAAoB,IAAIC,IAAO,CACtC,MAAMC,EAAIL,EAAI,QACd,OAAOK,GAAM,KAAuB,OAASA,EAAE,GAAGD,CAAI,CAC1D,EAAG,CAAA,CAAE,CACT","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{useRef as c,useCallback as f,useEffect as b}from"react";function L(){let o=c(new Map),u=f((e,l,r,t)=>{let n=t!=null&&t.once?(...d)=>{o.current.delete(r),r(...d)}:r;o.current.set(r,{type:l,eventTarget:e,fn:n,options:t}),e.addEventListener(l,n,t)},[]),a=f((e,l,r,t)=>{var n;let d=((n=o.current.get(r))===null||n===void 0?void 0:n.fn)||r;e.removeEventListener(l,d,t),o.current.delete(r)},[]),s=f(()=>{o.current.forEach((e,l)=>{a(e.eventTarget,e.type,l,e.options)})},[a]);return b(()=>s,[s]),{addGlobalListener:u,removeGlobalListener:a,removeAllGlobalListeners:s}}export{L as useGlobalListeners};
2
- //# sourceMappingURL=useGlobalListeners.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGlobalListeners.js","sources":["../../../../../node_modules/@react-aria/utils/dist/useGlobalListeners.mjs"],"sourcesContent":["import {useRef as $lPAwt$useRef, useCallback as $lPAwt$useCallback, useEffect as $lPAwt$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 */ \nfunction $03deb23ff14920c4$export$4eaf04e54aa8eed6() {\n let globalListeners = (0, $lPAwt$useRef)(new Map());\n let addGlobalListener = (0, $lPAwt$useCallback)((eventTarget, type, listener, options)=>{\n // Make sure we remove the listener after it is called with the `once` option.\n let fn = (options === null || options === void 0 ? void 0 : options.once) ? (...args)=>{\n globalListeners.current.delete(listener);\n listener(...args);\n } : listener;\n globalListeners.current.set(listener, {\n type: type,\n eventTarget: eventTarget,\n fn: fn,\n options: options\n });\n eventTarget.addEventListener(type, fn, options);\n }, []);\n let removeGlobalListener = (0, $lPAwt$useCallback)((eventTarget, type, listener, options)=>{\n var _globalListeners_current_get;\n let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;\n eventTarget.removeEventListener(type, fn, options);\n globalListeners.current.delete(listener);\n }, []);\n let removeAllGlobalListeners = (0, $lPAwt$useCallback)(()=>{\n globalListeners.current.forEach((value, key)=>{\n removeGlobalListener(value.eventTarget, value.type, key, value.options);\n });\n }, [\n removeGlobalListener\n ]);\n (0, $lPAwt$useEffect)(()=>{\n return removeAllGlobalListeners;\n }, [\n removeAllGlobalListeners\n ]);\n return {\n addGlobalListener: addGlobalListener,\n removeGlobalListener: removeGlobalListener,\n removeAllGlobalListeners: removeAllGlobalListeners\n };\n}\n\n\nexport {$03deb23ff14920c4$export$4eaf04e54aa8eed6 as useGlobalListeners};\n//# sourceMappingURL=useGlobalListeners.module.js.map\n"],"names":["$03deb23ff14920c4$export$4eaf04e54aa8eed6","globalListeners","$lPAwt$useRef","addGlobalListener","$lPAwt$useCallback","eventTarget","type","listener","options","fn","args","removeGlobalListener","_globalListeners_current_get","removeAllGlobalListeners","value","key","$lPAwt$useEffect"],"mappings":"+DAaA,SAASA,GAA4C,CACjD,IAAIC,EAAsBC,EAAe,IAAI,GAAK,EAC9CC,EAAwBC,EAAoB,CAACC,EAAaC,EAAMC,EAAUC,IAAU,CAEpF,IAAIC,EAAMD,GAAY,MAAsCA,EAAQ,KAAQ,IAAIE,IAAO,CACnFT,EAAgB,QAAQ,OAAOM,CAAQ,EACvCA,EAAS,GAAGG,CAAI,CACpB,EAAIH,EACJN,EAAgB,QAAQ,IAAIM,EAAU,CAClC,KAAMD,EACN,YAAaD,EACb,GAAII,EACJ,QAASD,CACrB,CAAS,EACDH,EAAY,iBAAiBC,EAAMG,EAAID,CAAO,CAClD,EAAG,CAAA,CAAE,EACDG,EAA2BP,EAAoB,CAACC,EAAaC,EAAMC,EAAUC,IAAU,CACvF,IAAII,EACJ,IAAIH,IAAOG,EAA+BX,EAAgB,QAAQ,IAAIM,CAAQ,KAAO,MAAQK,IAAiC,OAAS,OAASA,EAA6B,KAAOL,EACpLF,EAAY,oBAAoBC,EAAMG,EAAID,CAAO,EACjDP,EAAgB,QAAQ,OAAOM,CAAQ,CAC3C,EAAG,CAAA,CAAE,EACDM,EAA+BT,EAAoB,IAAI,CACvDH,EAAgB,QAAQ,QAAQ,CAACa,EAAOC,IAAM,CAC1CJ,EAAqBG,EAAM,YAAaA,EAAM,KAAMC,EAAKD,EAAM,OAAO,CAC1E,CAAC,CACL,EAAG,CACCH,CACR,CAAK,EACD,OAAIK,EAAkB,IACXH,EACR,CACCA,CACR,CAAK,EACM,CACH,kBAAmBV,EACnB,qBAAsBQ,EACtB,yBAA0BE,CAClC,CACA","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import e from"react";const f=typeof document<"u"?e.useLayoutEffect:()=>{};export{f as useLayoutEffect};
2
- //# sourceMappingURL=useLayoutEffect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLayoutEffect.js","sources":["../../../../../node_modules/@react-aria/utils/dist/useLayoutEffect.mjs"],"sourcesContent":["import $HgANd$react 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 */ \nconst $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== 'undefined' ? (0, $HgANd$react).useLayoutEffect : ()=>{};\n\n\nexport {$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as useLayoutEffect};\n//# sourceMappingURL=useLayoutEffect.module.js.map\n"],"names":["$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c","$HgANd$react"],"mappings":"qBAaK,MAACA,EAA4C,OAAO,SAAa,IAAkBC,EAAc,gBAAkB,IAAI,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- let e=!1;function f(){return e}export{f as shadowDOM};
2
- //# sourceMappingURL=import.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import.js","sources":["../../../../../node_modules/@react-stately/flags/dist/import.mjs"],"sourcesContent":["/*\n * Copyright 2023 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 */ let $f4e2df6bd15f8569$var$_tableNestedRows = false;\nlet $f4e2df6bd15f8569$var$_shadowDOM = false;\nfunction $f4e2df6bd15f8569$export$d9d8a0f82de49530() {\n $f4e2df6bd15f8569$var$_tableNestedRows = true;\n}\nfunction $f4e2df6bd15f8569$export$1b00cb14a96194e6() {\n return $f4e2df6bd15f8569$var$_tableNestedRows;\n}\nfunction $f4e2df6bd15f8569$export$12b151d9882e9985() {\n $f4e2df6bd15f8569$var$_shadowDOM = true;\n}\nfunction $f4e2df6bd15f8569$export$98658e8c59125e6a() {\n return $f4e2df6bd15f8569$var$_shadowDOM;\n}\n\n\nexport {$f4e2df6bd15f8569$export$d9d8a0f82de49530 as enableTableNestedRows, $f4e2df6bd15f8569$export$1b00cb14a96194e6 as tableNestedRows, $f4e2df6bd15f8569$export$12b151d9882e9985 as enableShadowDOM, $f4e2df6bd15f8569$export$98658e8c59125e6a as shadowDOM};\n//# sourceMappingURL=module.js.map\n"],"names":["$f4e2df6bd15f8569$var$_shadowDOM","$f4e2df6bd15f8569$export$98658e8c59125e6a"],"mappings":"AAWA,IAAIA,EAAmC,GAUvC,SAASC,GAA4C,CACjD,OAAOD,CACX","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import*as r from"react";import{flushSync as c}from"react-dom";import{Virtualizer as f,elementScroll as i,observeElementOffset as m,observeElementRect as d}from"../../../virtual-core/dist/esm/index.js";import{defaultKeyExtractor as R,defaultRangeExtractor as g,measureElement as z}from"../../../virtual-core/dist/esm/index.js";const a=typeof document<"u"?r.useLayoutEffect:r.useEffect;function p(e){const n=r.useReducer(()=>({}),{})[1],o={...e,onChange:(l,u)=>{var s;u?c(n):n(),(s=e.onChange)==null||s.call(e,l,u)}},[t]=r.useState(()=>new f(o));return t.setOptions(o),a(()=>t._didMount(),[]),a(()=>t._willUpdate()),t}function h(e){return p({observeElementRect:d,observeElementOffset:m,scrollToFn:i,...e})}export{f as Virtualizer,R as defaultKeyExtractor,g as defaultRangeExtractor,i as elementScroll,z as measureElement,m as observeElementOffset,d as observeElementRect,h as useVirtualizer};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@tanstack/react-virtual/dist/esm/index.js"],"sourcesContent":["import * as React from \"react\";\nimport { flushSync } from \"react-dom\";\nimport { Virtualizer, elementScroll, observeElementOffset, observeElementRect, windowScroll, observeWindowOffset, observeWindowRect } from \"@tanstack/virtual-core\";\nexport * from \"@tanstack/virtual-core\";\nconst useIsomorphicLayoutEffect = typeof document !== \"undefined\" ? React.useLayoutEffect : React.useEffect;\nfunction useVirtualizerBase(options) {\n const rerender = React.useReducer(() => ({}), {})[1];\n const resolvedOptions = {\n ...options,\n onChange: (instance2, sync) => {\n var _a;\n if (sync) {\n flushSync(rerender);\n } else {\n rerender();\n }\n (_a = options.onChange) == null ? void 0 : _a.call(options, instance2, sync);\n }\n };\n const [instance] = React.useState(\n () => new Virtualizer(resolvedOptions)\n );\n instance.setOptions(resolvedOptions);\n useIsomorphicLayoutEffect(() => {\n return instance._didMount();\n }, []);\n useIsomorphicLayoutEffect(() => {\n return instance._willUpdate();\n });\n return instance;\n}\nfunction useVirtualizer(options) {\n return useVirtualizerBase({\n observeElementRect,\n observeElementOffset,\n scrollToFn: elementScroll,\n ...options\n });\n}\nfunction useWindowVirtualizer(options) {\n return useVirtualizerBase({\n getScrollElement: () => typeof document !== \"undefined\" ? window : null,\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset: () => typeof document !== \"undefined\" ? window.scrollY : 0,\n ...options\n });\n}\nexport {\n useVirtualizer,\n useWindowVirtualizer\n};\n//# sourceMappingURL=index.js.map\n"],"names":["useIsomorphicLayoutEffect","React","useVirtualizerBase","options","rerender","resolvedOptions","instance2","sync","_a","flushSync","instance","Virtualizer","useVirtualizer","observeElementRect","observeElementOffset","elementScroll"],"mappings":"sUAIA,MAAMA,EAA4B,OAAO,SAAa,IAAcC,EAAM,gBAAkBA,EAAM,UAClG,SAASC,EAAmBC,EAAS,CACnC,MAAMC,EAAWH,EAAM,WAAW,KAAO,CAAA,GAAK,CAAA,CAAE,EAAE,CAAC,EAC7CI,EAAkB,CACtB,GAAGF,EACH,SAAU,CAACG,EAAWC,IAAS,CAC7B,IAAIC,EACAD,EACFE,EAAUL,CAAQ,EAElBA,EAAQ,GAETI,EAAKL,EAAQ,WAAa,MAAgBK,EAAG,KAAKL,EAASG,EAAWC,CAAI,CAC7E,CACJ,EACQ,CAACG,CAAQ,EAAIT,EAAM,SACvB,IAAM,IAAIU,EAAYN,CAAe,CACzC,EACE,OAAAK,EAAS,WAAWL,CAAe,EACnCL,EAA0B,IACjBU,EAAS,UAAS,EACxB,CAAA,CAAE,EACLV,EAA0B,IACjBU,EAAS,YAAW,CAC5B,EACMA,CACT,CACA,SAASE,EAAeT,EAAS,CAC/B,OAAOD,EAAmB,CACxB,mBAAAW,EACA,qBAAAC,EACA,WAAYC,EACZ,GAAGZ,CACP,CAAG,CACH","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{memo as f,notUndefined as b,approxEqual as y,debounce as O}from"./utils.js";const v=r=>{const{offsetWidth:a,offsetHeight:t}=r;return{width:a,height:t}},E=r=>r,C=r=>{const a=Math.max(r.startIndex-r.overscan,0),t=Math.min(r.endIndex+r.overscan,r.count-1),s=[];for(let e=a;e<=t;e++)s.push(e);return s},F=(r,a)=>{const t=r.scrollElement;if(!t)return;const s=r.targetWindow;if(!s)return;const e=n=>{const{width:o,height:h}=n;a({width:Math.round(o),height:Math.round(h)})};if(e(v(t)),!s.ResizeObserver)return()=>{};const i=new s.ResizeObserver(n=>{const o=()=>{const h=n[0];if(h!=null&&h.borderBoxSize){const c=h.borderBoxSize[0];if(c){e({width:c.inlineSize,height:c.blockSize});return}}e(v(t))};r.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t)}},S={passive:!0},x=typeof window>"u"?!0:"onscrollend"in window,_=(r,a)=>{const t=r.scrollElement;if(!t)return;const s=r.targetWindow;if(!s)return;let e=0;const i=r.options.useScrollendEvent&&x?()=>{}:O(s,()=>{a(e,!1)},r.options.isScrollingResetDelay),n=l=>()=>{const{horizontal:d,isRtl:u}=r.options;e=d?t.scrollLeft*(u&&-1||1):t.scrollTop,i(),a(e,l)},o=n(!0),h=n(!1);h(),t.addEventListener("scroll",o,S);const c=r.options.useScrollendEvent&&x;return c&&t.addEventListener("scrollend",h,S),()=>{t.removeEventListener("scroll",o),c&&t.removeEventListener("scrollend",h)}},I=(r,a,t)=>{if(a!=null&&a.borderBoxSize){const s=a.borderBoxSize[0];if(s)return Math.round(s[t.options.horizontal?"inlineSize":"blockSize"])}return r[t.options.horizontal?"offsetWidth":"offsetHeight"]},W=(r,{adjustments:a=0,behavior:t},s)=>{var e,i;const n=r+a;(i=(e=s.scrollElement)==null?void 0:e.scrollTo)==null||i.call(e,{[s.options.horizontal?"left":"top"]:n,behavior:t})};class k{constructor(a){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const s=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(e=>{e.forEach(i=>{const n=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()})}));return{disconnect:()=>{var e;(e=s())==null||e.disconnect(),t=null},observe:e=>{var i;return(i=s())==null?void 0:i.observe(e,{box:"border-box"})},unobserve:e=>{var i;return(i=s())==null?void 0:i.unobserve(e)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([s,e])=>{typeof e>"u"&&delete t[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:E,rangeExtractor:C,onChange:()=>{},measureElement:I,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var s,e;(e=(s=this.options).onChange)==null||e.call(s,this,t)},this.maybeNotify=f(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,s)=>{const e=new Map,i=new Map;for(let n=s-1;n>=0;n--){const o=t[n];if(e.has(o.lane))continue;const h=i.get(o.lane);if(h==null||o.end>h.end?i.set(o.lane,o):o.end<h.end&&e.set(o.lane,!0),e.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((n,o)=>n.end===o.end?n.index-o.index:n.end-o.end)[0]:void 0},this.getMeasurementOptions=f(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,s,e,i,n)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:s,scrollMargin:e,getItemKey:i,enabled:n}),{key:!1}),this.getMeasurements=f(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:s,scrollMargin:e,getItemKey:i,enabled:n},o)=>{if(!n)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(l=>{this.itemSizeCache.set(l.key,l.size)}));const h=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,h);for(let l=h;l<t;l++){const d=i(l),u=this.options.lanes===1?c[l-1]:this.getFurthestMeasurement(c,l),g=u?u.end+this.options.gap:s+e,m=o.get(d),p=typeof m=="number"?m:this.options.estimateSize(l),M=g+p,w=u?u.lane:l%this.options.lanes;c[l]={index:l,start:g,size:p,end:M,key:d,lane:w}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=f(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,s,e,i)=>this.range=t.length>0&&s>0?R({measurements:t,outerSize:s,scrollOffset:e,lanes:i}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=f(()=>{let t=null,s=null;const e=this.calculateRange();return e&&(t=e.startIndex,s=e.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,s]},(t,s,e,i,n)=>i===null||n===null?[]:t({startIndex:i,endIndex:n,overscan:s,count:e}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const s=this.options.indexAttribute,e=t.getAttribute(s);return e?parseInt(e,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(t,s)=>{const e=this.indexFromElement(t),i=this.measurementsCache[e];if(!i)return;const n=i.key,o=this.elementsCache.get(n);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(n,t)),t.isConnected&&this.resizeItem(e,this.options.measureElement(t,s,this))},this.resizeItem=(t,s)=>{const e=this.measurementsCache[t];if(!e)return;const i=this.itemSizeCache.get(e.key)??e.size,n=s-i;n!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(e,n,this):e.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(e.index),this.itemSizeCache=new Map(this.itemSizeCache.set(e.key,s)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((s,e)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(e))});return}this._measureElement(t,void 0)},this.getVirtualItems=f(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,s)=>{const e=[];for(let i=0,n=t.length;i<n;i++){const o=t[i],h=s[o];e.push(h)}return e},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const s=this.getMeasurements();if(s.length!==0)return b(s[z(0,s.length-1,e=>b(s[e]).start,t)])},this.getOffsetForAlignment=(t,s,e=0)=>{const i=this.getSize(),n=this.getScrollOffset();s==="auto"&&(s=t>=n+i?"end":"start"),s==="center"?t+=(e-i)/2:s==="end"&&(t-=i);const o=this.getTotalSize()+this.options.scrollMargin-i;return Math.max(Math.min(o,t),0)},this.getOffsetForIndex=(t,s="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const e=this.measurementsCache[t];if(!e)return;const i=this.getSize(),n=this.getScrollOffset();if(s==="auto")if(e.end>=n+i-this.options.scrollPaddingEnd)s="end";else if(e.start<=n+this.options.scrollPaddingStart)s="start";else return[n,s];const o=s==="end"?e.end+this.options.scrollPaddingEnd:e.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,s,e.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:s="start",behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,s),{adjustments:void 0,behavior:e})},this.scrollToIndex=(t,{align:s="auto",behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let i=0;const n=10,o=c=>{if(!this.targetWindow)return;const l=this.getOffsetForIndex(t,c);if(!l){console.warn("Failed to get offset for index:",t);return}const[d,u]=l;this._scrollToOffset(d,{adjustments:void 0,behavior:e}),this.targetWindow.requestAnimationFrame(()=>{const g=this.getScrollOffset(),m=this.getOffsetForIndex(t,u);if(!m){console.warn("Failed to get offset for index:",t);return}y(m[0],g)||h(u)})},h=c=>{this.targetWindow&&(i++,i<n?this.targetWindow.requestAnimationFrame(()=>o(c)):console.warn(`Failed to scroll to index ${t} after ${n} attempts.`))};o(s)},this.scrollBy=(t,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var t;const s=this.getMeasurements();let e;if(s.length===0)e=this.options.paddingStart;else if(this.options.lanes===1)e=((t=s[s.length-1])==null?void 0:t.end)??0;else{const i=Array(this.options.lanes).fill(null);let n=s.length-1;for(;n>=0&&i.some(o=>o===null);){const o=s[n];i[o.lane]===null&&(i[o.lane]=o.end),n--}e=Math.max(...i.filter(o=>o!==null))}return Math.max(e-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:s,behavior:e})=>{this.options.scrollToFn(t,{behavior:e,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(a)}}const z=(r,a,t,s)=>{for(;r<=a;){const e=(r+a)/2|0,i=t(e);if(i<s)r=e+1;else if(i>s)a=e-1;else return e}return r>0?r-1:0};function R({measurements:r,outerSize:a,scrollOffset:t,lanes:s}){const e=r.length-1,i=h=>r[h].start;if(r.length<=s)return{startIndex:0,endIndex:e};let n=z(0,e,i,t),o=n;if(s===1)for(;o<e&&r[o].end<t+a;)o++;else if(s>1){const h=Array(s).fill(0);for(;o<e&&h.some(l=>l<t+a);){const l=r[o];h[l.lane]=l.end,o++}const c=Array(s).fill(t+a);for(;n>=0&&c.some(l=>l>=t);){const l=r[n];c[l.lane]=l.start,n--}n=Math.max(0,n-n%s),o=Math.min(e,o+(s-1-o%s))}return{startIndex:n,endIndex:o}}export{k as Virtualizer,y as approxEqual,O as debounce,E as defaultKeyExtractor,C as defaultRangeExtractor,W as elementScroll,I as measureElement,f as memo,b as notUndefined,_ as observeElementOffset,F as observeElementRect};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@tanstack/virtual-core/dist/esm/index.js"],"sourcesContent":["import { debounce, memo, notUndefined, approxEqual } from \"./utils.js\";\nconst getRect = (element) => {\n const { offsetWidth, offsetHeight } = element;\n return { width: offsetWidth, height: offsetHeight };\n};\nconst defaultKeyExtractor = (index) => index;\nconst defaultRangeExtractor = (range) => {\n const start = Math.max(range.startIndex - range.overscan, 0);\n const end = Math.min(range.endIndex + range.overscan, range.count - 1);\n const arr = [];\n for (let i = start; i <= end; i++) {\n arr.push(i);\n }\n return arr;\n};\nconst observeElementRect = (instance, cb) => {\n const element = instance.scrollElement;\n if (!element) {\n return;\n }\n const targetWindow = instance.targetWindow;\n if (!targetWindow) {\n return;\n }\n const handler = (rect) => {\n const { width, height } = rect;\n cb({ width: Math.round(width), height: Math.round(height) });\n };\n handler(getRect(element));\n if (!targetWindow.ResizeObserver) {\n return () => {\n };\n }\n const observer = new targetWindow.ResizeObserver((entries) => {\n const run = () => {\n const entry = entries[0];\n if (entry == null ? void 0 : entry.borderBoxSize) {\n const box = entry.borderBoxSize[0];\n if (box) {\n handler({ width: box.inlineSize, height: box.blockSize });\n return;\n }\n }\n handler(getRect(element));\n };\n instance.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();\n });\n observer.observe(element, { box: \"border-box\" });\n return () => {\n observer.unobserve(element);\n };\n};\nconst addEventListenerOptions = {\n passive: true\n};\nconst observeWindowRect = (instance, cb) => {\n const element = instance.scrollElement;\n if (!element) {\n return;\n }\n const handler = () => {\n cb({ width: element.innerWidth, height: element.innerHeight });\n };\n handler();\n element.addEventListener(\"resize\", handler, addEventListenerOptions);\n return () => {\n element.removeEventListener(\"resize\", handler);\n };\n};\nconst supportsScrollend = typeof window == \"undefined\" ? true : \"onscrollend\" in window;\nconst observeElementOffset = (instance, cb) => {\n const element = instance.scrollElement;\n if (!element) {\n return;\n }\n const targetWindow = instance.targetWindow;\n if (!targetWindow) {\n return;\n }\n let offset = 0;\n const fallback = instance.options.useScrollendEvent && supportsScrollend ? () => void 0 : debounce(\n targetWindow,\n () => {\n cb(offset, false);\n },\n instance.options.isScrollingResetDelay\n );\n const createHandler = (isScrolling) => () => {\n const { horizontal, isRtl } = instance.options;\n offset = horizontal ? element[\"scrollLeft\"] * (isRtl && -1 || 1) : element[\"scrollTop\"];\n fallback();\n cb(offset, isScrolling);\n };\n const handler = createHandler(true);\n const endHandler = createHandler(false);\n endHandler();\n element.addEventListener(\"scroll\", handler, addEventListenerOptions);\n const registerScrollendEvent = instance.options.useScrollendEvent && supportsScrollend;\n if (registerScrollendEvent) {\n element.addEventListener(\"scrollend\", endHandler, addEventListenerOptions);\n }\n return () => {\n element.removeEventListener(\"scroll\", handler);\n if (registerScrollendEvent) {\n element.removeEventListener(\"scrollend\", endHandler);\n }\n };\n};\nconst observeWindowOffset = (instance, cb) => {\n const element = instance.scrollElement;\n if (!element) {\n return;\n }\n const targetWindow = instance.targetWindow;\n if (!targetWindow) {\n return;\n }\n let offset = 0;\n const fallback = instance.options.useScrollendEvent && supportsScrollend ? () => void 0 : debounce(\n targetWindow,\n () => {\n cb(offset, false);\n },\n instance.options.isScrollingResetDelay\n );\n const createHandler = (isScrolling) => () => {\n offset = element[instance.options.horizontal ? \"scrollX\" : \"scrollY\"];\n fallback();\n cb(offset, isScrolling);\n };\n const handler = createHandler(true);\n const endHandler = createHandler(false);\n endHandler();\n element.addEventListener(\"scroll\", handler, addEventListenerOptions);\n const registerScrollendEvent = instance.options.useScrollendEvent && supportsScrollend;\n if (registerScrollendEvent) {\n element.addEventListener(\"scrollend\", endHandler, addEventListenerOptions);\n }\n return () => {\n element.removeEventListener(\"scroll\", handler);\n if (registerScrollendEvent) {\n element.removeEventListener(\"scrollend\", endHandler);\n }\n };\n};\nconst measureElement = (element, entry, instance) => {\n if (entry == null ? void 0 : entry.borderBoxSize) {\n const box = entry.borderBoxSize[0];\n if (box) {\n const size = Math.round(\n box[instance.options.horizontal ? \"inlineSize\" : \"blockSize\"]\n );\n return size;\n }\n }\n return element[instance.options.horizontal ? \"offsetWidth\" : \"offsetHeight\"];\n};\nconst windowScroll = (offset, {\n adjustments = 0,\n behavior\n}, instance) => {\n var _a, _b;\n const toOffset = offset + adjustments;\n (_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, {\n [instance.options.horizontal ? \"left\" : \"top\"]: toOffset,\n behavior\n });\n};\nconst elementScroll = (offset, {\n adjustments = 0,\n behavior\n}, instance) => {\n var _a, _b;\n const toOffset = offset + adjustments;\n (_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, {\n [instance.options.horizontal ? \"left\" : \"top\"]: toOffset,\n behavior\n });\n};\nclass Virtualizer {\n constructor(opts) {\n this.unsubs = [];\n this.scrollElement = null;\n this.targetWindow = null;\n this.isScrolling = false;\n this.measurementsCache = [];\n this.itemSizeCache = /* @__PURE__ */ new Map();\n this.pendingMeasuredCacheIndexes = [];\n this.scrollRect = null;\n this.scrollOffset = null;\n this.scrollDirection = null;\n this.scrollAdjustments = 0;\n this.elementsCache = /* @__PURE__ */ new Map();\n this.observer = /* @__PURE__ */ (() => {\n let _ro = null;\n const get = () => {\n if (_ro) {\n return _ro;\n }\n if (!this.targetWindow || !this.targetWindow.ResizeObserver) {\n return null;\n }\n return _ro = new this.targetWindow.ResizeObserver((entries) => {\n entries.forEach((entry) => {\n const run = () => {\n this._measureElement(entry.target, entry);\n };\n this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();\n });\n });\n };\n return {\n disconnect: () => {\n var _a;\n (_a = get()) == null ? void 0 : _a.disconnect();\n _ro = null;\n },\n observe: (target) => {\n var _a;\n return (_a = get()) == null ? void 0 : _a.observe(target, { box: \"border-box\" });\n },\n unobserve: (target) => {\n var _a;\n return (_a = get()) == null ? void 0 : _a.unobserve(target);\n }\n };\n })();\n this.range = null;\n this.setOptions = (opts2) => {\n Object.entries(opts2).forEach(([key, value]) => {\n if (typeof value === \"undefined\") delete opts2[key];\n });\n this.options = {\n debug: false,\n initialOffset: 0,\n overscan: 1,\n paddingStart: 0,\n paddingEnd: 0,\n scrollPaddingStart: 0,\n scrollPaddingEnd: 0,\n horizontal: false,\n getItemKey: defaultKeyExtractor,\n rangeExtractor: defaultRangeExtractor,\n onChange: () => {\n },\n measureElement,\n initialRect: { width: 0, height: 0 },\n scrollMargin: 0,\n gap: 0,\n indexAttribute: \"data-index\",\n initialMeasurementsCache: [],\n lanes: 1,\n isScrollingResetDelay: 150,\n enabled: true,\n isRtl: false,\n useScrollendEvent: false,\n useAnimationFrameWithResizeObserver: false,\n ...opts2\n };\n };\n this.notify = (sync) => {\n var _a, _b;\n (_b = (_a = this.options).onChange) == null ? void 0 : _b.call(_a, this, sync);\n };\n this.maybeNotify = memo(\n () => {\n this.calculateRange();\n return [\n this.isScrolling,\n this.range ? this.range.startIndex : null,\n this.range ? this.range.endIndex : null\n ];\n },\n (isScrolling) => {\n this.notify(isScrolling);\n },\n {\n key: process.env.NODE_ENV !== \"production\" && \"maybeNotify\",\n debug: () => this.options.debug,\n initialDeps: [\n this.isScrolling,\n this.range ? this.range.startIndex : null,\n this.range ? this.range.endIndex : null\n ]\n }\n );\n this.cleanup = () => {\n this.unsubs.filter(Boolean).forEach((d) => d());\n this.unsubs = [];\n this.observer.disconnect();\n this.scrollElement = null;\n this.targetWindow = null;\n };\n this._didMount = () => {\n return () => {\n this.cleanup();\n };\n };\n this._willUpdate = () => {\n var _a;\n const scrollElement = this.options.enabled ? this.options.getScrollElement() : null;\n if (this.scrollElement !== scrollElement) {\n this.cleanup();\n if (!scrollElement) {\n this.maybeNotify();\n return;\n }\n this.scrollElement = scrollElement;\n if (this.scrollElement && \"ownerDocument\" in this.scrollElement) {\n this.targetWindow = this.scrollElement.ownerDocument.defaultView;\n } else {\n this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;\n }\n this.elementsCache.forEach((cached) => {\n this.observer.observe(cached);\n });\n this._scrollToOffset(this.getScrollOffset(), {\n adjustments: void 0,\n behavior: void 0\n });\n this.unsubs.push(\n this.options.observeElementRect(this, (rect) => {\n this.scrollRect = rect;\n this.maybeNotify();\n })\n );\n this.unsubs.push(\n this.options.observeElementOffset(this, (offset, isScrolling) => {\n this.scrollAdjustments = 0;\n this.scrollDirection = isScrolling ? this.getScrollOffset() < offset ? \"forward\" : \"backward\" : null;\n this.scrollOffset = offset;\n this.isScrolling = isScrolling;\n this.maybeNotify();\n })\n );\n }\n };\n this.getSize = () => {\n if (!this.options.enabled) {\n this.scrollRect = null;\n return 0;\n }\n this.scrollRect = this.scrollRect ?? this.options.initialRect;\n return this.scrollRect[this.options.horizontal ? \"width\" : \"height\"];\n };\n this.getScrollOffset = () => {\n if (!this.options.enabled) {\n this.scrollOffset = null;\n return 0;\n }\n this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset === \"function\" ? this.options.initialOffset() : this.options.initialOffset);\n return this.scrollOffset;\n };\n this.getFurthestMeasurement = (measurements, index) => {\n const furthestMeasurementsFound = /* @__PURE__ */ new Map();\n const furthestMeasurements = /* @__PURE__ */ new Map();\n for (let m = index - 1; m >= 0; m--) {\n const measurement = measurements[m];\n if (furthestMeasurementsFound.has(measurement.lane)) {\n continue;\n }\n const previousFurthestMeasurement = furthestMeasurements.get(\n measurement.lane\n );\n if (previousFurthestMeasurement == null || measurement.end > previousFurthestMeasurement.end) {\n furthestMeasurements.set(measurement.lane, measurement);\n } else if (measurement.end < previousFurthestMeasurement.end) {\n furthestMeasurementsFound.set(measurement.lane, true);\n }\n if (furthestMeasurementsFound.size === this.options.lanes) {\n break;\n }\n }\n return furthestMeasurements.size === this.options.lanes ? Array.from(furthestMeasurements.values()).sort((a, b) => {\n if (a.end === b.end) {\n return a.index - b.index;\n }\n return a.end - b.end;\n })[0] : void 0;\n };\n this.getMeasurementOptions = memo(\n () => [\n this.options.count,\n this.options.paddingStart,\n this.options.scrollMargin,\n this.options.getItemKey,\n this.options.enabled\n ],\n (count, paddingStart, scrollMargin, getItemKey, enabled) => {\n this.pendingMeasuredCacheIndexes = [];\n return {\n count,\n paddingStart,\n scrollMargin,\n getItemKey,\n enabled\n };\n },\n {\n key: false\n }\n );\n this.getMeasurements = memo(\n () => [this.getMeasurementOptions(), this.itemSizeCache],\n ({ count, paddingStart, scrollMargin, getItemKey, enabled }, itemSizeCache) => {\n if (!enabled) {\n this.measurementsCache = [];\n this.itemSizeCache.clear();\n return [];\n }\n if (this.measurementsCache.length === 0) {\n this.measurementsCache = this.options.initialMeasurementsCache;\n this.measurementsCache.forEach((item) => {\n this.itemSizeCache.set(item.key, item.size);\n });\n }\n const min = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;\n this.pendingMeasuredCacheIndexes = [];\n const measurements = this.measurementsCache.slice(0, min);\n for (let i = min; i < count; i++) {\n const key = getItemKey(i);\n const furthestMeasurement = this.options.lanes === 1 ? measurements[i - 1] : this.getFurthestMeasurement(measurements, i);\n const start = furthestMeasurement ? furthestMeasurement.end + this.options.gap : paddingStart + scrollMargin;\n const measuredSize = itemSizeCache.get(key);\n const size = typeof measuredSize === \"number\" ? measuredSize : this.options.estimateSize(i);\n const end = start + size;\n const lane = furthestMeasurement ? furthestMeasurement.lane : i % this.options.lanes;\n measurements[i] = {\n index: i,\n start,\n size,\n end,\n key,\n lane\n };\n }\n this.measurementsCache = measurements;\n return measurements;\n },\n {\n key: process.env.NODE_ENV !== \"production\" && \"getMeasurements\",\n debug: () => this.options.debug\n }\n );\n this.calculateRange = memo(\n () => [\n this.getMeasurements(),\n this.getSize(),\n this.getScrollOffset(),\n this.options.lanes\n ],\n (measurements, outerSize, scrollOffset, lanes) => {\n return this.range = measurements.length > 0 && outerSize > 0 ? calculateRange({\n measurements,\n outerSize,\n scrollOffset,\n lanes\n }) : null;\n },\n {\n key: process.env.NODE_ENV !== \"production\" && \"calculateRange\",\n debug: () => this.options.debug\n }\n );\n this.getVirtualIndexes = memo(\n () => {\n let startIndex = null;\n let endIndex = null;\n const range = this.calculateRange();\n if (range) {\n startIndex = range.startIndex;\n endIndex = range.endIndex;\n }\n this.maybeNotify.updateDeps([this.isScrolling, startIndex, endIndex]);\n return [\n this.options.rangeExtractor,\n this.options.overscan,\n this.options.count,\n startIndex,\n endIndex\n ];\n },\n (rangeExtractor, overscan, count, startIndex, endIndex) => {\n return startIndex === null || endIndex === null ? [] : rangeExtractor({\n startIndex,\n endIndex,\n overscan,\n count\n });\n },\n {\n key: process.env.NODE_ENV !== \"production\" && \"getVirtualIndexes\",\n debug: () => this.options.debug\n }\n );\n this.indexFromElement = (node) => {\n const attributeName = this.options.indexAttribute;\n const indexStr = node.getAttribute(attributeName);\n if (!indexStr) {\n console.warn(\n `Missing attribute name '${attributeName}={index}' on measured element.`\n );\n return -1;\n }\n return parseInt(indexStr, 10);\n };\n this._measureElement = (node, entry) => {\n const index = this.indexFromElement(node);\n const item = this.measurementsCache[index];\n if (!item) {\n return;\n }\n const key = item.key;\n const prevNode = this.elementsCache.get(key);\n if (prevNode !== node) {\n if (prevNode) {\n this.observer.unobserve(prevNode);\n }\n this.observer.observe(node);\n this.elementsCache.set(key, node);\n }\n if (node.isConnected) {\n this.resizeItem(index, this.options.measureElement(node, entry, this));\n }\n };\n this.resizeItem = (index, size) => {\n const item = this.measurementsCache[index];\n if (!item) {\n return;\n }\n const itemSize = this.itemSizeCache.get(item.key) ?? item.size;\n const delta = size - itemSize;\n if (delta !== 0) {\n if (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(item, delta, this) : item.start < this.getScrollOffset() + this.scrollAdjustments) {\n if (process.env.NODE_ENV !== \"production\" && this.options.debug) {\n console.info(\"correction\", delta);\n }\n this._scrollToOffset(this.getScrollOffset(), {\n adjustments: this.scrollAdjustments += delta,\n behavior: void 0\n });\n }\n this.pendingMeasuredCacheIndexes.push(item.index);\n this.itemSizeCache = new Map(this.itemSizeCache.set(item.key, size));\n this.notify(false);\n }\n };\n this.measureElement = (node) => {\n if (!node) {\n this.elementsCache.forEach((cached, key) => {\n if (!cached.isConnected) {\n this.observer.unobserve(cached);\n this.elementsCache.delete(key);\n }\n });\n return;\n }\n this._measureElement(node, void 0);\n };\n this.getVirtualItems = memo(\n () => [this.getVirtualIndexes(), this.getMeasurements()],\n (indexes, measurements) => {\n const virtualItems = [];\n for (let k = 0, len = indexes.length; k < len; k++) {\n const i = indexes[k];\n const measurement = measurements[i];\n virtualItems.push(measurement);\n }\n return virtualItems;\n },\n {\n key: process.env.NODE_ENV !== \"production\" && \"getVirtualItems\",\n debug: () => this.options.debug\n }\n );\n this.getVirtualItemForOffset = (offset) => {\n const measurements = this.getMeasurements();\n if (measurements.length === 0) {\n return void 0;\n }\n return notUndefined(\n measurements[findNearestBinarySearch(\n 0,\n measurements.length - 1,\n (index) => notUndefined(measurements[index]).start,\n offset\n )]\n );\n };\n this.getOffsetForAlignment = (toOffset, align, itemSize = 0) => {\n const size = this.getSize();\n const scrollOffset = this.getScrollOffset();\n if (align === \"auto\") {\n align = toOffset >= scrollOffset + size ? \"end\" : \"start\";\n }\n if (align === \"center\") {\n toOffset += (itemSize - size) / 2;\n } else if (align === \"end\") {\n toOffset -= size;\n }\n const maxOffset = this.getTotalSize() + this.options.scrollMargin - size;\n return Math.max(Math.min(maxOffset, toOffset), 0);\n };\n this.getOffsetForIndex = (index, align = \"auto\") => {\n index = Math.max(0, Math.min(index, this.options.count - 1));\n const item = this.measurementsCache[index];\n if (!item) {\n return void 0;\n }\n const size = this.getSize();\n const scrollOffset = this.getScrollOffset();\n if (align === \"auto\") {\n if (item.end >= scrollOffset + size - this.options.scrollPaddingEnd) {\n align = \"end\";\n } else if (item.start <= scrollOffset + this.options.scrollPaddingStart) {\n align = \"start\";\n } else {\n return [scrollOffset, align];\n }\n }\n const toOffset = align === \"end\" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;\n return [\n this.getOffsetForAlignment(toOffset, align, item.size),\n align\n ];\n };\n this.isDynamicMode = () => this.elementsCache.size > 0;\n this.scrollToOffset = (toOffset, { align = \"start\", behavior } = {}) => {\n if (behavior === \"smooth\" && this.isDynamicMode()) {\n console.warn(\n \"The `smooth` scroll behavior is not fully supported with dynamic size.\"\n );\n }\n this._scrollToOffset(this.getOffsetForAlignment(toOffset, align), {\n adjustments: void 0,\n behavior\n });\n };\n this.scrollToIndex = (index, { align: initialAlign = \"auto\", behavior } = {}) => {\n if (behavior === \"smooth\" && this.isDynamicMode()) {\n console.warn(\n \"The `smooth` scroll behavior is not fully supported with dynamic size.\"\n );\n }\n index = Math.max(0, Math.min(index, this.options.count - 1));\n let attempts = 0;\n const maxAttempts = 10;\n const tryScroll = (currentAlign) => {\n if (!this.targetWindow) return;\n const offsetInfo = this.getOffsetForIndex(index, currentAlign);\n if (!offsetInfo) {\n console.warn(\"Failed to get offset for index:\", index);\n return;\n }\n const [offset, align] = offsetInfo;\n this._scrollToOffset(offset, { adjustments: void 0, behavior });\n this.targetWindow.requestAnimationFrame(() => {\n const currentOffset = this.getScrollOffset();\n const afterInfo = this.getOffsetForIndex(index, align);\n if (!afterInfo) {\n console.warn(\"Failed to get offset for index:\", index);\n return;\n }\n if (!approxEqual(afterInfo[0], currentOffset)) {\n scheduleRetry(align);\n }\n });\n };\n const scheduleRetry = (align) => {\n if (!this.targetWindow) return;\n attempts++;\n if (attempts < maxAttempts) {\n if (process.env.NODE_ENV !== \"production\" && this.options.debug) {\n console.info(\"Schedule retry\", attempts, maxAttempts);\n }\n this.targetWindow.requestAnimationFrame(() => tryScroll(align));\n } else {\n console.warn(\n `Failed to scroll to index ${index} after ${maxAttempts} attempts.`\n );\n }\n };\n tryScroll(initialAlign);\n };\n this.scrollBy = (delta, { behavior } = {}) => {\n if (behavior === \"smooth\" && this.isDynamicMode()) {\n console.warn(\n \"The `smooth` scroll behavior is not fully supported with dynamic size.\"\n );\n }\n this._scrollToOffset(this.getScrollOffset() + delta, {\n adjustments: void 0,\n behavior\n });\n };\n this.getTotalSize = () => {\n var _a;\n const measurements = this.getMeasurements();\n let end;\n if (measurements.length === 0) {\n end = this.options.paddingStart;\n } else if (this.options.lanes === 1) {\n end = ((_a = measurements[measurements.length - 1]) == null ? void 0 : _a.end) ?? 0;\n } else {\n const endByLane = Array(this.options.lanes).fill(null);\n let endIndex = measurements.length - 1;\n while (endIndex >= 0 && endByLane.some((val) => val === null)) {\n const item = measurements[endIndex];\n if (endByLane[item.lane] === null) {\n endByLane[item.lane] = item.end;\n }\n endIndex--;\n }\n end = Math.max(...endByLane.filter((val) => val !== null));\n }\n return Math.max(\n end - this.options.scrollMargin + this.options.paddingEnd,\n 0\n );\n };\n this._scrollToOffset = (offset, {\n adjustments,\n behavior\n }) => {\n this.options.scrollToFn(offset, { behavior, adjustments }, this);\n };\n this.measure = () => {\n this.itemSizeCache = /* @__PURE__ */ new Map();\n this.notify(false);\n };\n this.setOptions(opts);\n }\n}\nconst findNearestBinarySearch = (low, high, getCurrentValue, value) => {\n while (low <= high) {\n const middle = (low + high) / 2 | 0;\n const currentValue = getCurrentValue(middle);\n if (currentValue < value) {\n low = middle + 1;\n } else if (currentValue > value) {\n high = middle - 1;\n } else {\n return middle;\n }\n }\n if (low > 0) {\n return low - 1;\n } else {\n return 0;\n }\n};\nfunction calculateRange({\n measurements,\n outerSize,\n scrollOffset,\n lanes\n}) {\n const lastIndex = measurements.length - 1;\n const getOffset = (index) => measurements[index].start;\n if (measurements.length <= lanes) {\n return {\n startIndex: 0,\n endIndex: lastIndex\n };\n }\n let startIndex = findNearestBinarySearch(\n 0,\n lastIndex,\n getOffset,\n scrollOffset\n );\n let endIndex = startIndex;\n if (lanes === 1) {\n while (endIndex < lastIndex && measurements[endIndex].end < scrollOffset + outerSize) {\n endIndex++;\n }\n } else if (lanes > 1) {\n const endPerLane = Array(lanes).fill(0);\n while (endIndex < lastIndex && endPerLane.some((pos) => pos < scrollOffset + outerSize)) {\n const item = measurements[endIndex];\n endPerLane[item.lane] = item.end;\n endIndex++;\n }\n const startPerLane = Array(lanes).fill(scrollOffset + outerSize);\n while (startIndex >= 0 && startPerLane.some((pos) => pos >= scrollOffset)) {\n const item = measurements[startIndex];\n startPerLane[item.lane] = item.start;\n startIndex--;\n }\n startIndex = Math.max(0, startIndex - startIndex % lanes);\n endIndex = Math.min(lastIndex, endIndex + (lanes - 1 - endIndex % lanes));\n }\n return { startIndex, endIndex };\n}\nexport {\n Virtualizer,\n approxEqual,\n debounce,\n defaultKeyExtractor,\n defaultRangeExtractor,\n elementScroll,\n measureElement,\n memo,\n notUndefined,\n observeElementOffset,\n observeElementRect,\n observeWindowOffset,\n observeWindowRect,\n windowScroll\n};\n//# sourceMappingURL=index.js.map\n"],"names":["getRect","element","offsetWidth","offsetHeight","defaultKeyExtractor","index","defaultRangeExtractor","range","start","end","arr","i","observeElementRect","instance","cb","targetWindow","handler","rect","width","height","observer","entries","run","entry","box","addEventListenerOptions","supportsScrollend","observeElementOffset","offset","fallback","debounce","createHandler","isScrolling","horizontal","isRtl","endHandler","registerScrollendEvent","measureElement","elementScroll","adjustments","behavior","_a","_b","toOffset","Virtualizer","opts","_ro","get","target","opts2","key","value","sync","memo","d","scrollElement","cached","measurements","furthestMeasurementsFound","furthestMeasurements","m","measurement","previousFurthestMeasurement","a","b","count","paddingStart","scrollMargin","getItemKey","enabled","itemSizeCache","item","min","furthestMeasurement","measuredSize","size","lane","outerSize","scrollOffset","lanes","calculateRange","startIndex","endIndex","rangeExtractor","overscan","node","attributeName","indexStr","prevNode","itemSize","delta","indexes","virtualItems","k","len","notUndefined","findNearestBinarySearch","align","maxOffset","initialAlign","attempts","maxAttempts","tryScroll","currentAlign","offsetInfo","currentOffset","afterInfo","approxEqual","scheduleRetry","endByLane","val","low","high","getCurrentValue","middle","currentValue","lastIndex","getOffset","endPerLane","pos","startPerLane"],"mappings":"mFACA,MAAMA,EAAWC,GAAY,CAC3B,KAAM,CAAE,YAAAC,EAAa,aAAAC,CAAA,EAAiBF,EACtC,MAAO,CAAE,MAAOC,EAAa,OAAQC,CAAA,CACvC,EACMC,EAAuBC,GAAUA,EACjCC,EAAyBC,GAAU,CACvC,MAAMC,EAAQ,KAAK,IAAID,EAAM,WAAaA,EAAM,SAAU,CAAC,EACrDE,EAAM,KAAK,IAAIF,EAAM,SAAWA,EAAM,SAAUA,EAAM,MAAQ,CAAC,EAC/DG,EAAM,CAAA,EACZ,QAASC,EAAIH,EAAOG,GAAKF,EAAKE,IAC5BD,EAAI,KAAKC,CAAC,EAEZ,OAAOD,CACT,EACME,EAAqB,CAACC,EAAUC,IAAO,CAC3C,MAAMb,EAAUY,EAAS,cACzB,GAAI,CAACZ,EACH,OAEF,MAAMc,EAAeF,EAAS,aAC9B,GAAI,CAACE,EACH,OAEF,MAAMC,EAAWC,GAAS,CACxB,KAAM,CAAE,MAAAC,EAAO,OAAAC,CAAA,EAAWF,EAC1BH,EAAG,CAAE,MAAO,KAAK,MAAMI,CAAK,EAAG,OAAQ,KAAK,MAAMC,CAAM,CAAA,CAAG,CAC7D,EAEA,GADAH,EAAQhB,EAAQC,CAAO,CAAC,EACpB,CAACc,EAAa,eAChB,MAAO,IAAM,CACb,EAEF,MAAMK,EAAW,IAAIL,EAAa,eAAgBM,GAAY,CAC5D,MAAMC,EAAM,IAAM,CAChB,MAAMC,EAAQF,EAAQ,CAAC,EACvB,GAAIE,GAAS,MAAgBA,EAAM,cAAe,CAChD,MAAMC,EAAMD,EAAM,cAAc,CAAC,EACjC,GAAIC,EAAK,CACPR,EAAQ,C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AawB,CAAU,EACpCuC,EAAajD,EAAK,IAAI,EAAIA,EAAK,MAC/BU,GACF,CACAA,EAAa,KAAK,IAAI,EAAGA,EAAaA,EAAaF,CAAK,EACxDG,EAAW,KAAK,IAAIkC,EAAWlC,GAAYH,EAAQ,EAAIG,EAAWH,EAAM,CAC1E,CACA,MAAO,CAAE,WAAAE,EAAY,SAAAC,CAAA,CACvB","x_google_ignoreList":[0]}
@@ -1,5 +0,0 @@
1
- function T(n,i,e){let l=e.initialDeps??[],t;function r(){var o,m,h,f;let g;e.key&&((o=e.debug)!=null&&o.call(e))&&(g=Date.now());const u=n();if(!(u.length!==l.length||u.some((c,a)=>l[a]!==c)))return t;l=u;let s;if(e.key&&((m=e.debug)!=null&&m.call(e))&&(s=Date.now()),t=i(...u),e.key&&((h=e.debug)!=null&&h.call(e))){const c=Math.round((Date.now()-g)*100)/100,a=Math.round((Date.now()-s)*100)/100,b=a/16,w=(d,v)=>{for(d=String(d);d.length<v;)d=" "+d;return d};console.info(`%c⏱ ${w(a,5)} /${w(c,5)} ms`,`
2
- font-size: .6rem;
3
- font-weight: bold;
4
- color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(f=e==null?void 0:e.onChange)==null||f.call(e,t),t}return r.updateDeps=o=>{l=o},r}function y(n,i){if(n===void 0)throw new Error("Unexpected undefined");return n}const M=(n,i)=>Math.abs(n-i)<1.01,k=(n,i,e)=>{let l;return function(...t){n.clearTimeout(l),l=n.setTimeout(()=>i.apply(this,t),e)}};export{M as approxEqual,k as debounce,T as memo,y as notUndefined};
5
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../../node_modules/@tanstack/virtual-core/dist/esm/utils.js"],"sourcesContent":["function memo(getDeps, fn, opts) {\n let deps = opts.initialDeps ?? [];\n let result;\n function memoizedFunction() {\n var _a, _b, _c, _d;\n let depTime;\n if (opts.key && ((_a = opts.debug) == null ? void 0 : _a.call(opts))) depTime = Date.now();\n const newDeps = getDeps();\n const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);\n if (!depsChanged) {\n return result;\n }\n deps = newDeps;\n let resultTime;\n if (opts.key && ((_b = opts.debug) == null ? void 0 : _b.call(opts))) resultTime = Date.now();\n result = fn(...newDeps);\n if (opts.key && ((_c = opts.debug) == null ? void 0 : _c.call(opts))) {\n const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;\n const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;\n const resultFpsPercentage = resultEndTime / 16;\n const pad = (str, num) => {\n str = String(str);\n while (str.length < num) {\n str = \" \" + str;\n }\n return str;\n };\n console.info(\n `%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`,\n `\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(\n 0,\n Math.min(120 - 120 * resultFpsPercentage, 120)\n )}deg 100% 31%);`,\n opts == null ? void 0 : opts.key\n );\n }\n (_d = opts == null ? void 0 : opts.onChange) == null ? void 0 : _d.call(opts, result);\n return result;\n }\n memoizedFunction.updateDeps = (newDeps) => {\n deps = newDeps;\n };\n return memoizedFunction;\n}\nfunction notUndefined(value, msg) {\n if (value === void 0) {\n throw new Error(`Unexpected undefined${msg ? `: ${msg}` : \"\"}`);\n } else {\n return value;\n }\n}\nconst approxEqual = (a, b) => Math.abs(a - b) < 1.01;\nconst debounce = (targetWindow, fn, ms) => {\n let timeoutId;\n return function(...args) {\n targetWindow.clearTimeout(timeoutId);\n timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);\n };\n};\nexport {\n approxEqual,\n debounce,\n memo,\n notUndefined\n};\n//# sourceMappingURL=utils.js.map\n"],"names":["memo","getDeps","fn","opts","deps","result","memoizedFunction","_a","_b","_c","_d","depTime","newDeps","dep","index","resultTime","depEndTime","resultEndTime","resultFpsPercentage","pad","str","num","notUndefined","value","msg","approxEqual","a","b","debounce","targetWindow","ms","timeoutId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A,OAAAC,EAAiB,WAAcM,GAAY,CACzCR,EAAOQ,CACT,EACON,CACT,CACA,SAASgB,EAAaC,EAAOC,EAAK,CAChC,GAAID,IAAU,OACZ,MAAM,IAAI,MAAM,sBAA8C,EAE9D,OAAOA,CAEX,CACK,MAACE,EAAc,CAACC,EAAGC,IAAM,KAAK,IAAID,EAAIC,CAAC,EAAI,KAC1CC,EAAW,CAACC,EAAc3B,EAAI4B,IAAO,CACzC,IAAIC,EACJ,OAAO,YAAYC,EAAM,CACvBH,EAAa,aAAaE,CAAS,EACnCA,EAAYF,EAAa,WAAW,IAAM3B,EAAG,MAAM,KAAM8B,CAAI,EAAGF,CAAE,CACpE,CACF","x_google_ignoreList":[0]}
@@ -1,10 +0,0 @@
1
- import{__exports as V}from"../../../_virtual/use-sync-external-store-with-selector.production.js";import _ from"react";/**
2
- * @license React
3
- * use-sync-external-store-with-selector.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var t=_;function j(u,r){return u===r&&(u!==0||1/u===1/r)||u!==u&&r!==r}var y=typeof Object.is=="function"?Object.is:j,z=t.useSyncExternalStore,M=t.useRef,D=t.useEffect,E=t.useMemo,O=t.useDebugValue;V.useSyncExternalStoreWithSelector=function(u,r,v,m,o){var f=M(null);if(f.current===null){var l={hasValue:!1,value:null};f.current=l}else l=f.current;f=E(function(){function d(e){if(!s){if(s=!0,c=e,e=m(e),o!==void 0&&l.hasValue){var a=l.value;if(o(a,e))return n=a}return n=e}if(a=n,y(c,e))return a;var R=m(e);return o!==void 0&&o(a,R)?(c=e,a):(c=e,n=R)}var s=!1,c,n,b=v===void 0?null:v;return[function(){return d(r())},b===null?void 0:function(){return d(b())}]},[r,v,m,o]);var i=z(u,f[0],f[1]);return D(function(){l.hasValue=!0,l.value=i},[i]),O(i),i};export{V as default};
10
- //# sourceMappingURL=use-sync-external-store-with-selector.production.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-sync-external-store-with-selector.production.js","sources":["../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = React.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n"],"names":["React","require$$0","is","x","y","objectIs","useSyncExternalStore","useRef","useEffect","useMemo","useDebugValue","useSyncExternalStoreWithSelector_production","subscribe","getSnapshot","getServerSnapshot","selector","isEqual","instRef","inst","memoizedSelector","nextSnapshot","hasMemo","memoizedSnapshot","currentSelection","memoizedSelection","nextSelection","maybeGetServerSnapshot","value"],"mappings":";;;;;;;;GAWA,IAAIA,EAAQC,EACZ,SAASC,EAAGC,EAAGC,EAAG,CAChB,OAAQD,IAAMC,IAAYD,IAAN,GAAW,EAAIA,IAAM,EAAIC,IAAQD,IAAMA,GAAKC,IAAMA,CACxE,CACA,IAAIC,EAA0B,OAAO,OAAO,IAA7B,WAAkC,OAAO,GAAKH,EAC3DI,EAAuBN,EAAM,qBAC7BO,EAASP,EAAM,OACfQ,EAAYR,EAAM,UAClBS,EAAUT,EAAM,QAChBU,EAAgBV,EAAM,cACxBW,EAAA,iCAA2C,SACzCC,EACAC,EACAC,EACAC,EACAC,EACA,CACA,IAAIC,EAAUV,EAAO,IAAI,EACzB,GAAaU,EAAQ,UAAjB,KAA0B,CAC5B,IAAIC,EAAO,CAAE,SAAU,GAAI,MAAO,IAAI,EACtCD,EAAQ,QAAUC,CACtB,MAASA,EAAOD,EAAQ,QACtBA,EAAUR,EACR,UAAY,CACV,SAASU,EAAiBC,EAAc,CACtC,GAAI,CAACC,EAAS,CAIZ,GAHAA,EAAU,GACVC,EAAmBF,EACnBA,EAAeL,EAASK,CAAY,EACrBJ,IAAX,QAAsBE,EAAK,SAAU,CACvC,IAAIK,EAAmBL,EAAK,MAC5B,GAAIF,EAAQO,EAAkBH,CAAY,EACxC,OAAQI,EAAoBD,CAC1C,CACU,OAAQC,EAAoBJ,CACtC,CAEQ,GADAG,EAAmBC,EACfnB,EAASiB,EAAkBF,CAAY,EAAG,OAAOG,EACrD,IAAIE,EAAgBV,EAASK,CAAY,EACzC,OAAeJ,IAAX,QAAsBA,EAAQO,EAAkBE,CAAa,GACvDH,EAAmBF,EAAeG,IAC5CD,EAAmBF,EACXI,EAAoBC,EACpC,CACM,IAAIJ,EAAU,GACZC,EACAE,EACAE,EACaZ,IAAX,OAA+B,KAAOA,EAC1C,MAAO,CACL,UAAY,CACV,OAAOK,EAAiBN,GAAa,CAC/C,EACiBa,IAAT,KACI,OACA,UAAY,CACV,OAAOP,EAAiBO,GAAwB,CAC9D,CACA,CACA,EACI,CAACb,EAAaC,EAAmBC,EAAUC,CAAO,CACtD,EACE,IAAIW,EAAQrB,EAAqBM,EAAWK,EAAQ,CAAC,EAAGA,EAAQ,CAAC,CAAC,EAClE,OAAAT,EACE,UAAY,CACVU,EAAK,SAAW,GAChBA,EAAK,MAAQS,CACnB,EACI,CAACA,CAAK,CACV,EACEjB,EAAciB,CAAK,EACZA,CACT","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{__module as o}from"../../_virtual/with-selector.js";import"./cjs/use-sync-external-store-with-selector.production.js";import{__exports as r}from"../../_virtual/use-sync-external-store-with-selector.production.js";o.exports=r;var s=o.exports;export{s as w};
2
- //# sourceMappingURL=with-selector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.js","sources":["../../../node_modules/use-sync-external-store/with-selector.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/use-sync-external-store-with-selector.production.js');\n} else {\n module.exports = require('./cjs/use-sync-external-store-with-selector.development.js');\n}\n"],"names":["withSelectorModule","require$$0"],"mappings":"4NAGEA,EAAA,QAAiBC","x_google_ignoreList":[0]}