66 lines
3.9 KiB
React
66 lines
3.9 KiB
React
/* Metro module 1814; source: unknown; dependencies: [1610, 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
|
|
const moduleValue = require(1610) /* metro dependency 1610 */;
|
|
let useSharedValue = moduleValue.useSharedValue;
|
|
const value2 = Reflect.apply(useSharedValue, moduleValue, [0]);
|
|
const moduleValue2 = moduleValue;
|
|
useSharedValue = moduleValue2.useSharedValue;
|
|
const binding = env0_2;
|
|
const UNKNOWN = binding.UNKNOWN;
|
|
const value3 = Reflect.apply(useSharedValue, moduleValue2, [UNKNOWN]);
|
|
const moduleValue3 = require(1804) /* metro dependency 1804 */;
|
|
const useKeyboardHandler = moduleValue3.useKeyboardHandler;
|
|
const object2 = {};
|
|
let closure = onStart_19813;
|
|
closure.__closure = {state: value3, KeyboardState: binding};
|
|
closure.__workletHash = 14565322463725;
|
|
closure.__initData = env0_3;
|
|
object2.onStart = closure;
|
|
closure = onMove_19814;
|
|
closure.__closure = {height: value2};
|
|
closure.__workletHash = 10176723030164;
|
|
closure.__initData = env0_4;
|
|
object2.onMove = closure;
|
|
closure = onInteractive;
|
|
closure.__closure = {height: value2};
|
|
closure.__workletHash = 5410731249621;
|
|
closure.__initData = env0_5;
|
|
object2.onInteractive = closure;
|
|
closure = onEnd_19816;
|
|
closure.__closure = {state: value3, KeyboardState: binding, height: value2};
|
|
closure.__workletHash = 1401367954247;
|
|
closure.__initData = env0_6;
|
|
object2.onEnd = closure;
|
|
Reflect.apply(useKeyboardHandler, moduleValue3, [object2, []]);
|
|
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_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);
|
|
}
|
|
|