decord/source/modules/keyboard/native/AnimatedKeyboardProviderController.tsx
2026-09-02 09:53:35 +00:00

71 lines
3 KiB
TypeScript

// Module ID: 14451
// Function ID: 14452
// Name: mutable
// Dependencies: [19, 21, 4217, 1641, 2]
// Module 14451 (mutable)
import KeyboardChatScrollView from "KeyboardChatScrollView" /* 1641 */;
import _mod4217 from "module_4217" /* 4217 */;
import jsxProd from "jsxProd" /* 21 */;
import module_4217 from "module_4217" /* 4217 */;
import mutable from "module_0" /* 0 */;
import importAllResult from "noop" /* 19 */;
require = arg1;
({ jsx: obj1, jsxs: c3 } = jsxProd);
const mutable1 = module_4217.makeMutable(require("module_4217").KeyboardState.UNKNOWN);
let closure_6 = { code: "function AnimatedKeyboardProviderControllerTsx1(e){const{animatedKeyboardState,KeyboardState}=this.__closure;animatedKeyboardState.set(e.height===0?KeyboardState.CLOSED:KeyboardState.OPEN);}" };
let closure_7 = { code: "function AnimatedKeyboardProviderControllerTsx2(e){const{animatedKeyboardHeight}=this.__closure;animatedKeyboardHeight.set(e.height);}" };
let closure_8 = { code: "function AnimatedKeyboardProviderControllerTsx3(e){const{animatedKeyboardState,KeyboardState,animatedKeyboardHeight}=this.__closure;animatedKeyboardState.set(e.height===0?KeyboardState.CLOSED:KeyboardState.OPEN);animatedKeyboardHeight.set(e.height);}" };
let closure_9 = importAllResult.memo(() => {
let obj = KeyboardChatScrollView;
obj = { onStart: null, onMove: null, onEnd: null };
const fn = function o(height) {
if (0 === height.height) {
let OPEN = callback(4217).KeyboardState.CLOSED;
} else {
OPEN = callback(4217).KeyboardState.OPEN;
}
const result = store2.set(OPEN);
};
obj = { animatedKeyboardState: mutable1, KeyboardState: _mod4217.KeyboardState };
fn.__closure = obj;
fn.__workletHash = 12130162639136;
fn.__initData = closure_6;
obj[0] = fn;
const fn2 = function t(height) {
const result = store.set(height.height);
};
fn2.__closure = { animatedKeyboardHeight: mutable };
fn2.__workletHash = 1398293011995;
fn2.__initData = closure_7;
obj[1] = fn2;
const fn3 = function e(height) {
if (0 === height.height) {
let OPEN = callback(4217).KeyboardState.CLOSED;
} else {
OPEN = callback(4217).KeyboardState.OPEN;
}
const result = store2.set(OPEN);
const result1 = store.set(height.height);
};
fn3.__closure = { animatedKeyboardState: mutable1, KeyboardState: _mod4217.KeyboardState, animatedKeyboardHeight: mutable };
fn3.__workletHash = 10688534401196;
fn3.__initData = closure_8;
obj[2] = fn3;
obj.useKeyboardHandler(obj, []);
return null;
});
let obj = {
Component(children) {
const obj = { enabled: true, navigationBarTranslucent: true, preserveEdgeToEdge: true, statusBarTranslucent: true, children: null };
const items = [children.children, callback(closure_9, {})];
obj[4] = items;
return callback2(KeyboardChatScrollView.KeyboardProvider, obj);
},
animatedKeyboardHeight: mutable,
animatedKeyboardState: mutable1
};
let result = require("set").fileFinishedImporting("modules/keyboard/native/AnimatedKeyboardProviderController.tsx");
export default obj;