/* Metro module 11275; source: modules/guild_onboarding_home/useIsSelectedResourceChannel.tsx; dependencies: [4791, 1379, 1934, 661, 1386, 632, 1391, 11276, 5103, 2] */ import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ 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 UseStateFromStoresModule from '../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */ import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ import * as ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */ 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}); (FileImportTrackerModule).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 = (UseStateFromStoresModule).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; } } } } } global.__d(_fun86112, 11275, [4791, 1379, 1934, 661, 1386, 632, 1391, 11276, 5103, 2]) /* metro module 11275, dependencies: [4791, 1379, 1934, 661, 1386, 632, 1391, 11276, 5103, 2] */;