96 lines
2.8 KiB
TypeScript
96 lines
2.8 KiB
TypeScript
// Metro module 11460 (f11461).
|
|
import { SearchTypes } from "../../../Constants";
|
|
import "./stores/SearchTabsLayoutStore";
|
|
import "./stores/SearchQueryStore";
|
|
import { getSearchContextId } from "../SearchUtils";
|
|
import Dispatcher from "../../../Dispatcher";
|
|
const r20 = {
|
|
searchPeopleTab: function searchPeopleTab(a0, a1) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_PEOPLE_TAB_SEARCH",
|
|
id: getSearchContextId(a0),
|
|
searchQueryString: a1
|
|
});
|
|
},
|
|
cleanupPeopleTab: function cleanupPeopleTab(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_PEOPLE_TAB_CLEANUP",
|
|
id: getSearchContextId(a0)
|
|
});
|
|
},
|
|
searchGuildMemberTab: function searchGuildMemberTab({ searchContext, searchQueryString, guildId, channelId, threadId }) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_GUILD_MEMBER_TAB_SEARCH",
|
|
id: getSearchContextId(searchContext),
|
|
searchQueryString,
|
|
guildId,
|
|
channelId,
|
|
threadId
|
|
});
|
|
},
|
|
cleanupGuildMemberTab: function cleanupGuildMemberTab(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_GUILD_MEMBER_TAB_CLEANUP",
|
|
id: getSearchContextId(a0)
|
|
});
|
|
},
|
|
searchGuildChannelTab: function searchGuildChannelTab({ searchContext, searchQueryString, guildId }) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_GUILD_CHANNEL_TAB_SEARCH",
|
|
id: getSearchContextId(searchContext),
|
|
searchQueryString,
|
|
guildId
|
|
});
|
|
},
|
|
cleanupGuildChannelTab: function cleanupGuildChannelTab(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_GUILD_CHANNEL_TAB_CLEANUP",
|
|
id: getSearchContextId(a0)
|
|
});
|
|
},
|
|
addSearchHistoryItem: function addSearchHistoryItem(a0, a1) {
|
|
if (!(a0.type !== SearchTypes.DMS && a0.type !== SearchTypes.GUILD)) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_HISTORY_NATIVE_ADD_ITEM",
|
|
id: getSearchContextId(a0),
|
|
item: a1
|
|
});
|
|
}
|
|
},
|
|
removeSearchHistoryItem: function removeSearchHistoryItem(a0, a1) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_HISTORY_NATIVE_REMOVE_ITEM",
|
|
id: getSearchContextId(a0),
|
|
item: a1
|
|
});
|
|
},
|
|
clearSearchHistory: function clearSearchHistory(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_HISTORY_NATIVE_CLEAR_ITEMS",
|
|
id: getSearchContextId(a0)
|
|
});
|
|
},
|
|
updateSearchQuery: function updateSearchQuery(a0, a1) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_QUERY_NATIVE_UPDATE",
|
|
id: getSearchContextId(a0),
|
|
searchContext: a0,
|
|
updater: a1
|
|
});
|
|
},
|
|
deleteSearchQuery: function deleteSearchQuery(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_QUERY_NATIVE_DELETE",
|
|
id: getSearchContextId(a0)
|
|
});
|
|
},
|
|
initializeSearchQuery: function initializeSearchQuery(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "SEARCH_QUERY_NATIVE_INITIALIZE",
|
|
id: getSearchContextId(a0),
|
|
searchContext: a0
|
|
});
|
|
}
|
|
};
|
|
export default r20;
|