{"version":3,"file":"isKeyboardVisible.mjs","names":[],"sources":["../../../src/utils/isKeyboardVisible/isKeyboardVisible.ts"],"sourcesContent":["import { getKeyboardHeight } from '../getKeyboardHeight/index.ts';\n\n/**\n * @description\n * `isKeyboardVisible` is a utility function that checks whether the on-screen keyboard is currently visible.\n *\n * This function uses `getKeyboardHeight()` internally and returns `true`\n * if the keyboard height is greater than 0.\n *\n * @returns {boolean} `true` if the keyboard is visible, `false` otherwise.\n *\n * @example\n * if (isKeyboardVisible()) {\n *   console.log('Keyboard is open');\n * } else {\n *   console.log('Keyboard is closed');\n * }\n *\n * @example\n * // Conditionally show/hide elements based on keyboard visibility\n * const showFloatingButton = !isKeyboardVisible();\n */\nexport function isKeyboardVisible(): boolean {\n  const keyboardHeight = getKeyboardHeight();\n  return keyboardHeight > 0;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAgB,oBAA6B;CAE3C,OADuB,kBACH,IAAI;AAC1B"}