decord/source/modules/keyboard/native/useKeyboardIsOpen.tsx

82 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6687
2026-07-27 11:26:19 +00:00
// Function ID: 59031
2026-07-20 16:05:17 +00:00
// Name: getKeyboardIsOpen
2026-07-23 10:11:24 +00:00
// Dependencies: [1452, 1453, 1454, 1555, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, subscribeToKeyboardIsOpen
2026-07-25 08:10:48 +00:00
// Module 6687 (getKeyboardIsOpen)
2026-07-23 10:11:24 +00:00
import subscribeToKeyboardUIStore from "subscribeToKeyboardUIStore";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
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) {
2026-07-23 10:11:24 +00:00
DEFAULT_APP_ENTRY_KEY = require(1453) /* context */.DEFAULT_APP_ENTRY_KEY;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp4 = importDefault(1454).getState().byAppEntry[DEFAULT_APP_ENTRY_KEY];
2026-07-20 16:05:17 +00:00
const systemKeyboardOpen = tmp4.systemKeyboardOpen;
if (flag) {
let tmp6 = systemKeyboardOpen;
if (!systemKeyboardOpen) {
2026-07-23 10:11:24 +00:00
tmp6 = tmp4.keyboardType !== require(1555) /* KeyboardTypes */.KeyboardTypes.SYSTEM;
2026-07-20 16:05:17 +00:00
}
let tmp5 = tmp6;
} else {
tmp5 = systemKeyboardOpen;
}
return tmp5;
}
let closure_4 = {};
2026-07-23 10:11:24 +00:00
const result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("modules/keyboard/native/useKeyboardIsOpen.tsx");
2026-07-20 16:05:17 +00:00
export default function useKeyboardIsOpen() {
let tmp = arg0;
if (arg0 === undefined) {
tmp = closure_4;
}
let flag = tmp.includeCustomKeyboard;
if (flag === undefined) {
flag = false;
}
let importDefault;
2026-07-23 10:11:24 +00:00
importDefault = flag(1453).useAppEntryKey();
return importDefault(1454)((arg0) => {
2026-07-20 16:05:17 +00:00
const systemKeyboardOpen = tmp.systemKeyboardOpen;
if (flag) {
let tmp3 = systemKeyboardOpen;
if (!systemKeyboardOpen) {
2026-07-23 10:11:24 +00:00
tmp3 = tmp.keyboardType !== flag(outer1_2[3]).KeyboardTypes.SYSTEM;
2026-07-20 16:05:17 +00:00
}
let tmp2 = tmp3;
} else {
tmp2 = systemKeyboardOpen;
}
return tmp2;
});
};
export const subscribeToKeyboardIsOpen = function subscribeToKeyboardIsOpen(arg0) {
let tmp = arg1;
2026-07-23 10:11:24 +00:00
const _require = arg0;
2026-07-20 16:05:17 +00:00
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) {
2026-07-23 10:11:24 +00:00
DEFAULT_APP_ENTRY_KEY = _require(DEFAULT_APP_ENTRY_KEY[1]).DEFAULT_APP_ENTRY_KEY;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
return callback(() => callback(outer1_5({ includeCustomKeyboard: flag, appEntryKey: DEFAULT_APP_ENTRY_KEY })), DEFAULT_APP_ENTRY_KEY);
2026-07-20 16:05:17 +00:00
};
export { getKeyboardIsOpen };