This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,108 +1,121 @@
/* Metro module 14151; source: modules/settings/native/search/hooks/useSettingSearchResults.tsx; dependencies: [57, 31, 13172, 13173, 14147, 13177, 14152, 13175, 6949, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Module06949 from '../../../../../by-id/module-06949.js'; /* Metro dependency 6949 */
import UserSettingSearchStore from '../../../../user_settings/UserSettingSearchStore.tsx'; /* Metro dependency 13172 */
import SettingBlocklistStore from '../../renderer/stores/SettingBlocklistStore.tsx'; /* Metro dependency 13173 */
import UserSettingSearchManager from '../../../../user_settings/UserSettingSearchManager.tsx'; /* Metro dependency 14152 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun107077(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:6, offset: 0x022f29d7, size: 177 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const userSettingSearchStore = importDefault(13172) /* metro dependency 13172: UserSettingSearchStore */;
const settingBlocklistStore = importDefault(13173) /* metro dependency 13173: SettingBlocklistStore */;
const env0_7 = [];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/settings/native/search/hooks/useSettingSearchResults.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/settings/native/search/hooks/useSettingSearchResults.tsx');
exports.useSettingSearchResults = useSettingSearchResults;
}
function useSettingSearchResults() { // fn#107078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:267, offset: 0x022f2a88, size: 217 bytes, params: 1, frame: 21
const binding = env0_4;
const value2 = binding.useMemo(_fun107079, []);
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [env0_7]);
const binding2 = env0_3;
let value = binding2(value3, 2);
const property = value[0];
const env0_1 = value[1];
useState = binding.useState;
value = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value[0];
const env0_2 = value[1];
useState = binding.useState;
value = binding2(Reflect.apply(useState, binding, [10]), 2);
const property3 = value[0];
var env0_3 = value[1];
binding.useEffect(function() {
var env0_0 = UserSettingSearchStore.subscribe(_fun107084, _fun107085, {equalityFn: _fun107086});
return _fun107087;
}, [binding.useMemo(_fun107080, [value2])]);
return {settings: property, isLoading: property2, placeholderCount: property3};
}
function _fun107079() { // fn#107079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:319, offset: 0x022f2b61, size: 73 bytes, params: 1, frame: 13
let value = environment.__proto__;
const defaultImport = importDefault(14152) /* metro dependency 14152: UserSettingSearchManager */;
value = require(13175) /* metro dependency 13175: SettingRendererUtils */;
value = value.getSettingSearchableTitles();
const value2 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
value = new defaultImport(value);
return value instanceof Object ? value : value2;
}
function _fun107080() { // fn#107080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:511, offset: 0x022f2baa, size: 48 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return (importDefault(6949) /* metro dependency 6949 */)(_fun107081, 350);
}
function _fun107083() { // fn#107083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:824, offset: 0x022f2cd2, size: 63 bytes, params: 1, frame: 16
const env0_0 = UserSettingSearchStore.subscribe(function({query}) {
return query.trim();
}, _fun107085, {equalityFn: function(a0, a1) {
return a0 === a1;
}});
return _fun107087;
}
function _fun107081(a0) { // fn#107081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:524, offset: 0x022f2bda, size: 148 bytes, params: 2, frame: 17
const env0_0 = SettingBlocklistStore.getField('blocklist');
const value3 = env1_0.getScoredSearchResults(a0).filter(_fun107082);
env1_1(value3);
const Math = global.Math;
const max = Math.max;
const Math2 = global.Math;
env1_3(Reflect.apply(max, Math, [Math2.min(value3.length, 10), 5]));
env1_2(false);
}
function _fun107085(a0) { // fn#107085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:868, offset: 0x022f2d26, size: 104 bytes, params: 2, frame: 13
var value;
var binding;
var value2;
if (a0 === '') {
value = environment.__proto__;
if (env1_4.cancel != null) {
env1_4.cancel();
function useSettingSearchResults() { // fn#107078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:267, offset: 0x022f2a88, size: 217 bytes, params: 1, frame: 21
const value2 = ReactModule.useMemo(_fun107079, []);
let useState = ReactModule.useState;
const value3 = Reflect.apply(useState, ReactModule, [env0_7]);
const binding2 = env0_3;
let value = binding2(value3, 2);
const property = value[0];
const env0_1 = value[1];
useState = ReactModule.useState;
value = binding2(Reflect.apply(useState, ReactModule, [false]), 2);
const property2 = value[0];
const env0_2 = value[1];
useState = ReactModule.useState;
value = binding2(Reflect.apply(useState, ReactModule, [10]), 2);
const property3 = value[0];
var env0_3 = value[1];
ReactModule.useEffect(function() {
var env0_0 = UserSettingSearchStore.subscribe(_fun107084, _fun107085, {equalityFn: _fun107086});
return _fun107087;
}, [ReactModule.useMemo(_fun107080, [value2])]);
return {settings: property, isLoading: property2, placeholderCount: property3};
function _fun107079() { // fn#107079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:319, offset: 0x022f2b61, size: 73 bytes, params: 1, frame: 13
let value = environment.__proto__;
const defaultImport = UserSettingSearchManager;
value = require(13175) /* metro dependency 13175: SettingRendererUtils */;
value = value.getSettingSearchableTitles();
const value2 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
value = new defaultImport(value);
return value instanceof Object ? value : value2;
}
binding = env1_1;
value2 = environment.__proto__.__proto__;
binding(env2_7);
env1_2(false);
} else {
value = environment.__proto__;
env1_2(true);
env1_4(a0);
function _fun107080() { // fn#107080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:511, offset: 0x022f2baa, size: 48 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return (Module06949)(_fun107081, 350);
function _fun107081(a0) { // fn#107081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:524, offset: 0x022f2bda, size: 148 bytes, params: 2, frame: 17
const env0_0 = SettingBlocklistStore.getField('blocklist');
const value3 = env1_0.getScoredSearchResults(a0).filter(_fun107082);
env1_1(value3);
const Math = global.Math;
const max = Math.max;
const Math2 = global.Math;
env1_3(Reflect.apply(max, Math, [Math2.min(value3.length, 10), 5]));
env1_2(false);
function _fun107082({setting}) { // fn#107082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:596, offset: 0x022f2c6e, size: 100 bytes, params: 2, frame: 15
const binding = env0_0;
const value = environment.__proto__.__proto__.__proto__;
return !(importDefault(14147) /* metro dependency 14147: SettingTreeManager */).isBlocked(setting,
binding) && !(require(13177) /* metro dependency 13177: SettingsRendererConfig */).SETTING_RENDERER_CONFIG[setting].unsearchable;
}
}
}
function _fun107083() { // fn#107083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:824, offset: 0x022f2cd2, size: 63 bytes, params: 1, frame: 16
const env0_0 = UserSettingSearchStore.subscribe(function({query}) {
return query.trim();
}, _fun107085, {equalityFn: function(a0, a1) {
return a0 === a1;
}});
return _fun107087;
function _fun107085(a0) { // fn#107085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:868, offset: 0x022f2d26, size: 104 bytes, params: 2, frame: 13
var value;
var binding;
var value2;
if (a0 === '') {
value = environment.__proto__;
if (env1_4.cancel != null) {
env1_4.cancel();
}
binding = env1_1;
value2 = environment.__proto__.__proto__;
binding(env2_7);
env1_2(false);
} else {
value = environment.__proto__;
env1_2(true);
env1_4(a0);
}
}
function _fun107087() { // fn#107087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:967, offset: 0x022f2d8e, size: 48 bytes, params: 1, frame: 11
env0_0();
if (env1_4.cancel != null) {
env1_4.cancel();
}
}
}
}
}
function _fun107087() { // fn#107087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:967, offset: 0x022f2d8e, size: 48 bytes, params: 1, frame: 11
env0_0();
if (env1_4.cancel != null) {
env1_4.cancel();
}
function _fun107084({query}) { // fn#107084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:848, offset: 0x022f2d11, size: 21 bytes, params: 2, frame: 9
return query.trim();
}
function _fun107082({setting}) { // fn#107082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:596, offset: 0x022f2c6e, size: 100 bytes, params: 2, frame: 15
const binding = env0_0;
const value = environment.__proto__.__proto__.__proto__;
return !(importDefault(14147) /* metro dependency 14147: SettingTreeManager */).isBlocked(setting,
binding) && !(require(13177) /* metro dependency 13177: SettingsRendererConfig */).SETTING_RENDERER_CONFIG[setting].unsearchable;
function equalityFn(a0, a1) { // fn#107086, offset: 0x00cf443c, size: 12 bytes, params: 3, frame: 2
return a0 === a1;
}
global.__d(_fun107077, 14151, [57, 31, 13172, 13173, 14147, 13177, 14152, 13175, 6949,
2]) /* metro module 14151, dependencies: [57, 31, 13172, 13173, 14147, 13177, 14152, 13175, 6949, 2] */;