Files
discord-decomp/sources/utils/native/RunAfterInteractionsUtils.tsx
2026-07-28 01:06:53 +03:00

43 lines
2.7 KiB
TypeScript

/* Metro module 5459; source: utils/native/RunAfterInteractionsUtils.tsx; dependencies: [27, 4041, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as TimersModule from '../../external/discord_common/js/packages/timers/Timers.tsx'; /* Metro dependency 4041 */
function _fun48022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:6, offset: 0x011d76e6, size: 128 bytes, params: 8, frame: 19
const env0_0 = require;
const runAfterInteractions_480232 = runAfterInteractions_48023;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {runAfterInteractions: runAfterInteractions_480232};
(FileImportTrackerModule).fileFinishedImporting('utils/native/RunAfterInteractionsUtils.tsx');
exports.default = object;
exports.runAfterInteractions = runAfterInteractions_480232;
function runAfterInteractions_48023(a0) { // fn#48023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:125, offset: 0x011d7766, size: 141 bytes, params: 2, frame: 16
const value = a1;
const env0_0 = a0;
const r4 = value !== undefined ? value : 2000;
const env0_1 = InteractionManager.runAfterInteractions(_fun48024);
const DelayedCall = (TimersModule).DelayedCall;
new DelayedCall(r4, _fun48025).delay();
return {cancel: cancel_48026};
function _fun48024() { // fn#48024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:194, offset: 0x011d77f3, size: 29 bytes, params: 1, frame: 10
ReactNativeModule.InteractionManager.cancel();
env0_0();
}
function _fun48025() { // fn#48025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:247, offset: 0x011d7810, size: 29 bytes, params: 1, frame: 10
env0_1.cancel();
env0_0();
}
function runAfterInteractions_48023Cancel() { // fn#48026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5637:295, owner: runAfterInteractions_48023.cancel, offset: 0x011d782d, size: 35 bytes, params: 1, frame: 10
ReactNativeModule.InteractionManager.cancel();
env0_1.cancel();
}
}
}
global.__d(_fun48022, 5459, [27, 4041, 2]) /* metro module 5459, dependencies: [27, 4041, 2] */;