Files
discord-decomp/sources/by-id/module-01814.js
T
2026-07-28 01:06:53 +03:00

71 lines
4.5 KiB
JavaScript

/* Metro module 1814; source: unknown; dependencies: [1610, 1804] */
import * as Module01610Module from './module-01610.js'; /* Metro dependency 1610 */
import * as moduleValue3 from './module-01804.js'; /* Metro dependency 1804 */
function _fun19811(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1941:6, offset: 0x00eb41f4, size: 154 bytes, params: 8, frame: 16
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = {code: 'function pnpm_compatTs1(e){const{state,KeyboardState}=this.__closure;state.set(e.height>0?KeyboardState.OPENING:KeyboardState.CLOSING);}'};
const env0_4 = {code: 'function pnpm_compatTs2(e){const{height}=this.__closure;height.set(e.height);}'};
const env0_5 = {code: 'function pnpm_compatTs3(e){const{height}=this.__closure;height.set(e.height);}'};
const env0_6 = {code: 'function pnpm_compatTs4(e){const{state,KeyboardState,height}=this.__closure;state.set(e.height>0?KeyboardState.OPEN:KeyboardState.CLOSED);height.set(e.height);}'};
exports.KeyboardState = {'UNKNOWN': 0, 'OPENING': 1, 'OPEN': 2, 'CLOSING': 3, 'CLOSED': 4};
exports.useAnimatedKeyboard = useAnimatedKeyboard_19812;
function useAnimatedKeyboard_19812() { // fn#19812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1941:690, offset: 0x00eb428e, size: 323 bytes, params: 1, frame: 20
let useSharedValue = Module01610Module.useSharedValue;
const value2 = Reflect.apply(useSharedValue, Module01610Module, [0]);
useSharedValue = Module01610Module.useSharedValue;
const binding = env0_2;
const UNKNOWN = binding.UNKNOWN;
const value3 = Reflect.apply(useSharedValue, Module01610Module, [UNKNOWN]);
const useKeyboardHandler = moduleValue3.useKeyboardHandler;
const object = {};
let closure = onStart_19813;
closure.__closure = {state: value3, KeyboardState: binding};
closure.__workletHash = 14565322463725;
closure.__initData = env0_3;
object.onStart = closure;
closure = onMove;
closure.__closure = {height: value2};
closure.__workletHash = 10176723030164;
closure.__initData = env0_4;
object.onMove = closure;
closure = onInteractive;
closure.__closure = {height: value2};
closure.__workletHash = 5410731249621;
closure.__initData = env0_5;
object.onInteractive = closure;
closure = onEnd_19816;
closure.__closure = {state: value3, KeyboardState: binding, height: value2};
closure.__workletHash = 1401367954247;
closure.__initData = env0_6;
object.onEnd = closure;
Reflect.apply(useKeyboardHandler, moduleValue3, [object, []]);
return {height: value2, state: value3};
function useAnimatedKeyboard_19812OnStart({height}) { // fn#19813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1941:843, owner: useAnimatedKeyboard_19812.onStart, offset: 0x00eb43d1, size: 63 bytes, params: 2, frame: 12
const binding = env0_1;
binding.set(height > 0 ? env1_2.OPENING : env1_2.CLOSING);
}
function useAnimatedKeyboard_19812OnMove({height}) { // fn#19814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1941:1005, owner: useAnimatedKeyboard_19812.onMove, offset: 0x00eb4410, size: 29 bytes, params: 2, frame: 11
env0_0.set(height);
}
function useAnimatedKeyboard_19812OnInteractive({height}) { // fn#19815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1941:1137, owner: useAnimatedKeyboard_19812.onInteractive, offset: 0x00eb4410, size: 29 bytes, params: 2, frame: 11
env0_0.set(height);
}
function useAnimatedKeyboard_19812OnEnd(a0) { // fn#19816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1941:1261, owner: useAnimatedKeyboard_19812.onEnd, offset: 0x00eb442d, size: 82 bytes, params: 2, frame: 14
let binding = env0_1;
binding.set(a0.height > 0 ? env1_2.OPEN : env1_2.CLOSED);
binding = env0_0;
binding.set(a0.height);
}
}
}
global.__d(_fun19811, 1814, [1610, 1804]) /* metro module 1814, dependencies: [1610, 1804] */;