96 lines
4.4 KiB
React
96 lines
4.4 KiB
React
/* Metro module 6413; source: unknown; dependencies: [6365, 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});
|
|
const env0_1 = importDefault(6365) /* metro dependency 6365 */;
|
|
const value = require(31) /* metro dependency 31 */;
|
|
const env0_2 = value.useCallback;
|
|
const env0_3 = value.useEffect;
|
|
const env0_4 = value.useState;
|
|
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
|
|
var object2;
|
|
const property = env0_1(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]);
|
|
object2 = {};
|
|
object2.setTimeout = useCallback(_fun50317, [property]);
|
|
return object2;
|
|
}
|
|
|
|
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
|
|
var object2;
|
|
const property = env0_1(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]);
|
|
object2 = {};
|
|
object2.requestAnimationFrame = useCallback(_fun50324, [property]);
|
|
return object2;
|
|
}
|
|
|
|
function _fun50314() { // fn#50314, offset: 0x01216501, size: 9 bytes, params: 1, frame: 1
|
|
return _fun50315;
|
|
}
|
|
|
|
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 _fun50321() { // fn#50321, offset: 0x0121660a, size: 9 bytes, params: 1, frame: 1
|
|
return _fun50322;
|
|
}
|
|
|
|
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 _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 _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(env0_1);
|
|
env0_0();
|
|
}
|
|
|
|
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 _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(env0_1);
|
|
env0_0(a0);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|