decord/source/1801_useAnimatedKeyboard.js
2026-08-14 17:33:39 +00:00

75 lines
2.5 KiB
JavaScript

// Module ID: 1801
// Function ID: 1802
// Name: useAnimatedKeyboard
// Dependencies: [19, 1697, 1678]
// Exports: useAnimatedKeyboard
// Module 1801 (useAnimatedKeyboard)
import noop from "noop";
let c3;
let obj1;
({ useEffect: obj1, useRef: c3 } = noop);
let closure_4 = { code: "function pnpm_useAnimatedKeyboardTs1(state,height){const{keyboardEventData}=this.__closure;keyboardEventData.state.value=state;keyboardEventData.height.value=height;}" };
let closure_5 = { code: "function pnpm_useAnimatedKeyboardTs2(state,height){const{_keyboardEventData}=this.__closure;_keyboardEventData.state.value=state;_keyboardEventData.height.value=height;}" };
export const useAnimatedKeyboard = function useAnimatedKeyboard() {
let obj = arg0;
if (arg0 === undefined) {
obj = { isStatusBarTranslucentAndroid: "r", isNavigationBarTranslucentAndroid: "accessibilityRole" };
}
let dependencyMap;
let callback;
let callback2;
obj = undefined;
const tmp = callback2(null);
dependencyMap = tmp;
const tmp2 = callback2(-1);
callback = tmp2;
const tmp3 = callback2(false);
callback2 = tmp3;
if (null === tmp.current) {
obj = { state: null, height: null };
obj[0] = obj(1697).makeMutable(obj(1678).KeyboardState.UNKNOWN);
const obj3 = obj(1697);
obj[1] = obj(1697).makeMutable(0);
const obj4 = obj(1697);
let fn = function c(value, value2) {
obj.state.value = value;
obj.height.value = value2;
};
obj = { keyboardEventData: null };
obj[0] = obj;
fn.__closure = obj;
fn.__workletHash = 4393537867728;
fn.__initData = obj;
tmp2.current = obj(1697).subscribeForKeyboardEvents(fn, obj);
tmp.current = obj;
tmp3.current = true;
const obj5 = obj(1697);
}
callback(() => {
if (false === _undefined2.current) {
if (null !== _undefined.current) {
const current = _undefined.current;
obj = obj(_undefined[1]);
const fn = function u(value, value2) {
current.state.value = value;
current.height.value = value2;
};
obj = { _keyboardEventData: null };
obj[0] = current;
fn.__closure = obj;
fn.__workletHash = 5041909921996;
fn.__initData = outer1_5;
c2.current = obj.subscribeForKeyboardEvents(fn, current);
tmp.current = true;
}
}
return () => {
const result = current(outer1_1[1]).unsubscribeFromKeyboardEvents(ref.current);
closure_3.current = false;
};
}, []);
return tmp.current;
};