Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,120 @@
/* Metro module 9678; source: modules/search/SearchRecentMessageStore.tsx; dependencies: [6, 7, 15, 17, 18, 4625, 566, 694, 2] */
function _fun76023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9864:6, offset: 0x01dc1e8b, size: 330 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = function() {
var Map = global.Map;
env0_7 = new Map();
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
let Map = global.Map;
let map = new Map();
const env0_8 = [];
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
_fun76028(Store).displayName = 'SearchRecentMessageStore';
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */,
{SEARCH_MESSAGES_SUCCESS: SEARCH_MESSAGES_SUCCESS_76031, SEARCH_RECENT_MESSAGES_CLEAR: closure,
CONNECTION_OPEN: closure});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/SearchRecentMessageStore.tsx');
exports.default = map;
}
function _isNativeReflectConstruct_76024() { // fn#76024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9864:148, offset: 0x01dc1fd5, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_76024_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun76028(a0) { // fn#76028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9864:399, offset: 0x01dc205e, size: 74 bytes, params: 2, frame: 15
const closure = SearchRecentMessageStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'getRecentMessageAuthorIds', value: value_76030}]);
}
function SEARCH_MESSAGES_SUCCESS_76031({guildId, data}) { // fn#76031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9864:918, offset: 0x01dc20c8, size: 173 bytes, params: 2, frame: 17
if (guildId != null) {
var r5 = env0_7.get(guildId) ?? [];
var items2 = [];
arraySpread(items2, r5, 0, data);
var Set = global.Set;
var set = new Set(items2);
data.forEach(function({messages}) {
messages.forEach(_fun76033);
});
if (false) {
env0_7.set(guildId, items2);
}
}
return false;
}
function value_76030(a0) { // fn#76030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9864:764, offset: 0x01dc20a8, size: 32 bytes, params: 2, frame: 12
return env1_7.get(a0) ?? env1_8;
}
function _fun76032({messages}) { // fn#76032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9864:1072, offset: 0x01dc2175, size: 32 bytes, params: 2, frame: 11
messages.forEach(_fun76033);
}
function _fun76033(a0) { // fn#76033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9864:1096, offset: 0x01dc2195, size: 178 bytes, params: 2, frame: 14
var add;
var push;
const iterator = a0[Symbol.iterator]();
let item2 = iterator.next();
const item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r3 = value2 ? value : item;
if (!value2) {
item2.return();
}
const messageRecord = (require(4625) /* metro dependency 4625: MessageRecordUtils */).createMessageRecord(r3);
let binding = env1_2;
const has = binding.has;
let author = messageRecord.author;
let id = author.id;
if (!Reflect.apply(has, binding, [id]) && env1_2.size < 15) {
binding = env1_2;
add = binding.add;
author = messageRecord.author;
id = author.id;
Reflect.apply(add, binding, [id]);
binding = env1_1;
push = binding.push;
author = messageRecord.author;
id = author.id;
Reflect.apply(push, binding, [id]);
}
return value;
}