// Module ID: 6861 // Function ID: 6862 // Name: useKeyboardIsOpen // Dependencies: [1484, 1485, 1486, 1614, 558, 568, 2] // Exports: getKeyboardIsOpen, subscribeToKeyboardIsOpen // Module 6861 (useKeyboardIsOpen) import AppEntryKeyContext from "AppEntryKeyContext" /* 1485 */; import KeyboardUIStoreDefault from "KeyboardUIStore" /* 1486 */; import KeyboardTypes from "KeyboardTypes" /* 1614 */; import subscribeToKeyboardUIStore from "subscribeToKeyboardUIStore" /* 1484 */; const require = globalThis.__r; require = fn; let closure_4 = {}; const ReactCompilerGating = fn(558); function getKeyboardIsOpen(arg0) { let tmp = arg0; if (arg0 === undefined) { tmp = closure_4; } let flag = tmp.includeCustomKeyboard; if (flag === undefined) { flag = false; } let DEFAULT_APP_ENTRY_KEY = tmp.appEntryKey; if (DEFAULT_APP_ENTRY_KEY === undefined) { DEFAULT_APP_ENTRY_KEY = AppEntryKeyContext.DEFAULT_APP_ENTRY_KEY; } const tmp5 = KeyboardUIStoreDefault.getState().byAppEntry[DEFAULT_APP_ENTRY_KEY]; const systemKeyboardOpen = tmp5.systemKeyboardOpen; if (flag) { let tmp7 = systemKeyboardOpen; if (!systemKeyboardOpen) { tmp7 = tmp5.keyboardType !== KeyboardTypes.KeyboardTypes.SYSTEM; } let tmp6 = tmp7; } else { tmp6 = systemKeyboardOpen; } return tmp6; } const size = fn(2); const result = size.fileFinishedImporting("modules/keyboard/native/useKeyboardIsOpen.tsx"); export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => { let tmp = arg0; const cResult = require("c").c(3); if (undefined === arg0) { tmp = closure_4; } const includeCustomKeyboard = tmp.includeCustomKeyboard; _require = tmp5; const obj = require("c"); const appEntryKey = require("AppEntryKeyContext").useAppEntryKey(); if (cResult[0] === appEntryKey) { if (cResult[1] === tmp5) { let tmp7 = cResult[2]; } return appEntryKey(1486)(tmp7); } const fn = function t(arg0) { const systemKeyboardOpen = tmp.systemKeyboardOpen; if (closure_0) { let tmp3 = systemKeyboardOpen; if (!systemKeyboardOpen) { tmp3 = tmp.keyboardType !== KeyboardTypes.KeyboardTypes.SYSTEM; } let tmp2 = tmp3; } else { tmp2 = systemKeyboardOpen; } return tmp2; }; cResult[0] = appEntryKey; cResult[1] = undefined !== includeCustomKeyboard && includeCustomKeyboard; cResult[2] = fn; tmp7 = fn; }) : (() => { let tmp = arg0; if (arg0 === undefined) { tmp = closure_4; } let flag = tmp.includeCustomKeyboard; if (flag === undefined) { flag = false; } importDefault = flag(1485).useAppEntryKey(); return KeyboardUIStoreDefault((arg0) => { const systemKeyboardOpen = tmp.systemKeyboardOpen; if (flag) { let tmp3 = systemKeyboardOpen; if (!systemKeyboardOpen) { tmp3 = tmp.keyboardType !== KeyboardTypes.KeyboardTypes.SYSTEM; } let tmp2 = tmp3; } else { tmp2 = systemKeyboardOpen; } return tmp2; }); }); export const subscribeToKeyboardIsOpen = function subscribeToKeyboardIsOpen(arg0) { _require = arg0; let tmp = arg1; if (arg1 === undefined) { tmp = closure_4; } let flag = tmp.includeCustomKeyboard; if (flag === undefined) { flag = false; } let DEFAULT_APP_ENTRY_KEY = tmp.appEntryKey; if (DEFAULT_APP_ENTRY_KEY === undefined) { DEFAULT_APP_ENTRY_KEY = require("AppEntryKeyContext").DEFAULT_APP_ENTRY_KEY; } return subscribeToKeyboardUIStore(() => { const obj = { includeCustomKeyboard: flag, appEntryKey: DEFAULT_APP_ENTRY_KEY }; flag = obj.includeCustomKeyboard; if (flag === undefined) { flag = false; } DEFAULT_APP_ENTRY_KEY = obj.appEntryKey; if (DEFAULT_APP_ENTRY_KEY === undefined) { DEFAULT_APP_ENTRY_KEY = AppEntryKeyContext.DEFAULT_APP_ENTRY_KEY; } const tmp5 = KeyboardUIStoreDefault.getState().byAppEntry[DEFAULT_APP_ENTRY_KEY]; const systemKeyboardOpen = tmp5.systemKeyboardOpen; if (flag) { let tmp7 = systemKeyboardOpen; if (!systemKeyboardOpen) { tmp7 = tmp5.keyboardType !== KeyboardTypes.KeyboardTypes.SYSTEM; } let tmp6 = tmp7; } else { tmp6 = systemKeyboardOpen; } return closure_0(tmp6); }, DEFAULT_APP_ENTRY_KEY); }; export { getKeyboardIsOpen };