64 lines
4.2 KiB
TypeScript
64 lines
4.2 KiB
TypeScript
/* Metro module 15113; source: modules/search/native/hooks/useAutoSearchPeopleTab.tsx; dependencies: [31, 9674, 11823, 7693, 11828, 22, 11822, 2] */
|
|
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 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 SearchPlatformConstantsModule from '../SearchPlatformConstants.tsx'; /* Metro dependency 11823 */
|
|
|
|
function _fun115177(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15310:6, offset: 0x024566c7, size: 159 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/search/native/hooks/useAutoSearchPeopleTab.tsx');
|
|
exports.useAutoSearchPeopleTab = useAutoSearchPeopleTab;
|
|
function useAutoSearchPeopleTab(a0, a1) { // fn#115178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15310:271, offset: 0x02456766, size: 113 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
ReactModule.useEffect(_fun115179, [a1, a0]);
|
|
ReactModule.useEffect(_fun115180, [a0, a1]);
|
|
ReactModule.useEffect(function() {
|
|
return _fun115183;
|
|
}, [a0]);
|
|
function _fun115179() { // fn#115179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15310:321, offset: 0x024567d7, size: 85 bytes, params: 1, frame: 15
|
|
var value2;
|
|
if (!require) {
|
|
value2 = environment.__proto__;
|
|
(require(7693) /* metro dependency 7693: UserAffinitiesActionCreators */).fetchUserAffinitiesV2();
|
|
(importDefault(11828) /* metro dependency 11828: SearchPlatformActionCreators */).searchPeopleTab(env0_0, '');
|
|
}
|
|
}
|
|
|
|
function _fun115180() { // fn#115180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15310:415, offset: 0x0245682c, size: 98 bytes, params: 1, frame: 17
|
|
if (require) {
|
|
return undefined;
|
|
}
|
|
return (SearchPlatformUtils).subscribeTextInputValue(env0_0,
|
|
(Module00022Module).debounce(_fun115181, SEARCH_TEXT_INPUT_DEBOUNCE_TIME));
|
|
function _fun115181(a0) { // fn#115181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15310:451, offset: 0x0245688e, size: 73 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__.__proto__;
|
|
const searchQueryStoreBinding = SearchQueryStore;
|
|
if (!searchQueryStoreBinding.isAutocompleteVisible(env1_0)) {
|
|
(importDefault(11828) /* metro dependency 11828: SearchPlatformActionCreators */).searchPeopleTab(env1_0, a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun115182() { // fn#115182, offset: 0x024568d7, size: 11 bytes, params: 1, frame: 1
|
|
return _fun115183;
|
|
function _fun115183() { // fn#115183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15310:588, offset: 0x024568e2, size: 45 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__;
|
|
(SearchPlatformActionCreators).cleanupPeopleTab(env1_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun115177, 15113, [31, 9674, 11823, 7693, 11828, 22, 11822,
|
|
2]) /* metro module 15113, dependencies: [31, 9674, 11823, 7693, 11828, 22, 11822, 2] */;
|