Files
2026-07-28 01:06:53 +03:00

130 lines
6.4 KiB
TypeScript

/* Metro module 11276; source: modules/guild_onboarding_home/isSelectedFromHomeChannel.native.tsx; dependencies: [4791, 1934, 1386, 4008, 4007, 2] */
import SelectedChannelStore from '../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import ChannelSectionStore from '../../stores/ChannelSectionStore.tsx'; /* Metro dependency 4791 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
import * as RootNavigationRefNativeModule from '../main_tabs_v2/RootNavigationRef.native.tsx'; /* Metro dependency 4008 */
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});
ChannelSectionStore;
SelectedChannelStore;
(FileImportTrackerModule).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 = (RootNavigationRefNativeModule).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;
}
}
global.__d(_fun86115, 11276, [4791, 1934, 1386, 4008, 4007,
2]) /* metro module 11276, dependencies: [4791, 1934, 1386, 4008, 4007, 2] */;