{"version":3,"file":"index50.mjs","sources":["../src/hooks/useActionSheetDetection.ts"],"sourcesContent":["import { useCallback } from 'react';\n\n/**\n * Hook to detect if an element is inside an action sheet container\n * @returns A function that checks if a target element is inside an action sheet container\n */\nexport const useActionSheetDetection = () => {\n  /**\n   * Checks if the target element is inside an action sheet container\n   * @param target The target element to check\n   * @returns True if the target is inside an action sheet container, false otherwise\n   */\n  const isInsideActionSheet = useCallback((target: HTMLElement | null) => {\n    if (!target) return false;\n    return !!target.closest('.quill-ui-next-actionsheet-full-width');\n  }, []);\n\n  return { isInsideActionSheet };\n};\n\nexport default useActionSheetDetection;"],"names":[],"mappings":";AAMO,MAAM,0BAA0B,MAAM;AAMrC,QAAA,sBAAsB,YAAY,CAAC,WAA+B;AAClE,QAAA,CAAC,OAAe,QAAA;AACpB,WAAO,CAAC,CAAC,OAAO,QAAQ,uCAAuC;AAAA,EACjE,GAAG,EAAE;AAEL,SAAO,EAAE,oBAAoB;AAC/B;"}