95 lines
4.9 KiB
TypeScript
95 lines
4.9 KiB
TypeScript
/* Metro module 15714; source: modules/forums/ForumManager.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 1386, 6896, 4860, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
|
|
|
|
function _fun120593(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15922:6, offset: 0x025309c3, size: 264 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun120597(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/forums/ForumManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_120594() { // fn#120594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15922:189, offset: 0x02530acb, size: 98 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_120594_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun120597(a0) { // fn#120597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15922:392, offset: 0x02530b2d, size: 74 bytes, params: 2, frame: 15
|
|
const ForumManager2 = ForumManager;
|
|
Inherits(ForumManager2, a0);
|
|
return CreateClass(ForumManager2, [{key: 'handleChannelPreload', value: value_120599}]);
|
|
function ForumManager(a0) { // fn#120598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15922:404, offset: 0x02530b77, size: 147 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_2;
|
|
binding(this, ForumManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(ForumManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_120594()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {CHANNEL_PRELOAD: value.handleChannelPreload};
|
|
return value;
|
|
}
|
|
|
|
function value_120599({channelId}) { // fn#120599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15922:754, offset: 0x02530c0a, size: 94 bytes, params: 2, frame: 13
|
|
var channel;
|
|
const value = environment.__proto__;
|
|
if (!isStaticChannelRoute(channelId)) {
|
|
channel = ChannelStore.getChannel(channelId);
|
|
if (channel != null && channel.isForumLikeChannel()) {
|
|
(require(6896) /* metro dependency 6896: ForumPostDataLoader */).preloadForumThreads(channel);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun120593, 15714, [6, 7, 15, 17, 18, 1379, 1386, 6896, 4860,
|
|
2]) /* metro module 15714, dependencies: [6, 7, 15, 17, 18, 1379, 1386, 6896, 4860, 2] */;
|