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

72 lines
3 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 14451
// Function ID: 14452
2026-07-20 16:05:17 +00:00
// Name: mutable
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 21, 4217, 1641, 2]
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
// Module 14451 (mutable)
import KeyboardChatScrollView from "KeyboardChatScrollView" /* 1641 */;
2026-09-01 10:26:29 +00:00
import _mod4217 from "module_4217" /* 4217 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import module_4217 from "module_4217" /* 4217 */;
2026-08-24 06:08:38 +00:00
import mutable from "module_0" /* 0 */;
import importAllResult from "noop" /* 19 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: obj1, jsxs: c3 } = jsxProd);
2026-09-01 10:26:29 +00:00
const mutable1 = module_4217.makeMutable(require("module_4217").KeyboardState.UNKNOWN);
2026-07-20 16:05:17 +00:00
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);}" };
2026-08-24 06:08:38 +00:00
let closure_9 = importAllResult.memo(() => {
let obj = KeyboardChatScrollView;
2026-07-29 08:29:29 +00:00
obj = { onStart: null, onMove: null, onEnd: null };
2026-07-20 16:05:17 +00:00
const fn = function o(height) {
if (0 === height.height) {
2026-09-01 10:26:29 +00:00
let OPEN = callback(4217).KeyboardState.CLOSED;
2026-07-20 16:05:17 +00:00
} else {
2026-09-01 10:26:29 +00:00
OPEN = callback(4217).KeyboardState.OPEN;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const result = store2.set(OPEN);
2026-07-20 16:05:17 +00:00
};
2026-09-01 10:26:29 +00:00
obj = { animatedKeyboardState: mutable1, KeyboardState: _mod4217.KeyboardState };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 12130162639136;
fn.__initData = closure_6;
2026-07-29 08:29:29 +00:00
obj[0] = fn;
2026-07-20 16:05:17 +00:00
const fn2 = function t(height) {
2026-07-29 08:29:29 +00:00
const result = store.set(height.height);
2026-07-20 16:05:17 +00:00
};
fn2.__closure = { animatedKeyboardHeight: mutable };
fn2.__workletHash = 1398293011995;
fn2.__initData = closure_7;
2026-07-29 08:29:29 +00:00
obj[1] = fn2;
2026-07-20 16:05:17 +00:00
const fn3 = function e(height) {
if (0 === height.height) {
2026-09-01 10:26:29 +00:00
let OPEN = callback(4217).KeyboardState.CLOSED;
2026-07-20 16:05:17 +00:00
} else {
2026-09-01 10:26:29 +00:00
OPEN = callback(4217).KeyboardState.OPEN;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const result = store2.set(OPEN);
const result1 = store.set(height.height);
2026-07-20 16:05:17 +00:00
};
2026-09-01 10:26:29 +00:00
fn3.__closure = { animatedKeyboardState: mutable1, KeyboardState: _mod4217.KeyboardState, animatedKeyboardHeight: mutable };
2026-07-20 16:05:17 +00:00
fn3.__workletHash = 10688534401196;
fn3.__initData = closure_8;
2026-07-29 08:29:29 +00:00
obj[2] = fn3;
2026-07-20 16:05:17 +00:00
obj.useKeyboardHandler(obj, []);
return null;
});
2026-07-23 10:11:24 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
Component(children) {
2026-07-29 08:29:29 +00:00
const obj = { enabled: true, navigationBarTranslucent: true, preserveEdgeToEdge: true, statusBarTranslucent: true, children: null };
2026-07-20 16:05:17 +00:00
const items = [children.children, callback(closure_9, {})];
2026-07-29 08:29:29 +00:00
obj[4] = items;
2026-08-24 06:08:38 +00:00
return callback2(KeyboardChatScrollView.KeyboardProvider, obj);
2026-07-20 16:05:17 +00:00
},
animatedKeyboardHeight: mutable,
animatedKeyboardState: mutable1
};
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/keyboard/native/AnimatedKeyboardProviderController.tsx");
2026-07-23 10:11:24 +00:00
export default obj;