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tooltip/dist/useTooltipTriggerState.mjs","webpack://_N_E/./node_modules/@react-aria/tooltip/dist/useTooltipTrigger.mjs","webpack://_N_E/./node_modules/@react-aria/tooltip/dist/useTooltip.mjs","webpack://_N_E/./node_modules/@nextui-org/tooltip/dist/chunk-G6TJXAS5.mjs","webpack://_N_E/./node_modules/@nextui-org/tooltip/dist/chunk-LY4WDGUU.mjs","webpack://_N_E/./node_modules/@react-aria/overlays/dist/useModal.mjs"],"sourcesContent":["import {useMemo as $50cCT$useMemo, useRef as $50cCT$useRef, useEffect as $50cCT$useEffect} from \"react\";\nimport {useOverlayTriggerState as $50cCT$useOverlayTriggerState} from \"@react-stately/overlays\";\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\nconst $8796f90736e175cb$var$TOOLTIP_DELAY = 1500; // this seems to be a 1.5 second delay, check with design\nconst $8796f90736e175cb$var$TOOLTIP_COOLDOWN = 500;\nlet $8796f90736e175cb$var$tooltips = {};\nlet $8796f90736e175cb$var$tooltipId = 0;\nlet $8796f90736e175cb$var$globalWarmedUp = false;\nlet $8796f90736e175cb$var$globalWarmUpTimeout = null;\nlet $8796f90736e175cb$var$globalCooldownTimeout = null;\nfunction $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {\n let { delay: delay = $8796f90736e175cb$var$TOOLTIP_DELAY, closeDelay: closeDelay = $8796f90736e175cb$var$TOOLTIP_COOLDOWN } = props;\n let { isOpen: isOpen, open: open, close: close } = (0, $50cCT$useOverlayTriggerState)(props);\n let id = (0, $50cCT$useMemo)(()=>`${++$8796f90736e175cb$var$tooltipId}`, []);\n let closeTimeout = (0, $50cCT$useRef)(null);\n let closeCallback = (0, $50cCT$useRef)(close);\n let ensureTooltipEntry = ()=>{\n $8796f90736e175cb$var$tooltips[id] = hideTooltip;\n };\n let closeOpenTooltips = ()=>{\n for(let hideTooltipId in $8796f90736e175cb$var$tooltips)if (hideTooltipId !== id) {\n $8796f90736e175cb$var$tooltips[hideTooltipId](true);\n delete $8796f90736e175cb$var$tooltips[hideTooltipId];\n }\n };\n let showTooltip = ()=>{\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n closeTimeout.current = null;\n closeOpenTooltips();\n ensureTooltipEntry();\n $8796f90736e175cb$var$globalWarmedUp = true;\n open();\n if ($8796f90736e175cb$var$globalWarmUpTimeout) {\n clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n }\n if ($8796f90736e175cb$var$globalCooldownTimeout) {\n clearTimeout($8796f90736e175cb$var$globalCooldownTimeout);\n $8796f90736e175cb$var$globalCooldownTimeout = null;\n }\n };\n let hideTooltip = (immediate)=>{\n if (immediate || closeDelay <= 0) {\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n closeTimeout.current = null;\n closeCallback.current();\n } else if (!closeTimeout.current) closeTimeout.current = setTimeout(()=>{\n closeTimeout.current = null;\n closeCallback.current();\n }, closeDelay);\n if ($8796f90736e175cb$var$globalWarmUpTimeout) {\n clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n }\n if ($8796f90736e175cb$var$globalWarmedUp) {\n if ($8796f90736e175cb$var$globalCooldownTimeout) clearTimeout($8796f90736e175cb$var$globalCooldownTimeout);\n $8796f90736e175cb$var$globalCooldownTimeout = setTimeout(()=>{\n delete $8796f90736e175cb$var$tooltips[id];\n $8796f90736e175cb$var$globalCooldownTimeout = null;\n $8796f90736e175cb$var$globalWarmedUp = false;\n }, Math.max($8796f90736e175cb$var$TOOLTIP_COOLDOWN, closeDelay));\n }\n };\n let warmupTooltip = ()=>{\n closeOpenTooltips();\n ensureTooltipEntry();\n if (!isOpen && !$8796f90736e175cb$var$globalWarmUpTimeout && !$8796f90736e175cb$var$globalWarmedUp) $8796f90736e175cb$var$globalWarmUpTimeout = setTimeout(()=>{\n $8796f90736e175cb$var$globalWarmUpTimeout = null;\n $8796f90736e175cb$var$globalWarmedUp = true;\n showTooltip();\n }, delay);\n else if (!isOpen) showTooltip();\n };\n (0, $50cCT$useEffect)(()=>{\n closeCallback.current = close;\n }, [\n close\n ]);\n (0, $50cCT$useEffect)(()=>{\n return ()=>{\n if (closeTimeout.current) clearTimeout(closeTimeout.current);\n let tooltip = $8796f90736e175cb$var$tooltips[id];\n if (tooltip) delete $8796f90736e175cb$var$tooltips[id];\n };\n }, [\n id\n ]);\n return {\n isOpen: isOpen,\n open: (immediate)=>{\n if (!immediate && delay > 0 && !closeTimeout.current) warmupTooltip();\n else showTooltip();\n },\n close: hideTooltip\n };\n}\n\n\nexport {$8796f90736e175cb$export$4d40659c25ecb50b as useTooltipTriggerState};\n//# sourceMappingURL=useTooltipTriggerState.module.js.map\n","import {getInteractionModality as $6VwSn$getInteractionModality, isFocusVisible as $6VwSn$isFocusVisible, useHover as $6VwSn$useHover} from \"@react-aria/interactions\";\nimport {useId as $6VwSn$useId, mergeProps as $6VwSn$mergeProps} from \"@react-aria/utils\";\nimport {useRef as $6VwSn$useRef, useEffect as $6VwSn$useEffect} from \"react\";\nimport {useFocusable as $6VwSn$useFocusable} from \"@react-aria/focus\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {\n let { isDisabled: isDisabled, trigger: trigger } = props;\n let tooltipId = (0, $6VwSn$useId)();\n let isHovered = (0, $6VwSn$useRef)(false);\n let isFocused = (0, $6VwSn$useRef)(false);\n let handleShow = ()=>{\n if (isHovered.current || isFocused.current) state.open(isFocused.current);\n };\n let handleHide = (immediate)=>{\n if (!isHovered.current && !isFocused.current) state.close(immediate);\n };\n (0, $6VwSn$useEffect)(()=>{\n let onKeyDown = (e)=>{\n if (ref && ref.current) // Escape after clicking something can give it keyboard focus\n // dismiss tooltip on esc key press\n {\n if (e.key === 'Escape') {\n e.stopPropagation();\n state.close(true);\n }\n }\n };\n if (state.isOpen) {\n document.addEventListener('keydown', onKeyDown, true);\n return ()=>{\n document.removeEventListener('keydown', onKeyDown, true);\n };\n }\n }, [\n ref,\n state\n ]);\n let onHoverStart = ()=>{\n if (trigger === 'focus') return;\n // In chrome, if you hover a trigger, then another element obscures it, due to keyboard\n // interactions for example, hover will end. When hover is restored after that element disappears,\n // focus moves on for example, then the tooltip will reopen. We check the modality to know if the hover\n // is the result of moving the mouse.\n if ((0, $6VwSn$getInteractionModality)() === 'pointer') isHovered.current = true;\n else isHovered.current = false;\n handleShow();\n };\n let onHoverEnd = ()=>{\n if (trigger === 'focus') return;\n // no matter how the trigger is left, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide();\n };\n let onPressStart = ()=>{\n // no matter how the trigger is pressed, we should close the tooltip\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let onFocus = ()=>{\n let isVisible = (0, $6VwSn$isFocusVisible)();\n if (isVisible) {\n isFocused.current = true;\n handleShow();\n }\n };\n let onBlur = ()=>{\n isFocused.current = false;\n isHovered.current = false;\n handleHide(true);\n };\n let { hoverProps: hoverProps } = (0, $6VwSn$useHover)({\n isDisabled: isDisabled,\n onHoverStart: onHoverStart,\n onHoverEnd: onHoverEnd\n });\n let { focusableProps: focusableProps } = (0, $6VwSn$useFocusable)({\n isDisabled: isDisabled,\n onFocus: onFocus,\n onBlur: onBlur\n }, ref);\n return {\n triggerProps: {\n 'aria-describedby': state.isOpen ? tooltipId : undefined,\n ...(0, $6VwSn$mergeProps)(focusableProps, hoverProps, {\n onPointerDown: onPressStart,\n onKeyDown: onPressStart\n })\n },\n tooltipProps: {\n id: tooltipId\n }\n };\n}\n\n\nexport {$4e1b34546679e357$export$a6da6c504e4bba8b as useTooltipTrigger};\n//# sourceMappingURL=useTooltipTrigger.module.js.map\n","import {filterDOMProps as $kwmr2$filterDOMProps, mergeProps as $kwmr2$mergeProps} from \"@react-aria/utils\";\nimport {useHover as $kwmr2$useHover} from \"@react-aria/interactions\";\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 $326e436e94273fe1$export$1c4b08e0eca38426(props, state) {\n let domProps = (0, $kwmr2$filterDOMProps)(props, {\n labelable: true\n });\n let { hoverProps: hoverProps } = (0, $kwmr2$useHover)({\n onHoverStart: ()=>state === null || state === void 0 ? void 0 : state.open(true),\n onHoverEnd: ()=>state === null || state === void 0 ? void 0 : state.close()\n });\n return {\n tooltipProps: (0, $kwmr2$mergeProps)(domProps, hoverProps, {\n role: 'tooltip'\n })\n };\n}\n\n\nexport {$326e436e94273fe1$export$1c4b08e0eca38426 as useTooltip};\n//# sourceMappingURL=useTooltip.module.js.map\n","\"use client\";\n\n// src/use-tooltip.ts\nimport { useId, useImperativeHandle } from \"react\";\nimport { useTooltipTriggerState } from \"@react-stately/tooltip\";\nimport { mergeProps } from \"@react-aria/utils\";\nimport { useTooltip as useReactAriaTooltip, useTooltipTrigger } from \"@react-aria/tooltip\";\nimport { useOverlayPosition, useOverlay } from \"@react-aria/overlays\";\nimport {\n mapPropsVariants,\n useProviderContext\n} from \"@nextui-org/system\";\nimport { popover } from \"@nextui-org/theme\";\nimport { clsx, dataAttr, objectToDeps } from \"@nextui-org/shared-utils\";\nimport { mergeRefs } from \"@nextui-org/react-utils\";\nimport { createDOMRef } from \"@nextui-org/react-utils\";\nimport { useMemo, useRef, useCallback } from \"react\";\nimport { toReactAriaPlacement, getArrowPlacement } from \"@nextui-org/aria-utils\";\nimport { useSafeLayoutEffect } from \"@nextui-org/use-safe-layout-effect\";\nfunction useTooltip(originalProps) {\n var _a, _b;\n const globalContext = useProviderContext();\n const [props, variantProps] = mapPropsVariants(originalProps, popover.variantKeys);\n const {\n ref,\n as,\n isOpen: isOpenProp,\n content,\n children,\n defaultOpen,\n onOpenChange,\n isDisabled,\n trigger: triggerAction,\n shouldFlip = true,\n containerPadding = 12,\n placement: placementProp = \"top\",\n delay = 0,\n closeDelay = 500,\n showArrow = false,\n offset = 7,\n crossOffset = 0,\n isDismissable,\n shouldCloseOnBlur = true,\n portalContainer,\n isKeyboardDismissDisabled = false,\n updatePositionDeps = [],\n shouldCloseOnInteractOutside,\n className,\n onClose,\n motionProps,\n classNames,\n ...otherProps\n } = props;\n const Component = as || \"div\";\n const disableAnimation = (_b = (_a = originalProps == null ? void 0 : originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;\n const state = useTooltipTriggerState({\n delay,\n closeDelay,\n isDisabled,\n defaultOpen,\n isOpen: isOpenProp,\n onOpenChange: (isOpen2) => {\n onOpenChange == null ? void 0 : onOpenChange(isOpen2);\n if (!isOpen2) {\n onClose == null ? void 0 : onClose();\n }\n }\n });\n const triggerRef = useRef(null);\n const overlayRef = useRef(null);\n const tooltipId = useId();\n const isOpen = state.isOpen && !isDisabled;\n useImperativeHandle(\n ref,\n () => createDOMRef(overlayRef)\n );\n const { triggerProps, tooltipProps: triggerTooltipProps } = useTooltipTrigger(\n {\n isDisabled,\n trigger: triggerAction\n },\n state,\n triggerRef\n );\n const { tooltipProps } = useReactAriaTooltip(\n {\n isOpen,\n ...mergeProps(props, triggerTooltipProps)\n },\n state\n );\n const {\n overlayProps: positionProps,\n placement,\n updatePosition\n } = useOverlayPosition({\n isOpen,\n targetRef: triggerRef,\n placement: toReactAriaPlacement(placementProp),\n overlayRef,\n offset: showArrow ? offset + 3 : offset,\n crossOffset,\n shouldFlip,\n containerPadding\n });\n useSafeLayoutEffect(() => {\n if (!updatePositionDeps.length)\n return;\n updatePosition();\n }, updatePositionDeps);\n const { overlayProps } = useOverlay(\n {\n isOpen,\n onClose: state.close,\n isDismissable,\n shouldCloseOnBlur,\n isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside\n },\n overlayRef\n );\n const slots = useMemo(\n () => {\n var _a2, _b2, _c;\n return popover({\n ...variantProps,\n disableAnimation,\n radius: (_a2 = originalProps == null ? void 0 : originalProps.radius) != null ? _a2 : \"md\",\n size: (_b2 = originalProps == null ? void 0 : originalProps.size) != null ? _b2 : \"md\",\n shadow: (_c = originalProps == null ? void 0 : originalProps.shadow) != null ? _c : \"sm\"\n });\n },\n [\n objectToDeps(variantProps),\n disableAnimation,\n originalProps == null ? void 0 : originalProps.radius,\n originalProps == null ? void 0 : originalProps.size,\n originalProps == null ? void 0 : originalProps.shadow\n ]\n );\n const getTriggerProps = useCallback(\n (props2 = {}, _ref = null) => ({\n ...mergeProps(triggerProps, props2),\n ref: mergeRefs(_ref, triggerRef),\n \"aria-describedby\": isOpen ? tooltipId : void 0\n }),\n [triggerProps, isOpen, tooltipId, state]\n );\n const getTooltipProps = useCallback(\n () => ({\n ref: overlayRef,\n \"data-slot\": \"base\",\n \"data-open\": dataAttr(isOpen),\n \"data-arrow\": dataAttr(showArrow),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-placement\": getArrowPlacement(placement || \"top\", placementProp),\n ...mergeProps(tooltipProps, overlayProps, otherProps),\n style: mergeProps(positionProps.style, otherProps.style, props.style),\n className: slots.base({ class: classNames == null ? void 0 : classNames.base }),\n id: tooltipId\n }),\n [\n slots,\n isOpen,\n showArrow,\n isDisabled,\n placement,\n placementProp,\n tooltipProps,\n overlayProps,\n otherProps,\n positionProps,\n props,\n tooltipId\n ]\n );\n const getTooltipContentProps = useCallback(\n () => ({\n \"data-slot\": \"content\",\n \"data-open\": dataAttr(isOpen),\n \"data-arrow\": dataAttr(showArrow),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-placement\": getArrowPlacement(placement || \"top\", placementProp),\n className: slots.content({ class: clsx(classNames == null ? void 0 : classNames.content, className) })\n }),\n [slots, isOpen, showArrow, isDisabled, placement, placementProp, classNames]\n );\n return {\n Component,\n content,\n children,\n isOpen,\n triggerRef,\n showArrow,\n portalContainer,\n placement: placementProp,\n disableAnimation,\n isDisabled,\n motionProps,\n getTooltipContentProps,\n getTriggerProps,\n getTooltipProps\n };\n}\n\nexport {\n useTooltip\n};\n","\"use client\";\nimport {\n useTooltip\n} from \"./chunk-G6TJXAS5.mjs\";\n\n// src/tooltip.tsx\nimport { forwardRef } from \"@nextui-org/system\";\nimport { OverlayContainer } from \"@react-aria/overlays\";\nimport { AnimatePresence, m, LazyMotion } from \"framer-motion\";\nimport { TRANSITION_VARIANTS } from \"@nextui-org/framer-utils\";\nimport { warn } from \"@nextui-org/shared-utils\";\nimport { Children, cloneElement, isValidElement } from \"react\";\nimport { getTransformOrigins } from \"@nextui-org/aria-utils\";\nimport { mergeProps } from \"@react-aria/utils\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar domAnimation = () => import(\"@nextui-org/dom-animation\").then((res) => res.default);\nvar Tooltip = forwardRef((props, ref) => {\n const {\n Component,\n children,\n content,\n isOpen,\n portalContainer,\n placement,\n disableAnimation,\n motionProps,\n getTriggerProps,\n getTooltipProps,\n getTooltipContentProps\n } = useTooltip({\n ...props,\n ref\n });\n let trigger;\n try {\n const childrenNum = Children.count(children);\n if (childrenNum !== 1)\n throw new Error();\n if (!isValidElement(children)) {\n trigger = /* @__PURE__ */ jsx(\"p\", { ...getTriggerProps(), children });\n } else {\n const child = children;\n trigger = cloneElement(child, getTriggerProps(child.props, child.ref));\n }\n } catch (error) {\n trigger = /* @__PURE__ */ jsx(\"span\", {});\n warn(\"Tooltip must have only one child node. Please, check your code.\");\n }\n const { ref: tooltipRef, id, style, ...otherTooltipProps } = getTooltipProps();\n const animatedContent = /* @__PURE__ */ jsx(\"div\", { ref: tooltipRef, id, style, children: /* @__PURE__ */ jsx(LazyMotion, { features: domAnimation, children: /* @__PURE__ */ jsx(\n m.div,\n {\n animate: \"enter\",\n exit: \"exit\",\n initial: \"exit\",\n variants: TRANSITION_VARIANTS.scaleSpring,\n ...mergeProps(motionProps, otherTooltipProps),\n style: {\n ...getTransformOrigins(placement)\n },\n children: /* @__PURE__ */ jsx(Component, { ...getTooltipContentProps(), children: content })\n }\n ) }) });\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n trigger,\n disableAnimation && isOpen ? /* @__PURE__ */ jsx(OverlayContainer, { portalContainer, children: /* @__PURE__ */ jsx(\"div\", { ref: tooltipRef, id, style, ...otherTooltipProps, children: /* @__PURE__ */ jsx(Component, { ...getTooltipContentProps(), children: content }) }) }) : /* @__PURE__ */ jsx(AnimatePresence, { children: isOpen ? /* @__PURE__ */ jsx(OverlayContainer, { portalContainer, children: animatedContent }) : null })\n ] });\n});\nTooltip.displayName = \"NextUI.Tooltip\";\nvar tooltip_default = Tooltip;\n\nexport {\n tooltip_default\n};\n","import $4AOtR$react, {useContext as $4AOtR$useContext, useState as $4AOtR$useState, useMemo as $4AOtR$useMemo, useEffect as $4AOtR$useEffect} from \"react\";\nimport $4AOtR$reactdom from \"react-dom\";\nimport {useIsSSR as $4AOtR$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 */ \n\n\nconst $f57aed4a881a3485$var$Context = /*#__PURE__*/ (0, $4AOtR$react).createContext(null);\nfunction $f57aed4a881a3485$export$178405afcd8c5eb(props) {\n let { children: children } = props;\n let parent = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n let [modalCount, setModalCount] = (0, $4AOtR$useState)(0);\n let context = (0, $4AOtR$useMemo)(()=>({\n parent: parent,\n modalCount: modalCount,\n addModal () {\n setModalCount((count)=>count + 1);\n if (parent) parent.addModal();\n },\n removeModal () {\n setModalCount((count)=>count - 1);\n if (parent) parent.removeModal();\n }\n }), [\n parent,\n modalCount\n ]);\n return /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$var$Context.Provider, {\n value: context\n }, children);\n}\nfunction $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {\n let context = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n return {\n modalProviderProps: {\n 'aria-hidden': context && context.modalCount > 0 ? true : undefined\n }\n };\n}\n/**\n * Creates a root node that will be aria-hidden if there are other modals open.\n */ function $f57aed4a881a3485$var$OverlayContainerDOM(props) {\n let { modalProviderProps: modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();\n return /*#__PURE__*/ (0, $4AOtR$react).createElement(\"div\", {\n \"data-overlay-container\": true,\n ...props,\n ...modalProviderProps\n });\n}\nfunction $f57aed4a881a3485$export$bf688221f59024e5(props) {\n return /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));\n}\nfunction $f57aed4a881a3485$export$b47c3594eab58386(props) {\n let isSSR = (0, $4AOtR$useIsSSR)();\n let { portalContainer: portalContainer = isSSR ? null : document.body, ...rest } = props;\n (0, $4AOtR$react).useEffect(()=>{\n if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest('[data-overlay-container]')) throw new Error('An OverlayContainer must not be inside another container. Please change the portalContainer prop.');\n }, [\n portalContainer\n ]);\n if (!portalContainer) return null;\n let contents = /*#__PURE__*/ (0, $4AOtR$react).createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);\n return /*#__PURE__*/ (0, $4AOtR$reactdom).createPortal(contents, portalContainer);\n}\nfunction $f57aed4a881a3485$export$33ffd74ebf07f060(options) {\n // Add aria-hidden to all parent providers on mount, and restore on unmount.\n let context = (0, $4AOtR$useContext)($f57aed4a881a3485$var$Context);\n if (!context) throw new Error('Modal is not contained within a provider');\n (0, $4AOtR$useEffect)(()=>{\n if ((options === null || options === void 0 ? void 0 : options.isDisabled) || !context || !context.parent) return;\n // The immediate context is from the provider containing this modal, so we only\n // want to trigger aria-hidden on its parents not on the modal provider itself.\n context.parent.addModal();\n return ()=>{\n if (context && context.parent) context.parent.removeModal();\n };\n }, [\n context,\n context.parent,\n options === null || options === void 0 ? void 0 : options.isDisabled\n ]);\n return {\n modalProps: {\n 'data-ismodal': !(options === null || options === void 0 ? void 0 : options.isDisabled)\n }\n };\n}\n\n\nexport {$f57aed4a881a3485$export$178405afcd8c5eb as ModalProvider, $f57aed4a881a3485$export$d9aaed4c3ece1bc0 as useModalProvider, $f57aed4a881a3485$export$bf688221f59024e5 as OverlayProvider, $f57aed4a881a3485$export$b47c3594eab58386 as OverlayContainer, $f57aed4a881a3485$export$33ffd74ebf07f060 as useModal};\n//# sourceMappingURL=useModal.module.js.map\n"],"names":["$8796f90736e175cb$var$tooltips","$8796f90736e175cb$var$tooltipId","$8796f90736e175cb$var$globalWarmedUp","$8796f90736e175cb$var$globalWarmUpTimeout","$8796f90736e175cb$var$globalCooldownTimeout","useTooltip","originalProps","_a","_b","globalContext","useProviderContext","props","variantProps","mapPropsVariants","popover","variantKeys","ref","as","isOpen","isOpenProp","content","children","defaultOpen","onOpenChange","isDisabled","trigger","triggerAction","shouldFlip","containerPadding","placement","placementProp","delay","closeDelay","showArrow","offset","crossOffset","isDismissable","shouldCloseOnBlur","portalContainer","isKeyboardDismissDisabled","updatePositionDeps","shouldCloseOnInteractOutside","className","onClose","motionProps","classNames","otherProps","disableAnimation","state","useTooltipTriggerState","open","close","useOverlayTriggerState","d","id","react","useMemo","closeTimeout","useRef","closeCallback","ensureTooltipEntry","hideTooltip","closeOpenTooltips","hideTooltipId","showTooltip","current","clearTimeout","immediate","setTimeout","Math","max","warmupTooltip","useEffect","isOpen2","triggerRef","overlayRef","tooltipId","useId","useImperativeHandle","createDOMRef","triggerProps","tooltipProps","triggerTooltipProps","useTooltipTrigger","Me","isHovered","isFocused","handleShow","handleHide","onKeyDown","e","key","stopPropagation","document","addEventListener","removeEventListener","onPressStart","hoverProps","useHover","X","onHoverStart","useFocusVisible","Jz","onHoverEnd","focusableProps","useFocusable","k","onFocus","E","onBlur","undefined","mergeProps","onPointerDown","useReactAriaTooltip","domProps","filterDOMProps","z","labelable","role","overlayProps","positionProps","updatePosition","useOverlayPosition","targetRef","toReactAriaPlacement","useSafeLayoutEffect","length","useOverlay","slots","_a2","_b2","_c","radius","size","shadow","objectToDeps","getTriggerProps","useCallback","props2","_ref","mergeRefs","getTooltipProps","dataAttr","getArrowPlacement","style","base","class","getTooltipContentProps","clsx","Component","domAnimation","Promise","all","__webpack_require__","then","bind","res","default","Tooltip","forwardRef","childrenNum","Children","count","isValidElement","cloneElement","child","jsx","error","warn","tooltipRef","otherTooltipProps","animatedContent","LazyMotion","features","m","div","animate","exit","initial","variants","TRANSITION_VARIANTS","scaleSpring","getTransformOrigins","jsxs","Fragment","OverlayContainer","AnimatePresence","displayName","tooltip_default","$f57aed4a881a3485$var$Context","createContext","$f57aed4a881a3485$export$178405afcd8c5eb","parent","react__WEBPACK_IMPORTED_MODULE_0__","useContext","modalCount","setModalCount","useState","context","addModal","removeModal","createElement","Provider","value","$f57aed4a881a3485$var$OverlayContainerDOM","modalProviderProps","$f57aed4a881a3485$export$bf688221f59024e5","$f57aed4a881a3485$export$b47c3594eab58386","isSSR","_react_aria_ssr__WEBPACK_IMPORTED_MODULE_2__","Av","body","rest","closest","contents","createPortal"],"sourceRoot":""}