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

93 lines
4.9 KiB
JavaScript

/* Metro module 6413; source: unknown; dependencies: [6365, 31] */
import Module06365 from './module-06365.js'; /* Metro dependency 6365 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
function _fun50311(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:6, offset: 0x012163fc, size: 133 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.useUnmountAwareTimeout = useUnmountAwareTimeout;
exports.useUnmountAwareAnimationFrame = useUnmountAwareAnimationFrame;
function useUnmountAwareTimeout() { // fn#50312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:184, offset: 0x01216481, size: 98 bytes, params: 1, frame: 16
const property = Module06365(useState(function() {
var Set = global.Set;
var value = Object.create(Set.prototype, {constructor: {value: Set}});
var value2 = new Set();
return value2 instanceof Object ? value2 : value;
}), 1)[0];
useEffect(function() {
return _fun50315;
}, [property]);
object = {};
object.setTimeout = useCallback(_fun50317, [property]);
return object;
function _fun50314() { // fn#50314, offset: 0x01216501, size: 9 bytes, params: 1, frame: 1
return _fun50315;
function _fun50315() { // fn#50315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:296, offset: 0x0121650a, size: 38 bytes, params: 1, frame: 11
const binding = env1_0;
binding.forEach(_fun50316);
binding.clear();
function _fun50316(a0) { // fn#50316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:318, offset: 0x01216530, size: 23 bytes, params: 2, frame: 11
return env3_0.clearTimeout(a0);
}
}
}
function _fun50317(a0, a1) { // fn#50317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:391, offset: 0x01216547, size: 60 bytes, params: 3, frame: 14
var environment;
const env0_0 = a0;
const value = environment.__proto__;
env0_0.add(env1_0.setTimeout(_fun50318, a1));
function _fun50318() { // fn#50318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:425, offset: 0x01216583, size: 36 bytes, params: 1, frame: 12
env1_0.delete(Module06365);
env0_0();
}
}
}
function useUnmountAwareAnimationFrame() { // fn#50319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:507, offset: 0x012165a7, size: 99 bytes, params: 1, frame: 16
const property = Module06365(useState(function() {
var Set = global.Set;
var value = Object.create(Set.prototype, {constructor: {value: Set}});
var value2 = new Set();
return value2 instanceof Object ? value2 : value;
}), 1)[0];
useEffect(function() {
return _fun50322;
}, [property]);
object = {};
object.requestAnimationFrame = useCallback(_fun50324, [property]);
return object;
function _fun50321() { // fn#50321, offset: 0x0121660a, size: 9 bytes, params: 1, frame: 1
return _fun50322;
function _fun50322() { // fn#50322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:626, offset: 0x01216613, size: 38 bytes, params: 1, frame: 11
const binding = env1_0;
binding.forEach(function(a0) {
return (0, global.cancelAnimationFrame)(a0);
});
binding.clear();
}
}
function _fun50324(a0) { // fn#50324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:738, offset: 0x0121664d, size: 57 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const value = environment.__proto__;
env0_0.add(env1_0.requestAnimationFrame(_fun50325));
function _fun50325(a0) { // fn#50325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6591:781, offset: 0x01216686, size: 40 bytes, params: 2, frame: 12
env1_0.delete(Module06365);
env0_0(a0);
}
}
}
}
global.__d(_fun50311, 6413, [6365, 31]) /* metro module 6413, dependencies: [6365, 31] */;