Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,122 @@
|
||||
/* Metro module 11276; source: modules/guild_onboarding_home/isSelectedFromHomeChannel.native.tsx; dependencies: [4791, 1934, 1386, 4008, 4007, 2] */
|
||||
function _fun86115(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11462:6, offset: 0x01f883f4, size: 144 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importDefault(4791) /* metro dependency 4791: ChannelSectionStore */;
|
||||
importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const env0_2 = (require(1386) /* metro dependency 1386: ChannelConstants */).isGuildHomeChannel;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_onboarding_home/isSelectedFromHomeChannel.native.tsx');
|
||||
exports.default = isSelectedFromHomeChannel;
|
||||
}
|
||||
|
||||
function isSelectedFromHomeChannel(a0) { // fn#86116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11462:258, offset: 0x01f88484, size: 380 bytes, params: 2, frame: 25
|
||||
var r8;
|
||||
var r0;
|
||||
var getRootState;
|
||||
var value3;
|
||||
var moduleValue2;
|
||||
var coerceMainRoute;
|
||||
var routes;
|
||||
var index;
|
||||
var value4;
|
||||
var state;
|
||||
var property;
|
||||
var moduleValue3;
|
||||
var coerceChannelRoute;
|
||||
var value5;
|
||||
var params;
|
||||
var channelId;
|
||||
var id;
|
||||
var moduleValue4;
|
||||
var value6;
|
||||
var value7;
|
||||
var guildId;
|
||||
var guild_id;
|
||||
var value8;
|
||||
var isGuildHomeChannelBinding;
|
||||
let value = environment;
|
||||
const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef();
|
||||
if (rootNavigationRef != null) {
|
||||
reducibleJoin18: while (true) {
|
||||
if (rootNavigationRef.isReady()) {
|
||||
getRootState = rootNavigationRef.getRootState;
|
||||
value3 = Reflect.apply(getRootState, rootNavigationRef, []);
|
||||
if (value3 == null) {
|
||||
return false;
|
||||
}
|
||||
moduleValue2 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
|
||||
coerceMainRoute = moduleValue2.coerceMainRoute;
|
||||
routes = value3.routes;
|
||||
index = value3.index;
|
||||
value4 = Reflect.apply(coerceMainRoute, moduleValue2, [routes[index]]);
|
||||
if (value4 == null) {
|
||||
return false;
|
||||
}
|
||||
state = value4.state;
|
||||
if (state == null) {
|
||||
return false;
|
||||
}
|
||||
index = state.index;
|
||||
if (index >= 0) {
|
||||
r8 = index;
|
||||
reducibleLoop6: while (true) {
|
||||
routes = state.routes;
|
||||
property = routes[r8];
|
||||
if (property != null) {
|
||||
moduleValue3 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
|
||||
coerceChannelRoute = moduleValue3.coerceChannelRoute;
|
||||
value5 = Reflect.apply(coerceChannelRoute, moduleValue3, [property]);
|
||||
reducibleJoin10: while (true) {
|
||||
if (value5 == null) {
|
||||
break reducibleJoin10;
|
||||
}
|
||||
params = value5.params;
|
||||
channelId = params.channelId;
|
||||
id = a0.id;
|
||||
if (channelId !== id) {
|
||||
break reducibleJoin10;
|
||||
}
|
||||
moduleValue4 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
|
||||
coerceChannelRoute = moduleValue4.coerceChannelRoute;
|
||||
routes = state.routes;
|
||||
value6 = Reflect.apply(coerceChannelRoute, moduleValue4, [routes[r8 - 1]]);
|
||||
if (value6 != null) {
|
||||
break reducibleLoop6;
|
||||
}
|
||||
break reducibleJoin10;
|
||||
}
|
||||
}
|
||||
value7 = typeof r8 === 'bigint' ? r8 - 1n : +r8 - 1;
|
||||
if (!(value7 >= 0)) {
|
||||
return false;
|
||||
}
|
||||
r8 = value7;
|
||||
continue reducibleLoop6;
|
||||
}
|
||||
params = value6.params;
|
||||
guildId = params.guildId;
|
||||
guild_id = a0.guild_id;
|
||||
value8 = guildId === guild_id;
|
||||
reducibleJoin14: while (true) {
|
||||
if (value8) {
|
||||
isGuildHomeChannelBinding = isGuildHomeChannel;
|
||||
params = value6.params;
|
||||
channelId = params.channelId;
|
||||
value = isGuildHomeChannelBinding(channelId);
|
||||
r0 = value;
|
||||
break reducibleJoin14;
|
||||
}
|
||||
r0 = value8;
|
||||
break reducibleJoin14;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
break reducibleJoin18;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user