87 lines
5.1 KiB
JavaScript
87 lines
5.1 KiB
JavaScript
/* Metro module 1758; source: unknown; dependencies: [31, 1654, 1635] */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
|
|
function _fun19400(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1885:6, offset: 0x00ea8a62, size: 127 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {code: 'function pnpm_useAnimatedKeyboardTs1(state,height){const{keyboardEventData}=this.__closure;keyboardEventData.state.value=state;keyboardEventData.height.value=height;}'};
|
|
object = {code: 'function pnpm_useAnimatedKeyboardTs2(state,height){const{_keyboardEventData}=this.__closure;_keyboardEventData.state.value=state;_keyboardEventData.height.value=height;}'};
|
|
exports.useAnimatedKeyboard = useAnimatedKeyboard;
|
|
function useAnimatedKeyboard() { // fn#19401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1885:512, offset: 0x00ea8ae1, size: 303 bytes, params: 1, frame: 24
|
|
var object;
|
|
var moduleValue;
|
|
var moduleValue3;
|
|
var subscribeForKeyboardEvents;
|
|
var pnpm_useAnimatedKeyboardTs12;
|
|
const r10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {isStatusBarTranslucentAndroid: undefined,
|
|
isNavigationBarTranslucentAndroid: undefined};
|
|
const value2 = useRef(null);
|
|
if (value2.current === null) {
|
|
object = {};
|
|
moduleValue = require(1654) /* metro dependency 1654 */;
|
|
object.state = moduleValue.makeMutable((require(1635) /* metro dependency 1635 */).KeyboardState.UNKNOWN);
|
|
object.height = (require(1654) /* metro dependency 1654 */).makeMutable(0);
|
|
var object3 = object;
|
|
moduleValue3 = require(1654) /* metro dependency 1654 */;
|
|
subscribeForKeyboardEvents = moduleValue3.subscribeForKeyboardEvents;
|
|
pnpm_useAnimatedKeyboardTs12 = pnpm_useAnimatedKeyboardTs1;
|
|
pnpm_useAnimatedKeyboardTs12.__closure = {keyboardEventData: object};
|
|
pnpm_useAnimatedKeyboardTs12.__workletHash = 4393537867728;
|
|
pnpm_useAnimatedKeyboardTs12.__initData = object3;
|
|
useRef(-1).current = Reflect.apply(subscribeForKeyboardEvents, moduleValue3, [pnpm_useAnimatedKeyboardTs12,
|
|
r10]);
|
|
value2.current = object;
|
|
useRef(false).current = true;
|
|
}
|
|
useEffect(_fun19403, []);
|
|
return value2.current;
|
|
function pnpm_useAnimatedKeyboardTs1(a0, a1) { // fn#19402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1885:877, owner: useAnimatedKeyboard.pnpm_useAnimatedKeyboardTs1, offset: 0x00ea8c10, size: 43 bytes, params: 3, frame: 3
|
|
env0_4.state.value = a0;
|
|
env0_4.height.value = a1;
|
|
}
|
|
|
|
function _fun19403() { // fn#19403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1885:1072, offset: 0x00ea8c3b, size: 170 bytes, params: 1, frame: 18
|
|
var environment;
|
|
var binding;
|
|
var value2;
|
|
var moduleValue;
|
|
var subscribeForKeyboardEvents;
|
|
var closure;
|
|
let current = ReactModule.useRef.current;
|
|
if (current === false) {
|
|
current = env0_1.current;
|
|
if (current !== null) {
|
|
current = env0_1.current;
|
|
var current2 = current;
|
|
binding = ReactModule.useEffect;
|
|
value2 = environment.__proto__;
|
|
moduleValue = require(1654) /* metro dependency 1654 */;
|
|
subscribeForKeyboardEvents = moduleValue.subscribeForKeyboardEvents;
|
|
closure = function(a0, a1) {
|
|
current.state.value = a0;
|
|
current.height.value = a1;
|
|
};
|
|
closure.__closure = {_keyboardEventData: current};
|
|
closure.__workletHash = 5041909921996;
|
|
closure.__initData = env1_5;
|
|
binding.current = Reflect.apply(subscribeForKeyboardEvents, moduleValue, [closure, current2]);
|
|
ReactModule.useRef.current = true;
|
|
}
|
|
}
|
|
return _fun19405;
|
|
function _fun19405() { // fn#19405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1885:1372, offset: 0x00ea8d10, size: 62 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(1654) /* metro dependency 1654 */;
|
|
value.unsubscribeFromKeyboardEvents(env1_2.current);
|
|
env1_3.current = false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun19400, 1758, [31, 1654, 1635]) /* metro module 1758, dependencies: [31, 1654, 1635] */;
|