/* Metro module 14592; source: modules/hub/native/components/HubSidebar.tsx; dependencies: [31, 27, 1935, 1934, 661, 10980, 33, 4501, 697, 11846, 1305, 566, 14593, 14594, 13144, 1244, 4601, 10375, 9636, 4050, 9151, 2] */ import SelectedChannelStore from '../../../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */ import GuildChannelStore from '../../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */ import BaseChannelItem from '../../../guild_sidebar/native/BaseChannelItem.tsx'; /* Metro dependency 11846 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as InstantInviteUtilsModule from '../../../instant_invite/native/InstantInviteUtils.tsx'; /* Metro dependency 9151 */ import * as RedesignChannelListConstantsModule from '../../../channel_list_v2/native/RedesignChannelListConstants.tsx'; /* Metro dependency 10980 */ import * as BaseChannelItemModule from '../../../guild_sidebar/native/BaseChannelItem.tsx'; /* Metro dependency 11846 */ function _fun110350(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:6, offset: 0x02375f61, size: 333 bytes, params: 8, frame: 23 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; const CHANNEL_MARGIN_VERTICAL = (RedesignChannelListConstantsModule).CHANNEL_MARGIN_VERTICAL; let value = JsxRuntimeModule; const env0_7 = value.jsx; const env0_8 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const object2 = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8}; object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md; const env0_9 = Reflect.apply(createStyles, value, [{container: object2, row: {flex: 1}}]); (FileImportTrackerModule).fileFinishedImporting('modules/hub/native/components/HubSidebar.tsx'); exports.default = _default_110352; function HubItem({IconComponent, label, handleItemClick, active, unreadCount}) { // fn#110351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:356, offset: 0x023760ae, size: 286 bytes, params: 2, frame: 23 const styles = useStyles(); const ChannelModes = (BaseChannelItemModule).ChannelModes; const r9 = active ? ChannelModes.SELECTED : ChannelModes.DEFAULT; const defaultImportProps = {style: styles.container, accessibilityLabel: label, accessibilityRole: 'menuitem', onPress: handleItemClick, disableHighlightOnPress: true, mode: r9}; const BaseChannelName = (BaseChannelItemModule).BaseChannelName; defaultImportProps.name = ; const BaseChannelIcon = (BaseChannelItemModule).BaseChannelIcon; defaultImportProps.icon = ; defaultImportProps.channelInfo = ( unreadCount == null ? null : ((Badge) => )((require(1305) /* metro dependency 1305: native */).Badge) ); return ; } function _default_110352({guild, flashList}) { // fn#110352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:800, offset: 0x023761cc, size: 605 bytes, params: 2, frame: 27 var r0; var items2; var object; const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).t; const useStateFromStores = FluxModule.useStateFromStores; const guildChannelStoreBinding = GuildChannelStore; const value2 = Reflect.apply(useStateFromStores, FluxModule, [[guildChannelStoreBinding], function() { return GuildChannelStore.getDefaultChannel(guild.id); }, [guild.id]]); const styles = useStyles(); const env0_2 = FluxModule.useStateFromStoresObject([guildChannelStoreBinding], function() { return GuildChannelStore.getChannels(guild.id); }); if (value2 == null) { r0 = null; } else { var viewBindingProps = {style: flashList ? styles.row : null}; items2 = [ ((Component) => )(importDefault(14594) /* metro dependency 14594: HubSideBarProgressOverview */), ]; items2[1] = ( ); items2[2] = ( ); items2[3] = ( ); r0 = ( {items2} ); } return r0; function _fun110355() { // fn#110355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:1012, offset: 0x02376469, size: 48 bytes, params: 1, frame: 11 return env0_1 != null && SelectedChannelStore.getChannelId() === env0_1.id; } function _default_110352HandleItemClick() { // fn#110356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:1276, owner: _default_110352.handleItemClick, offset: 0x02376499, size: 50 bytes, params: 1, frame: 12 let value = environment.__proto__; value = require(4601) /* metro dependency 4601: transitionToChannel */; value.transitionToChannel(env0_1.id); } function _default_110352HandleItemClick_110357() { // fn#110357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:1444, owner: _default_110352.handleItemClick, offset: 0x023764cb, size: 81 bytes, params: 1, frame: 14 let value = environment.__proto__; value = importDefault(9636) /* metro dependency 9636: GuildDirectoryAddModalActionCreators */; const open = value.open; const guildBinding = guild; return Reflect.apply(open, value, [{directoryGuildName: guildBinding.name, directoryGuildId: guildBinding.id, directoryChannelId: env0_1.id}]); } function _default_110352HandleItemClick_110358() { // fn#110358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:1648, owner: _default_110352.handleItemClick, offset: 0x0237651c, size: 70 bytes, params: 1, frame: 18 const handleOpenInviteActionsheet = InstantInviteUtilsModule.handleOpenInviteActionsheet; const guildBinding = guild; const id = env0_1.id; const binding = env0_2; const GUILD_HEADER = InstantInviteSources.GUILD_HEADER; Reflect.apply(handleOpenInviteActionsheet, InstantInviteUtilsModule, [guildBinding, id, binding, GUILD_HEADER]); } } } global.__d(_fun110350, 14592, [31, 27, 1935, 1934, 661, 10980, 33, 4501, 697, 11846, 1305, 566, 14593, 14594, 13144, 1244, 4601, 10375, 9636, 4050, 9151, 2]) /* metro module 14592, dependencies: [31, 27, 1935, 1934, 661, 10980, 33, 4501, 697, 11846, 1305, 566, 14593, 14594, 13144, 1244, 4601, 10375, 9636, 4050, 9151, 2] */;