/* Metro module 9810; source: modules/media_channel/useShouldHideMediaOptions.tsx; dependencies: [1379, 1386, 632, 2] */ function _fun76836(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9996:6, offset: 0x01de6ef1, size: 136 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const env0_3 = (require(1386) /* metro dependency 1386: ChannelConstants */).ChannelFlags; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media_channel/useShouldHideMediaOptions.tsx'); exports.default = useShouldHideMediaOptions; } function useShouldHideMediaOptions(a0) { // fn#76837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9996:224, offset: 0x01de6f79, size: 102 bytes, params: 2, frame: 16 const env0_0 = a0; const value2 = undefined; const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChannelStore], _fun76838); return (value3 == null ? value2 : value3.hasFlag(ChannelFlags.HIDE_MEDIA_DOWNLOAD_OPTIONS)) === true; } function _fun76838() { // fn#76838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9996:300, offset: 0x01de6fdf, size: 96 bytes, params: 1, frame: 14 const value = environment.__proto__; const channel = ChannelStore.getChannel(env0_0); const value4 = null; const value5 = undefined; return value4 != (value4 == channel ? value5 : channel.parent_id) && channel.isForumPost() ? ChannelStore.getChannel(value4 == channel ? value5 : channel.parent_id) : value4; }