Files
discord-decomp/sources/modules/forwarding/handleForwardBreadcrumb.tsx
T
2026-07-28 01:06:53 +03:00

304 lines
14 KiB
TypeScript

/* Metro module 11504; source: modules/forwarding/handleForwardBreadcrumb.tsx; dependencies: [5, 1379, 1867, 661, 6946, 6593, 683, 6837, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun88102(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11690:6, offset: 0x01fd52df, size: 203 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/forwarding/handleForwardBreadcrumb.tsx');
exports.default = function() {
return _handleForwardBreadcrumb.apply(this, arguments);
};
function _handleForwardBreadcrumb() { // fn#88103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11690:187, offset: 0x01fd53aa, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun88105).apply(this, arguments);
function* _fun88105(a0) { // fn#88105, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11690:258, offset: 0x01fd53e7, size: 482 bytes, params: 2, frame: 27
var r4;
var guild_id;
var r5;
var guild_id2;
var channel_id;
var message_id;
var value3;
var binding;
var getChannel;
var value4;
var value5;
var getGuild;
var binding2;
var property;
var value6;
var startLurking;
var object;
var FORWARD_BREADCRUMB;
var object2;
var value7;
var value8;
var value9;
var value10;
var binding3;
var value11;
var waitForGuild;
var value12;
var value13;
var value14;
var error;
var value15;
var track;
var FORWARD_BREADCRUMB_CLICKED;
var getBasicChannel;
var channel_id2;
var value16;
var channel_id3;
var id;
var value17;
var CHANNEL;
var value18;
if (false) {
return undefined;
}
value = undefined;
let messageReference = a0.messageReference;
if (messageReference != null) {
reducibleJoin42: while (true) {
reduciblePort41: while (true) {
exceptionLanding40: while (true) {
messageReference = a0.messageReference;
guild_id2 = messageReference.guild_id;
messageReference = a0.messageReference;
channel_id = messageReference.channel_id;
messageReference = a0.messageReference;
message_id = messageReference.message_id;
value3 = environment.__proto__.__proto__;
binding = env2_4;
getChannel = binding.getChannel;
value4 = Reflect.apply(getChannel, binding, [channel_id]);
value5 = false;
if (value4 != null) {
r4 = value5;
break reduciblePort41;
}
if (guild_id2 == null) {
r4 = value5;
break reduciblePort41;
}
binding = env2_5;
getGuild = binding.getGuild;
if (Reflect.apply(getGuild, binding, [guild_id2]) != null) {
r4 = value5;
break reduciblePort41;
}
try {
binding = env2_0;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
binding2 = env2_2;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
property = binding2[4];
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
value6 = binding(property);
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
startLurking = value6.startLurking;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
object = {};
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
binding = env2_7;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
FORWARD_BREADCRUMB = binding.FORWARD_BREADCRUMB;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
object.object = FORWARD_BREADCRUMB;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
object2 = {};
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
object2.shouldNavigate = value5;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
value7 = Reflect.apply(startLurking, value6, [guild_id2, object, object2]);
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
yield value7;
try {
value8 = undefined;
value9 = false;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
if (value9) {
return value8;
}
value10 = true;
try {
binding = env2_0;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
binding3 = env2_2;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
property = binding3[5];
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
value11 = binding(property);
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
waitForGuild = value11.waitForGuild;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
value12 = Reflect.apply(waitForGuild, value11, [guild_id2]);
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
yield value12;
try {
value13 = undefined;
value14 = false;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
if (value14) {
return value13;
}
try {
binding = env2_4;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
getChannel = binding.getChannel;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
Reflect.apply(getChannel, binding, [channel_id]);
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
r4 = value10;
break reduciblePort41;
}
break reduciblePort41;
}
binding = env2_1;
value15 = binding(env2_2[6]);
track = value15.track;
FORWARD_BREADCRUMB_CLICKED = env2_6.FORWARD_BREADCRUMB_CLICKED;
binding = env2_4;
getBasicChannel = binding.getBasicChannel;
channel_id2 = a0.channel_id;
value16 = Reflect.apply(getBasicChannel, binding, [channel_id2]);
reducibleJoin43: while (true) {
if (value16 == null) {
guild_id = value;
break reducibleJoin43;
}
break reducibleJoin42;
}
channel_id3 = a0.channel_id;
id = a0.id;
Reflect.apply(track, value15, [FORWARD_BREADCRUMB_CLICKED, {guild_id: guild_id, channel_id: channel_id3,
message_id: id, breadcrumb_guild_id: guild_id2, breadcrumb_channel_id: channel_id,
breadcrumb_message_id: message_id, did_lurk: r4}]);
r5 = r4 ? channel_id : value;
binding = env2_1;
value17 = binding(env2_2[7]);
binding = env2_8;
CHANNEL = binding.CHANNEL;
value18 = Reflect.apply(CHANNEL, binding, [guild_id2, channel_id, message_id]);
value17(value18, {navigationReplace: value5, welcomeModalChannelId: r5});
return value;
}
guild_id = value16.guild_id;
object.guild_id = guild_id;
channel_id3 = a0.channel_id;
object.channel_id = channel_id3;
id = a0.id;
object.message_id = id;
object.breadcrumb_guild_id = guild_id2;
object.breadcrumb_channel_id = channel_id;
object.breadcrumb_message_id = message_id;
object.did_lurk = r4;
Reflect.apply(track, value15, [FORWARD_BREADCRUMB_CLICKED, object]);
r5 = r4 ? channel_id : value;
binding = env2_1;
value17 = binding(env2_2[7]);
binding = env2_8;
value18 = binding.CHANNEL(guild_id2, channel_id, message_id);
value17(value18, {navigationReplace: value5, welcomeModalChannelId: r5});
}
return value;
}
}
}
global.__d(_fun88102, 11504, [5, 1379, 1867, 661, 6946, 6593, 683, 6837,
2]) /* metro module 11504, dependencies: [5, 1379, 1867, 661, 6946, 6593, 683, 6837, 2] */;