63 lines
4.1 KiB
TypeScript
63 lines
4.1 KiB
TypeScript
/* Metro module 15111; source: modules/search/native/hooks/useAutoSearchGuildChannelTab.tsx; dependencies: [31, 11823, 9675, 11828, 22, 11822, 2] */
|
|
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 Module00022Module from '../../../../by-id/module-00022.js'; /* Metro dependency 22 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as SearchUtilsModule from '../../SearchUtils.tsx'; /* Metro dependency 9675 */
|
|
import * as SearchPlatformConstantsModule from '../SearchPlatformConstants.tsx'; /* Metro dependency 11823 */
|
|
|
|
function _fun115164(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15308:6, offset: 0x024561fa, size: 143 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/search/native/hooks/useAutoSearchGuildChannelTab.tsx');
|
|
exports.useAutoSearchGuildChannelTab = useAutoSearchGuildChannelTab;
|
|
function useAutoSearchGuildChannelTab(a0, a1) { // fn#115165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15308:273, offset: 0x02456289, size: 147 bytes, params: 3, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const value = ReactModule.useCallback(_fun115166, [a0]);
|
|
ReactModule.useEffect(_fun115167, [a1, value]);
|
|
ReactModule.useEffect(_fun115168, [a0, a1, value]);
|
|
ReactModule.useEffect(function() {
|
|
return _fun115170;
|
|
}, [a0]);
|
|
function _fun115166(a0) { // fn#115166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15308:337, offset: 0x0245631c, size: 105 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__;
|
|
const guildIdFromSearchContext = (SearchUtilsModule).getGuildIdFromSearchContext(env0_0);
|
|
if (guildIdFromSearchContext != null) {
|
|
value = importDefault(11828) /* metro dependency 11828: SearchPlatformActionCreators */;
|
|
value.searchGuildChannelTab({searchContext: env0_0, searchQueryString: a0, guildId: guildIdFromSearchContext});
|
|
}
|
|
}
|
|
|
|
function _fun115167() { // fn#115167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15308:494, offset: 0x02456385, size: 29 bytes, params: 1, frame: 11
|
|
if (!require) {
|
|
env0_2('');
|
|
}
|
|
}
|
|
|
|
function _fun115168() { // fn#115168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15308:530, offset: 0x024563a2, size: 96 bytes, params: 1, frame: 18
|
|
if (require) {
|
|
return undefined;
|
|
}
|
|
return (SearchPlatformUtils).subscribeTextInputValue(env0_0,
|
|
Module00022Module.debounce(env0_2, SEARCH_TEXT_INPUT_DEBOUNCE_TIME), true);
|
|
}
|
|
|
|
function _fun115169() { // fn#115169, offset: 0x02456402, size: 11 bytes, params: 1, frame: 1
|
|
return _fun115170;
|
|
function _fun115170() { // fn#115170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15308:646, offset: 0x0245640d, size: 45 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__;
|
|
(SearchPlatformActionCreators).cleanupGuildChannelTab(env1_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun115164, 15111, [31, 11823, 9675, 11828, 22, 11822,
|
|
2]) /* metro module 15111, dependencies: [31, 11823, 9675, 11828, 22, 11822, 2] */;
|