decord/source/__polyfill/01xxx/module_1834.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

71 lines
2.3 KiB
JavaScript

// Module ID: 1834
// Function ID: 1835
// Dependencies: [32, 19, 1829, 1627]
// Exports: useKeyboardState
// Module 1834
import _mod1829 from "module_1829" /* 1829 */;
import _slicedToArray from "module_32" /* 32 */;
require = fn;
const noop = fn(19);
({ useEffect: c3, useState: closure_4 } = 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;
}
closure_0 = tmp;
const tmp2 = _slicedToArray(closure_4(() => {
if (typeof getLatestState === "function") {
const obj = {};
const KeyboardController = _mod1829.KeyboardController;
const merged = Object.assign(KeyboardController.state());
const KeyboardController2 = _mod1829.KeyboardController;
obj.isVisible = KeyboardController2.isVisible();
return tmp(obj);
} else {
throw new TypeError("Trying to call a non-function");
}
}), 2);
dependencyMap = tmp2[1];
closure_3(() => {
closure_0 = closure_1_5.map((item) => {
const KeyboardEvents = closure_0(1627).KeyboardEvents;
return KeyboardEvents.addListener(item, () => {
if (typeof closure_2_6 === "function") {
const obj = {};
const KeyboardController = closure_0(1829).KeyboardController;
const merged = Object.assign(KeyboardController.state());
const KeyboardController2 = closure_0(1829).KeyboardController;
obj.isVisible = KeyboardController2.isVisible();
return tmp(tmp2(obj));
} else {
throw new TypeError("Trying to call a non-function");
}
});
});
if (typeof getLatestState === "function") {
let obj = {};
let KeyboardController = closure_0(1829).KeyboardController;
let merged = Object.assign(KeyboardController.state());
let KeyboardController2 = closure_0(1829).KeyboardController;
obj.isVisible = KeyboardController2.isVisible();
tmp(tmp2(obj));
return () => {
const item = closure_0.forEach((remove) => remove.remove());
};
} else {
throw new TypeError("Trying to call a non-function");
}
}, []);
return tmp2[0];
};