303 lines
12 KiB
TypeScript
303 lines
12 KiB
TypeScript
/* Metro module 11504; source: modules/forwarding/handleForwardBreadcrumb.tsx; dependencies: [5, 1379, 1867, 661, 6946, 6593, 683, 6837, 2] */
|
|
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});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_6 = constantsModule.AnalyticEvents;
|
|
const env0_7 = constantsModule.AnalyticsObjects;
|
|
const env0_8 = constantsModule.Routes;
|
|
(require(2) /* metro dependency 2 */).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 env0_3(_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 object3;
|
|
var FORWARD_BREADCRUMB;
|
|
var object4;
|
|
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 {
|
|
object3 = {};
|
|
} 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 {
|
|
object3.object = FORWARD_BREADCRUMB;
|
|
} catch (error) {
|
|
r4 = value5;
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
r4 = value5;
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object4.shouldNavigate = value5;
|
|
} catch (error) {
|
|
r4 = value5;
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(startLurking, value6, [guild_id2, object3, object4]);
|
|
} 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;
|
|
object3.guild_id = guild_id;
|
|
channel_id3 = a0.channel_id;
|
|
object3.channel_id = channel_id3;
|
|
id = a0.id;
|
|
object3.message_id = id;
|
|
object3.breadcrumb_guild_id = guild_id2;
|
|
object3.breadcrumb_channel_id = channel_id;
|
|
object3.breadcrumb_message_id = message_id;
|
|
object3.did_lurk = r4;
|
|
Reflect.apply(track, value15, [FORWARD_BREADCRUMB_CLICKED, object3]);
|
|
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;
|
|
}
|
|
|