57 lines
3.4 KiB
TypeScript
57 lines
3.4 KiB
TypeScript
/* Metro module 15113; source: modules/search/native/hooks/useAutoSearchPeopleTab.tsx; dependencies: [31, 9674, 11823, 7693, 11828, 22, 11822, 2] */
|
|
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});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const searchQueryStore = importDefault(9674) /* metro dependency 9674: SearchQueryStore */;
|
|
const env0_5 = (require(11823) /* metro dependency 11823: SearchPlatformConstants */).SEARCH_TEXT_INPUT_DEBOUNCE_TIME;
|
|
(require(2) /* metro dependency 2 */).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;
|
|
const binding = env0_3;
|
|
binding.useEffect(_fun115179, [a1, a0]);
|
|
binding.useEffect(_fun115180, [a0, a1]);
|
|
binding.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 (importDefault(11822) /* metro dependency 11822: SearchPlatformUtils */).subscribeTextInputValue(env0_0,
|
|
(require(22) /* metro dependency 22 */).debounce(_fun115181, SEARCH_TEXT_INPUT_DEBOUNCE_TIME));
|
|
}
|
|
|
|
function _fun115182() { // fn#115182, offset: 0x024568d7, size: 11 bytes, params: 1, frame: 1
|
|
return _fun115183;
|
|
}
|
|
|
|
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__;
|
|
if (!SearchQueryStore.isAutocompleteVisible(env1_0)) {
|
|
(importDefault(11828) /* metro dependency 11828: SearchPlatformActionCreators */).searchPeopleTab(env1_0, a0);
|
|
}
|
|
}
|
|
|
|
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__;
|
|
(importDefault(11828) /* metro dependency 11828: SearchPlatformActionCreators */).cleanupPeopleTab(env1_0);
|
|
}
|
|
|