Files
discord-decomp/sources/by-id/module-01799.jsx
T
2026-07-27 16:20:00 +03:00

71 lines
3.1 KiB
React

/* Metro module 1799; source: unknown; dependencies: [31, 27, 1800] */
function _fun19742(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1926:6, offset: 0x00eb2d16, size: 119 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(31) /* metro dependency 31 */).useRef;
const env0_3 = (require(27) /* metro dependency 27 */).Animated;
exports.useEventHandlerRegistration = function(a0) {
var env0_0 = a0;
return _fun19744;
};
exports.useAnimatedValue = useAnimatedValue_19747;
}
function useEventHandlerRegistration(a0) { // fn#19743, offset: 0x00eb2d8d, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return onRegisterHandler;
}
function useAnimatedValue_19747(a0, a1) { // fn#19747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1926:635, offset: 0x00eb2ea8, size: 74 bytes, params: 3, frame: 14
const value2 = useRef(null);
if (value2.current === null) {
value2.current = new Animated.Value(a0, a1);
}
return value2.current;
}
function onRegisterHandler(a0) { // fn#19744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1926:209, owner: useEventHandlerRegistration.onRegisterHandler, offset: 0x00eb2d9d, size: 57 bytes, params: 2, frame: 12
const env0_0 = a0;
const closure = attachWorkletHandlers;
if (env0_0.current) {
closure();
} else {
global.queueMicrotask(closure);
}
return _fun19746;
}
function attachWorkletHandlers() { // fn#19745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1926:249, owner: useEventHandlerRegistration.onRegisterHandler.attachWorkletHandlers, offset: 0x00eb2dd6, size: 105 bytes, params: 1, frame: 13
var value4;
var binding;
let value = environment.__proto__.__proto__;
value = Reflect.apply((require(1800) /* metro dependency 1800 */).findNodeHandle, value, [env1_0.current]);
if (value) {
value4 = 'workletEventHandler' in env0_0;
binding = env0_0;
if (value4) {
binding.workletEventHandler.registerForEvents(value);
} else {
binding.registerForEvents(value);
}
}
}
function _fun19746() { // fn#19746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1926:459, offset: 0x00eb2e3f, size: 105 bytes, params: 1, frame: 13
var value4;
var binding;
let value = environment.__proto__.__proto__;
value = Reflect.apply((require(1800) /* metro dependency 1800 */).findNodeHandle, value, [env1_0.current]);
if (value) {
value4 = 'workletEventHandler' in env0_0;
binding = env0_0;
if (value4) {
binding.workletEventHandler.unregisterFromEvents(value);
} else {
binding.unregisterFromEvents(value);
}
}
}