decord/source/1851_getLatestState.js

70 lines
2.2 KiB
JavaScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 1851
// Function ID: 1852
2026-07-29 08:29:29 +00:00
// Name: getLatestState
2026-08-15 05:55:55 +00:00
// Dependencies: [32, 19, 1846, 1644]
2026-07-29 08:29:29 +00:00
// Exports: useKeyboardState
2026-08-15 05:55:55 +00:00
// Module 1851 (getLatestState)
2026-08-24 06:08:38 +00:00
import closure_2 from "_slicedToArray" /* 32 */;
import noop from "noop" /* 19 */;
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ useEffect: c3, useState: c4 } = noop);
let closure_5 = ["keyboardWillShow", "keyboardDidHide"];
function getLatestState() {
}
function defaultSelector(arg0) {
return arg0;
}
export const useKeyboardState = function useKeyboardState(arg0) {
let tmp = arg0;
if (arg0 === undefined) {
tmp = defaultSelector;
}
2026-08-24 06:08:38 +00:00
closure_0 = tmp;
closure_1 = undefined;
2026-07-29 08:29:29 +00:00
const tmp2 = callback(callback3(() => {
2026-08-24 06:08:38 +00:00
if (typeof closure_1_6 !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
const obj = {};
2026-08-24 06:08:38 +00:00
const KeyboardController = callback(1846).KeyboardController;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(KeyboardController.state());
2026-08-24 06:08:38 +00:00
const KeyboardController2 = callback(1846).KeyboardController;
2026-07-29 08:29:29 +00:00
obj.isVisible = KeyboardController2.isVisible();
2026-08-24 06:08:38 +00:00
return callback(obj);
2026-07-29 08:29:29 +00:00
}), 2);
closure_1 = tmp2[1];
callback2(() => {
2026-08-24 06:08:38 +00:00
const callback = closure_1_5.map((arg0) => {
const KeyboardEvents = lib(closure_1_1[3]).KeyboardEvents;
2026-07-29 08:29:29 +00:00
return KeyboardEvents.addListener(arg0, () => {
2026-08-24 06:08:38 +00:00
if (typeof closure_1_6 !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
const obj = {};
2026-08-24 06:08:38 +00:00
const KeyboardController = closure_1_0(closure_1_1[2]).KeyboardController;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(KeyboardController.state());
2026-08-24 06:08:38 +00:00
const KeyboardController2 = closure_1_0(closure_1_1[2]).KeyboardController;
2026-07-29 08:29:29 +00:00
obj.isVisible = KeyboardController2.isVisible();
return closure_1(closure_0(obj));
});
});
2026-08-24 06:08:38 +00:00
if (typeof closure_1_6 !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
let obj = {};
2026-08-24 06:08:38 +00:00
let KeyboardController = callback(1846).KeyboardController;
2026-07-29 08:29:29 +00:00
let merged = Object.assign(KeyboardController.state());
2026-08-24 06:08:38 +00:00
let KeyboardController2 = callback(1846).KeyboardController;
2026-07-29 08:29:29 +00:00
obj.isVisible = KeyboardController2.isVisible();
2026-08-24 06:08:38 +00:00
dependencyMap(callback(obj));
2026-07-29 08:29:29 +00:00
return () => {
const item = lib.forEach((remove) => remove.remove());
};
}, []);
return tmp2[0];
};