57 lines
3.3 KiB
TypeScript
57 lines
3.3 KiB
TypeScript
/* Metro module 15111; source: modules/search/native/hooks/useAutoSearchGuildChannelTab.tsx; dependencies: [31, 11823, 9675, 11828, 22, 11822, 2] */
|
|
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});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(11823) /* metro dependency 11823: SearchPlatformConstants */).SEARCH_TEXT_INPUT_DEBOUNCE_TIME;
|
|
(require(2) /* metro dependency 2 */).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 binding = env0_3;
|
|
const value = binding.useCallback(_fun115166, [a0]);
|
|
binding.useEffect(_fun115167, [a1, value]);
|
|
binding.useEffect(_fun115168, [a0, a1, value]);
|
|
binding.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 = (require(9675) /* metro dependency 9675: SearchUtils */).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;
|
|
}
|
|
const moduleValue = require(22) /* metro dependency 22 */;
|
|
return (importDefault(11822) /* metro dependency 11822: SearchPlatformUtils */).subscribeTextInputValue(env0_0,
|
|
moduleValue.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__;
|
|
(importDefault(11828) /* metro dependency 11828: SearchPlatformActionCreators */).cleanupGuildChannelTab(env1_0);
|
|
}
|
|
|