/* Metro module 11275; source: modules/guild_onboarding_home/useIsSelectedResourceChannel.tsx; dependencies: [4791, 1379, 1934, 661, 1386, 632, 1391, 11276, 5103, 2] */ function _fun86112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11461:6, offset: 0x01f8822f, size: 194 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const channelSectionStore = importDefault(4791) /* metro dependency 4791: ChannelSectionStore */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */; const env0_6 = (require(661) /* metro dependency 661: Constants */).EMPTY_STRING_SNOWFLAKE_ID; const env0_7 = (require(1386) /* metro dependency 1386: ChannelConstants */).ChannelFlags; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_onboarding_home/useIsSelectedResourceChannel.tsx'); exports.default = useIsSelectedResourceChannel; } function useIsSelectedResourceChannel(a0) { // fn#86113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11461:291, offset: 0x01f882f1, size: 128 bytes, params: 2, frame: 18 const env0_0 = a0; const guild_id = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChannelStore, SelectedChannelStore, ChannelSectionStore], _fun86114); return guild_id != null && (require(5103) /* metro dependency 5103: OnboardingHomeUtils */).useCanSeeOnboardingHome(guild_id ?? EMPTY_STRING_SNOWFLAKE_ID); } function _fun86114() { // fn#86114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11461:374, offset: 0x01f88371, size: 131 bytes, params: 1, frame: 17 const channel = ChannelStore.getChannel(env0_0); if (channel != null) { var moduleValue = require(1391) /* metro dependency 1391: FlagUtils */; var hasFlag = moduleValue.hasFlag; var flags = channel.flags; var IS_GUILD_RESOURCE_CHANNEL = ChannelFlags.IS_GUILD_RESOURCE_CHANNEL; if (Reflect.apply(hasFlag, moduleValue, [flags, IS_GUILD_RESOURCE_CHANNEL])) { if ((importDefault(11276) /* metro dependency 11276: isSelectedFromHomeChannelNative */)(channel, SelectedChannelStore, ChannelSectionStore)) { return channel.guild_id; } return undefined; } } }