/* Metro module 15036; source: modules/search/native/hooks/useOnPressSearchItem.tsx; dependencies: [5, 31, 1379, 9674, 9615, 15037, 9614, 661, 1386, 11822, 11828, 1471, 3856, 1244, 8872, 3853, 1484, 15015, 15038, 1239, 9544, 4603, 4601, 8113, 1962, 7709, 5072, 9440, 6632, 6664, 8919, 1230, 9673, 2] */ import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */ import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import Linking from '../../../../lib/native/Linking.tsx'; /* Metro dependency 3853 */ import ChannelActionCreators from '../../../../actions/ChannelActionCreators.tsx'; /* Metro dependency 4603 */ import SearchQueryStore from '../stores/SearchQueryStore.tsx'; /* Metro dependency 9674 */ import SearchPlatformUtils from '../SearchPlatformUtils.tsx'; /* Metro dependency 11822 */ import SearchPlatformActionCreators from '../SearchPlatformActionCreators.tsx'; /* Metro dependency 11828 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as ChannelConstantsModule from '../../../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */ import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */ import * as TransitionToChannelModule from '../../../routing/transitionToChannel.tsx'; /* Metro dependency 4601 */ import * as TrackingConstantsModule from '../tracking/TrackingConstants.tsx'; /* Metro dependency 9614 */ import * as SearchConstantsModule from '../../SearchConstants.tsx'; /* Metro dependency 9615 */ import * as SearchPlatformUtilsModule from '../SearchPlatformUtils.tsx'; /* Metro dependency 11822 */ import * as SwipeForMemberListWrapperModule from '../../../main_tabs_v2/native/channel/SwipeForMemberListWrapper.tsx'; /* Metro dependency 15015 */ import * as SearchNavigatorConstantsModule from '../components/navigator/SearchNavigatorConstants.tsx'; /* Metro dependency 15037 */ function _fun113772(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:6, offset: 0x02405e0b, size: 483 bytes, params: 8, frame: 20 const env0_0 = require; const addCurrentSearchQueryToSearchHistory = function(a0) { addSearchHistoryItem_113773(a0, {type: SearchHistoryItemTypes.TEXT, text: SearchQueryStore.getTextInputValue(a0), tags: SearchQueryStore.getTags(a0)}); }; const closure = function() { return _handleVoiceOrStageChannelConnectPress_113779.apply(this, arguments); }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = SearchConstantsModule; const env0_7 = value.SearchMediaTypes; const env0_8 = value.SearchHistoryItemTypes; const env0_9 = value.SearchQueryTagTypes; value = require(661) /* metro dependency 661: Constants */; const env0_12 = value.Routes; const env0_13 = value.ComponentActions; const env0_14 = value.ME; const env0_15 = value.SearchTypes; (FileImportTrackerModule).fileFinishedImporting('modules/search/native/hooks/useOnPressSearchItem.tsx'); exports.useOnPressSearchLink = useOnPressSearchLink; exports.useOnPressMessageItem = useOnPressMessageItem; exports.useOnPressMediaItem = useOnPressMediaItem; exports.useOnPressGroupDMItem = useOnPressGroupDMItem; exports.useOnPressDMItem = useOnPressDMItem; exports.useOnPressGuildTextChannel = useOnPressGuildTextChannel; exports.handleVoiceOrStageChannelConnectPress = closure; exports.useOnPressGuildVoiceChannel = useOnPressGuildVoiceChannel; exports.useOnPressSearchHistoryText = useOnPressSearchHistoryText; function addSearchHistoryItem_113773(a0, a1) { // fn#113773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:380, offset: 0x02405fee, size: 96 bytes, params: 3, frame: 12 const env0_0 = a0; const env0_1 = a1; const type = a0.type; const DMS = SearchTypes.DMS; if (DMS === type) { (require(11822) /* metro dependency 11822: SearchPlatformUtils */).delayUntilNavigationComplete(_fun113774); } else if (SearchTypes.GUILD === type) { (require(11822) /* metro dependency 11822: SearchPlatformUtils */).delayUntilNavigationComplete(_fun113774); } function _fun113774() { // fn#113774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:492, offset: 0x0240604e, size: 50 bytes, params: 1, frame: 13 let value = environment.__proto__; value = importDefault(11828) /* metro dependency 11828: SearchPlatformActionCreators */; return value.addSearchHistoryItem(env0_0, require); } } function navigateToSearchPreview(a0, a1, a2, a3) { // fn#113776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:679, offset: 0x024060cb, size: 171 bytes, params: 5, frame: 16 var r6; var environment; var r2; var navigate; var object; var object2; const env0_0 = a1; const env0_1 = a3; const object3 = {}; object3.channelId = a1.id; let value = a1.getGuildId(); if (value != null) { r2 = value; } else { value = environment; r2 = ME; r6 = value; } object3.guildId = r2; object3.searchContext = a2; if (a3 != null) { navigate = a0.navigate; object = {}; object.screen = SearchNavigatorScreens.SEARCH_CHAT_PREVIEW; object2 = {}; copyDataProperties(object2, object3, r6); object2['onBeforeJumpToMessage'] = function() { var ComponentDispatch = require(dependencyMap[19]).ComponentDispatch; var HIDE_CHANNEL_DETAILS = ComponentActions.HIDE_CHANNEL_DETAILS; ComponentDispatch.dispatch(HIDE_CHANNEL_DETAILS, {channelId: require.id, screenIndex: importAll.screenIndex}); }; object.params = object2; Reflect.apply(navigate, a0, ['sidebar', object]); } else { a0.navigate(SearchNavigatorScreens.SEARCH_CHAT_PREVIEW, object3); } } function _handleVoiceOrStageChannelConnectPress_113779() { // fn#113779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:1158, offset: 0x024061cd, size: 50 bytes, params: 1, frame: 14 return Module00005(_fun113781).apply(this, arguments); function* _fun113781(a0) { // fn#113781, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:1257, offset: 0x0240620a, size: 150 bytes, params: 2, frame: 17 if (true) { value = a0.isGuildStageVoice(); var binding = env2_0; var binding2 = env2_2; var value4 = binding(binding2[24]); if (value) { yield value4(binding2[23], binding2.paths); value = undefined; if (false) { return value; } value.connectAndOpen(a0); } else { yield value4(binding2[25], binding2.paths); value = undefined; if (false) { return value; } value.openGuildVoiceModal(a0, 'Channel List'); } } } } function useOnPressSearchLink(a0) { // fn#113782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:1556, offset: 0x024062a0, size: 44 bytes, params: 2, frame: 14 const env0_0 = a0; return ReactModule.useCallback(_fun113783, [a0]); function _fun113783(a0, a1) { // fn#113783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:1611, offset: 0x024062cc, size: 261 bytes, params: 3, frame: 20 var environment; const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).t; var value4; const env0_0 = a1; let value = environment.__proto__; addCurrentSearchQueryToSearchHistory(env0_0); const value3 = (importDefault(1471) /* metro dependency 1471: URLUtils */).safeParseWithQuery(a0); if (value3 == null) { value = require(3856) /* metro dependency 3856: ToastUtils */; value.presentFailedToast(intl.string(t.XiqzAp)); } else if (value3.protocol == null) { value = require(3856) /* metro dependency 3856: ToastUtils */; value.presentFailedToast(intl.string(t.XiqzAp)); } else if (value3.hostname != null) { value4 = (importDefault(1471) /* metro dependency 1471: URLUtils */).format(value3); value = require(8872) /* metro dependency 8872: MaskedLinkUtils */; value.handleClick({href: value4, onConfirm: onConfirm_113784, trusted: function() { return require; }}); } else { value = require(3856) /* metro dependency 3856: ToastUtils */; value.presentFailedToast(intl.string(t.XiqzAp)); } function onConfirm_113784() { // fn#113784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:1808, offset: 0x024063d1, size: 45 bytes, params: 1, frame: 11 const value = environment.__proto__.__proto__; return (Linking).openURL(env0_1); } } } function useOnPressMessageItem({searchContext}) { // fn#113786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:1954, offset: 0x024063fe, size: 127 bytes, params: 2, frame: 18 const value2 = (UseNavigationNativeModule).useNavigation(); const useContext = ReactModule.useContext; const SwipeForMemberListContext = (SwipeForMemberListWrapperModule).SwipeForMemberListContext; return ReactModule.useCallback(_fun113787, [value2, searchContext, Reflect.apply(useContext, ReactModule, [SwipeForMemberListContext])]); function _fun113787(a0, a1) { // fn#113787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:2108, offset: 0x0240647d, size: 123 bytes, params: 3, frame: 17 var environment; const value = environment.__proto__; if (ChannelStore.getChannel(a0) != null) { addCurrentSearchQueryToSearchHistory(searchContext); (importDefault(15038) /* metro dependency 15038: MessagePreviewActionCreators */).fetchMessages(a0, a1); (require(11822) /* metro dependency 11822: SearchPlatformUtils */).performKeyboardAwareNavigation(_fun113788); } function _fun113788() { // fn#113788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:2256, offset: 0x024064f8, size: 39 bytes, params: 1, frame: 17 navigateToSearchPreview(env1_1, env0_0, searchContext, env1_2); } } } function useOnPressMediaItem({searchContext, allMediaResults, onEndReached, onEndReachedThreshold}) { // fn#113789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:2332, offset: 0x0240651f, size: 169 bytes, params: 2, frame: 21 const value2 = (UseNavigationNativeModule).useNavigation(); const binding = value2; const useContext = binding.useContext; const SwipeForMemberListContext = (SwipeForMemberListWrapperModule).SwipeForMemberListContext; return binding.useCallback(_fun113790, [searchContext, value2, Reflect.apply(useContext, binding, [SwipeForMemberListContext]), allMediaResults, onEndReached, onEndReachedThreshold]); function _fun113790(a0, a1) { // fn#113790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:2541, offset: 0x024065c8, size: 333 bytes, params: 3, frame: 18 var environment; var channelStoreBinding; var getChannel; var channelId; var defaultImport; var fetchMessages; const env0_0 = a0; const value = environment.__proto__; addCurrentSearchQueryToSearchHistory(searchContext); const type = a0.type; const AUDIO = SearchMediaTypes.AUDIO; if (AUDIO === type) { channelStoreBinding = ChannelStore; getChannel = channelStoreBinding.getChannel; channelId = a0.channelId; if (Reflect.apply(getChannel, channelStoreBinding, [channelId]) == null) { return undefined; } defaultImport = importDefault(15038) /* metro dependency 15038: MessagePreviewActionCreators */; fetchMessages = defaultImport.fetchMessages; channelId = a0.channelId; Reflect.apply(fetchMessages, defaultImport, [channelId, a0.messageId]); (require(11822) /* metro dependency 11822: SearchPlatformUtils */).performKeyboardAwareNavigation(_fun113791); } else { var ATTACHMENT = SearchMediaTypes.ATTACHMENT; if (ATTACHMENT === type) { var env0_3 = 0; allMediaResults.forEach(_fun113792); (require(9544) /* metro dependency 9544: openMediaModal */).openMediaModal({initialSources: [], initialIndex: env0_3, onEndReached: onEndReached, onEndReachedThreshold: onEndReachedThreshold, analyticsSource: 'Search', originViewOrOriginLayout: a1}); } else if (SearchMediaTypes.EMBED === type) { var env0_3 = 0; allMediaResults.forEach(_fun113792); (require(9544) /* metro dependency 9544: openMediaModal */).openMediaModal({initialSources: [], initialIndex: env0_3, onEndReached: onEndReached, onEndReachedThreshold: onEndReachedThreshold, analyticsSource: 'Search', originViewOrOriginLayout: a1}); } else if (SearchMediaTypes.COMPONENT === type) { var env0_3 = 0; allMediaResults.forEach(_fun113792); (require(9544) /* metro dependency 9544: openMediaModal */).openMediaModal({initialSources: [], initialIndex: env0_3, onEndReached: onEndReached, onEndReachedThreshold: onEndReachedThreshold, analyticsSource: 'Search', originViewOrOriginLayout: a1}); } } function _fun113791() { // fn#113791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:2767, offset: 0x02406715, size: 39 bytes, params: 1, frame: 17 navigateToSearchPreview(env1_4, env0_1, searchContext, env1_5); } function _fun113792(a0) { // fn#113792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:2884, offset: 0x0240673c, size: 162 bytes, params: 2, frame: 13 var binding; const type = a0.type; const value = environment.__proto__.__proto__; const ATTACHMENT = SearchMediaTypes.ATTACHMENT; if (!(type !== ATTACHMENT && a0.type !== SearchMediaTypes.EMBED && a0.type !== SearchMediaTypes.COMPONENT)) { binding = ReactModule; binding.push(a0.sources); if (a0.messageId === env0_0.messageId && a0.mediaIndex === env0_0.mediaIndex) { } binding = env0_2; env0_2 = typeof binding === 'bigint' ? binding + 1n : +binding + 1; } } } } function useOnPressGroupDMItem({searchContext}) { // fn#113793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:3233, offset: 0x024067de, size: 90 bytes, params: 2, frame: 15 return ReactModule.useCallback(_fun113794, [(UseNavigationNativeModule).useNavigation(), searchContext]); function _fun113794(a0) { // fn#113794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:3336, offset: 0x02406838, size: 153 bytes, params: 2, frame: 17 var environment; const env0_0 = a0; const value = environment.__proto__; const addSearchHistoryItem_113773Binding = addSearchHistoryItem_113773; const searchContextBinding = searchContext; const GROUP_DM = SearchHistoryItemTypes.GROUP_DM; addSearchHistoryItem_113773Binding(searchContextBinding, {type: GROUP_DM, channelId: a0}); const parent = env0_1.getParent(); if (parent != null) { parent.goBack(); } (ChannelActionCreators).preload(ME, a0); (SearchPlatformUtilsModule).performKeyboardAwareNavigation(_fun113795); function _fun113795() { // fn#113795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:3498, offset: 0x024068d1, size: 45 bytes, params: 1, frame: 12 const value = environment.__proto__.__proto__; (TransitionToChannelModule).transitionToChannel(env0_0); } } } function useOnPressDMItem({searchContext}) { // fn#113796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:3567, offset: 0x024068fe, size: 90 bytes, params: 2, frame: 15 return ReactModule.useCallback(_fun113797, [(UseNavigationNativeModule).useNavigation(), searchContext]); function _fun113797(a0, a1) { // fn#113797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:3665, offset: 0x02406958, size: 156 bytes, params: 3, frame: 17 var environment; const env0_0 = a1; const value = environment.__proto__; const addSearchHistoryItem_113773Binding = addSearchHistoryItem_113773; const searchContextBinding = searchContext; const DM = SearchHistoryItemTypes.DM; addSearchHistoryItem_113773Binding(searchContextBinding, {type: DM, userId: a0}); const parent = env0_1.getParent(); if (parent != null) { parent.goBack(); } (ChannelActionCreators).preload(ME, a1); (SearchPlatformUtilsModule).performKeyboardAwareNavigation(_fun113798); return a1; function _fun113798() { // fn#113798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:3829, offset: 0x024068d1, size: 45 bytes, params: 1, frame: 12 const value = environment.__proto__.__proto__; (TransitionToChannelModule).transitionToChannel(require); } } } function useOnPressGuildTextChannel({searchContext}) { // fn#113799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:3910, offset: 0x024069f4, size: 50 bytes, params: 2, frame: 14 return ReactModule.useCallback(_fun113800, [searchContext]); function _fun113800(a0) { // fn#113800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:3987, offset: 0x02406a26, size: 159 bytes, params: 2, frame: 18 var environment; const value = environment.__proto__; const channel = ChannelStore.getChannel(a0); if (channel == null) { return null; } const addSearchHistoryItem_113773Binding = addSearchHistoryItem_113773; const searchContextBinding = searchContext; const GUILD_TEXT_CHANNEL = SearchHistoryItemTypes.GUILD_TEXT_CHANNEL; addSearchHistoryItem_113773Binding(searchContextBinding, {type: GUILD_TEXT_CHANNEL, channelId: channel.id}); const defaultImport = ChannelActionCreators; defaultImport.preload(channel.guild_id, channel.id); (SearchPlatformUtilsModule).performKeyboardAwareNavigation(_fun113801); function _fun113801() { // fn#113801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:4177, offset: 0x02406ac5, size: 50 bytes, params: 1, frame: 11 let value = environment.__proto__.__proto__; value = require(4601) /* metro dependency 4601: transitionToChannel */; return value.transitionToChannel(env0_0.id); } } } function useOnPressGuildVoiceChannel({searchContext}) { // fn#113802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:4334, offset: 0x02406af7, size: 109 bytes, params: 2, frame: 16 return ReactModule.useCallback(_fun113809, [(UseNavigationNativeModule).useNavigation(), useVoiceChannelOnPressHandler(), searchContext]); function useVoiceChannelOnPressHandler() { // fn#113803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:4423, owner: useOnPressGuildVoiceChannel.useVoiceChannelOnPressHandler, offset: 0x02406b64, size: 39 bytes, params: 1, frame: 13 var environment; const value = environment.__proto__; return env1_4.useCallback(_fun113804(), []); function _fun113804() { // fn#113804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:4485, offset: 0x02406b8b, size: 36 bytes, params: 1, frame: 12 const env0_0 = env2_3(_fun113806); return _fun113808; function* _fun113806(a0) { // fn#113806, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:4505, offset: 0x02406bba, size: 359 bytes, params: 2, frame: 21 var environment; var r3; var value9; var transitionTo; var binding2; if (false) { return undefined; } const env0_0 = a0; value = environment.__proto__.__proto__.__proto__.__proto__; let binding = env4_0; const value3 = undefined; const value4 = binding(env4_2[26]); if (value4.maybeOpenAgeGateForVoiceChannel(a0.id)) { return value3; } const value5 = env4_0(env4_2[27]); if (value5.maybeOpenSpoilerGateForVoiceChannel(a0.id)) { return value3; } const value6 = env4_0(env4_2[28]); const getChannelRoleSubscriptionStatus = value6.getChannelRoleSubscriptionStatus; const needSubscriptionToAccess = Reflect.apply(getChannelRoleSubscriptionStatus, value6, [a0.id]).needSubscriptionToAccess; const guildId = a0.getGuildId(); if (guildId != null) { var value8 = env4_0(env4_2[29]); if (value8.shouldShowMembershipVerificationGate(guildId)) { binding = env4_0; binding2 = env4_2; value = binding(binding2[24]); yield value(binding2[30], binding2.paths); value = undefined; if (false) { return value; } value = value.openMemberVerificationModal(guildId, _fun113807); return value; } } if (needSubscriptionToAccess) { binding = env4_0; value9 = binding(env4_2[31]); transitionTo = value9.transitionTo; binding = env4_12; r3 = Reflect.apply(transitionTo, value9, [binding.CHANNEL(a0.guild_id, env4_16.ROLE_SUBSCRIPTIONS)]); } else { env4_20(a0); r3 = value3; } return r3; function _fun113807() { // fn#113807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:4851, offset: 0x02406d21, size: 23 bytes, params: 1, frame: 11 return env5_20(env0_0); } } function _fun113808() { // fn#113808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:5023, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } } function _fun113809(a0) { // fn#113809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:5098, offset: 0x02406d38, size: 146 bytes, params: 2, frame: 18 var environment; const value = environment.__proto__; const channel = ChannelStore.getChannel(a0); if (channel == null) { return null; } const addSearchHistoryItem_113773Binding = addSearchHistoryItem_113773; const searchContextBinding = searchContext; const GUILD_VOICE_CHANNEL = SearchHistoryItemTypes.GUILD_VOICE_CHANNEL; addSearchHistoryItem_113773Binding(searchContextBinding, {type: GUILD_VOICE_CHANNEL, channelId: channel.id}); const parent = env0_1.getParent(); if (parent != null) { parent.goBack(); } (SearchPlatformUtilsModule).performKeyboardAwareNavigation(_fun113810); function _fun113810() { // fn#113810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:5293, offset: 0x016f88b2, size: 23 bytes, params: 1, frame: 11 return env1_2(env0_0); } } } function useOnPressSearchHistoryText({searchContext}) { // fn#113811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:5346, offset: 0x02406dca, size: 50 bytes, params: 2, frame: 14 return ReactModule.useCallback(_fun113812, [searchContext]); function _fun113812(a0, a1) { // fn#113812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:5424, offset: 0x02406dfc, size: 150 bytes, params: 3, frame: 18 var environment; const env0_0 = a0; const env0_1 = a1; const value = environment.__proto__; const addSearchHistoryItem_113773Binding = addSearchHistoryItem_113773; const searchContextBinding = searchContext; const TEXT = SearchHistoryItemTypes.TEXT; addSearchHistoryItem_113773Binding(searchContextBinding, {type: TEXT, text: a0, tags: a1}); (SearchPlatformActionCreators).updateSearchQuery(searchContextBinding, _fun113813); (SearchPlatformUtils).fetchInitialMessages(searchContextBinding); if (a1 != null) { a1.forEach(_fun113814); } function _fun113813(a0) { // fn#113813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:5514, offset: 0x02406e92, size: 50 bytes, params: 2, frame: 12 if (require != null) { a0.setTags(require); } a0.setTextInputValue(env0_0); } function _fun113814(a0) { // fn#113814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15233:5618, offset: 0x02406ec4, size: 101 bytes, params: 2, frame: 14 var defaultImport; var trackSearchFilterAdd; var value2; const type = a0.type; const COMPLETE = SearchQueryTagTypes.COMPLETE; if (type === COMPLETE) { defaultImport = importDefault(9673) /* metro dependency 9673: Tracking */; trackSearchFilterAdd = defaultImport.trackSearchFilterAdd; value2 = environment.__proto__; Reflect.apply(trackSearchFilterAdd, defaultImport, [{searchContext: searchContext, searchTokenType: a0.searchTokenType, location: SearchFilterAddLocations.SEARCH_HISTORY}]); } } } } } global.__d(_fun113772, 15036, [5, 31, 1379, 9674, 9615, 15037, 9614, 661, 1386, 11822, 11828, 1471, 3856, 1244, 8872, 3853, 1484, 15015, 15038, 1239, 9544, 4603, 4601, 8113, 1962, 7709, 5072, 9440, 6632, 6664, 8919, 1230, 9673, 2]) /* metro module 15036, dependencies: [5, 31, 1379, 9674, 9615, 15037, 9614, 661, 1386, 11822, 11828, 1471, 3856, 1244, 8872, 3853, 1484, 15015, 15038, 1239, 9544, 4603, 4601, 8113, 1962, 7709, 5072, 9440, 6632, 6664, 8919, 1230, 9673, 2] */;