Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,31 @@
|
||||
/* Metro module 15106; source: modules/search/native/message_parsers/CachedSearchResultParser.tsx; dependencies: [7, 6, 2] */
|
||||
function _fun115122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15303:6, offset: 0x02454cf4, size: 127 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
value = value(CachedSearchResultParser);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/native/message_parsers/CachedSearchResultParser.tsx');
|
||||
exports.CachedSearchResultParser = value;
|
||||
}
|
||||
|
||||
function CachedSearchResultParser() { // fn#115123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15303:121, offset: 0x02454d73, size: 77 bytes, params: 1, frame: 14
|
||||
this(this, CachedSearchResultParser);
|
||||
const Map = global.Map;
|
||||
this.resultsCache = new Map();
|
||||
this.parse = parse_115124;
|
||||
}
|
||||
|
||||
function CachedSearchResultParserParse(a0) { // fn#115124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15303:227, owner: CachedSearchResultParser.parse, offset: 0x02454dc0, size: 78 bytes, params: 2, frame: 14
|
||||
let resultsCache = env0_0.resultsCache;
|
||||
const value2 = resultsCache.get(a0.id);
|
||||
if (value2 != null) {
|
||||
return value2;
|
||||
}
|
||||
const binding = env0_0;
|
||||
const searchResults = binding.getSearchResults(a0);
|
||||
resultsCache = binding.resultsCache;
|
||||
resultsCache.set(a0.id, searchResults);
|
||||
return searchResults;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
/* Metro module 15101; source: modules/search/native/message_parsers/MessageSearchResultParser.tsx; dependencies: [7, 6, 15, 17, 18, 3794, 15102, 22, 9675, 15106, 2] */
|
||||
function _fun114252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#114252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15298:6, offset: 0x024199d8, size: 228 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const messageRecord = importDefault(3794) /* metro dependency 3794: MessageRecord */;
|
||||
const CachedSearchResultParser = (require(15106) /* metro dependency 15106: CachedSearchResultParser */).CachedSearchResultParser;
|
||||
const value = _fun114256(CachedSearchResultParser);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/native/message_parsers/MessageSearchResultParser.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_114253() { // fn#114253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15298:158, offset: 0x02419abc, 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_114253_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun114256(a0) { // fn#114256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15298:357, offset: 0x02419b1e, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = SearchResultMessageParser;
|
||||
env0_6(closure, a0);
|
||||
return env0_2(closure);
|
||||
}
|
||||
|
||||
function SearchResultMessageParser(a0, a1) { // fn#114257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15298:369, offset: 0x02419b48, size: 264 bytes, params: 3, frame: 21
|
||||
var environment;
|
||||
var r2;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_3;
|
||||
const value3 = undefined;
|
||||
binding(this, SearchResultMessageParser);
|
||||
const value4 = env1_5(SearchResultMessageParser);
|
||||
const value7 = env1_4(this, _isNativeReflectConstruct_114253() ? global.Reflect.construct(value4, [],
|
||||
env1_5(this).constructor) : value4.apply(this, value3));
|
||||
value7.truncateMessage = truncateMessage;
|
||||
value7.getSearchResults = getSearchResults;
|
||||
value = require(9675) /* metro dependency 9675: SearchUtils */;
|
||||
value = value.tokenizeQuery(a0);
|
||||
value = (require(9675) /* metro dependency 9675: SearchUtils */).getSearchQueryFromTokens(value);
|
||||
value = (require(9675) /* metro dependency 9675: SearchUtils */).getQueryContentString(value);
|
||||
if (value == null) {
|
||||
r2 = value3;
|
||||
} else {
|
||||
value = value.trim();
|
||||
r2 = value;
|
||||
}
|
||||
value7.tokenizedQueryContent = r2 ?? '';
|
||||
value7.lineClamp = a1;
|
||||
return value7;
|
||||
}
|
||||
|
||||
function truncateMessage(a0, a1) { // fn#114258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15298:637, owner: SearchResultMessageParser.truncateMessage, offset: 0x02419c50, size: 335 bytes, params: 3, frame: 19
|
||||
var RegExp;
|
||||
let value = a2;
|
||||
const r8 = value !== undefined ? value : 1;
|
||||
if (a0 == null) {
|
||||
return null;
|
||||
}
|
||||
value = a0.replace(RegExp('(\\r\\n|\\n|\\r)', 'gm'), ' ');
|
||||
const Set = global.Set;
|
||||
const set = new Set((require(15102) /* metro dependency 15102: EnglishAnalyzer */).analyze(a1));
|
||||
const value7 = value.split(RegExp('(\\W+)', 'g')).find(_fun114259);
|
||||
if (value7 == null) {
|
||||
return null;
|
||||
}
|
||||
RegExp = global.RegExp;
|
||||
const value8 = '\\b' + value7;
|
||||
const value9 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
||||
const regExp = new RegExp(value8 + '\\b');
|
||||
const value12 = value.search(regExp instanceof Object ? regExp : value9);
|
||||
if (value12 === -1) {
|
||||
return null;
|
||||
}
|
||||
const length = value7.length;
|
||||
const Math = global.Math;
|
||||
const value13 = Math.max(0, value12 - (30 * r8 - length));
|
||||
const value14 = '';
|
||||
const r3 = value13 > 0 ? '...' : value14;
|
||||
value = value.substring(value13);
|
||||
return value14 + r3 + value;
|
||||
}
|
||||
|
||||
function getSearchResults(a0) { // fn#114260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15298:992, owner: SearchResultMessageParser.getSearchResults, offset: 0x02419dd0, size: 256 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
var messageRecord;
|
||||
var value7;
|
||||
var value;
|
||||
let tokenizedQueryContent = env0_0.tokenizedQueryContent;
|
||||
if (tokenizedQueryContent != null) {
|
||||
tokenizedQueryContent = env0_0.tokenizedQueryContent;
|
||||
if (tokenizedQueryContent === '') {
|
||||
return a0;
|
||||
}
|
||||
var binding = env0_0;
|
||||
var truncateMessage = binding.truncateMessage;
|
||||
var content = a0.content;
|
||||
tokenizedQueryContent = binding.tokenizedQueryContent;
|
||||
value = Reflect.apply(truncateMessage, binding, [content, tokenizedQueryContent, binding.lineClamp]);
|
||||
if (value != null) {
|
||||
value7 = environment.__proto__.__proto__;
|
||||
messageRecord = new MessageRecord(a0);
|
||||
messageRecord.content = value;
|
||||
return messageRecord;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var moduleValue = require(22) /* metro dependency 22 */;
|
||||
var value6 = moduleValue.chain(a0.embeds).map(_fun114261).find(function(a0) {
|
||||
return a0 != null;
|
||||
}).value();
|
||||
if (value6 != null) {
|
||||
messageRecord = new MessageRecord(a0);
|
||||
messageRecord.content = value6;
|
||||
return messageRecord;
|
||||
}
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun114259(a0) { // fn#114259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15298:766, offset: 0x02419d9f, size: 49 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (require(15102) /* metro dependency 15102: EnglishAnalyzer */).shouldHighlight(a0, env0_0);
|
||||
}
|
||||
|
||||
function _fun114261(a0) { // fn#114261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15298:1222, offset: 0x02419ed0, size: 84 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_0;
|
||||
return binding.truncateMessage(a0.rawTitle, binding.tokenizedQueryContent,
|
||||
binding.lineClamp) ?? env1_0.truncateMessage(a0.rawDescription, env1_0.tokenizedQueryContent, env1_0.lineClamp);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user