Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,36 @@
|
||||
/* Metro module 9685; source: modules/search/managers/AbstractSearchFetchManager.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun76119(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9871:6, offset: 0x01dc4a7a, size: 126 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun76120();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/managers/AbstractSearchFetchManager.tsx');
|
||||
exports.AbstractSearchFetchManager = value;
|
||||
}
|
||||
|
||||
function _fun76120() { // fn#76120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9871:118, offset: 0x01dc4af8, size: 159 bytes, params: 1, frame: 15
|
||||
return env0_1(AbstractSearchFetchManager, [{key: 'cleanUp', value: function(a0) {
|
||||
this.cancel(a0);
|
||||
this.delete(a0);
|
||||
}}, {key: 'cancel', value: function(a0) {
|
||||
var value = this.searchFetchers.get(a0);
|
||||
if (value != null) {
|
||||
value.cancel();
|
||||
}
|
||||
}}, {key: 'delete', value: function(a0) {
|
||||
this.searchFetchers.delete(a0);
|
||||
}}, {key: 'get', value: function(a0) {
|
||||
return this.searchFetchers.get(a0);
|
||||
}}, {key: 'set', value: function(a0, a1) {
|
||||
this.searchFetchers.set(a0, a1);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function AbstractSearchFetchManager() { // fn#76121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9871:139, offset: 0x01dc4b97, size: 61 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
env1_0(this, AbstractSearchFetchManager);
|
||||
const Map = global.Map;
|
||||
this.searchFetchers = new Map();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 9689; source: modules/search/managers/AbstractSearchSessionAnalyticsManager.tsx; dependencies: [6, 7, 491, 9675, 2] */
|
||||
function _fun76177(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:6, offset: 0x01dc5b43, size: 145 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
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 value = _fun76179();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/managers/AbstractSearchSessionAnalyticsManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function createDefaultSessionState() { // fn#76178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:116, offset: 0x01dc5bd4, size: 51 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
object2.sessionId = (require(491) /* metro dependency 491 */).v4();
|
||||
object2.searchQueryId = null;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun76179() { // fn#76179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:209, offset: 0x01dc5c07, size: 263 bytes, params: 1, frame: 15
|
||||
return env0_3(AbstractSearchSessionAnalyticsManager, [{key: 'getSession', value: value_76181}, {key: 'setSession',
|
||||
value: value_76182}, {key: 'deleteSession', value: value_76183}, {key: 'getSessionId', value: function(a0) {
|
||||
var r1;
|
||||
var value = this.getSession(a0);
|
||||
var value2 = null;
|
||||
r1 = value2 == value ? undefined : value.sessionId;
|
||||
return value2 != r1 ? r1 : value2;
|
||||
}}, {key: 'getQueryId', value: function(a0) {
|
||||
var r1;
|
||||
var value = this.getSession(a0);
|
||||
var value2 = null;
|
||||
r1 = value2 == value ? undefined : value.searchQueryId;
|
||||
return value2 != r1 ? r1 : value2;
|
||||
}}, {key: 'refreshQueryId', value: value_76186}, {key: 'initialize', value: value_76187}, {key: 'terminate',
|
||||
value: function(a0) {
|
||||
this._terminate(a0);
|
||||
this.deleteSession(a0);
|
||||
}}, {key: 'transferSession', value: function(a0, a1) {
|
||||
this._transferSession(a0, a1);
|
||||
var value = this.getSession(a0);
|
||||
var sessions = this.sessions;
|
||||
sessions.set(require(dependencyMap[3]).getSearchContextId(a1), value ?? createDefaultSessionState());
|
||||
this.deleteSession(a0);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function AbstractSearchSessionAnalyticsManager() { // fn#76180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:230, offset: 0x01dc5d0e, size: 61 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, AbstractSearchSessionAnalyticsManager);
|
||||
const Map = global.Map;
|
||||
this.sessions = new Map();
|
||||
}
|
||||
|
||||
function value_76181(a0) { // fn#76181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:374, offset: 0x01dc5d4b, size: 72 bytes, params: 2, frame: 13
|
||||
const sessions = this.sessions;
|
||||
const get = sessions.get;
|
||||
let value = environment.__proto__;
|
||||
const getSearchContextId = (require(9675) /* metro dependency 9675: SearchUtils */).getSearchContextId;
|
||||
value = Reflect.apply(get, sessions, [Reflect.apply(getSearchContextId, value, [a0])]);
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
function value_76182(a0, a1) { // fn#76182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:491, offset: 0x01dc5d93, size: 113 bytes, params: 3, frame: 15
|
||||
const value = environment.__proto__;
|
||||
const searchContextId = (require(9675) /* metro dependency 9675: SearchUtils */).getSearchContextId(a0);
|
||||
let sessions = this.sessions;
|
||||
const r5 = sessions.get(searchContextId) ?? createDefaultSessionState();
|
||||
sessions = this.sessions;
|
||||
const set = sessions.set;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a1, copyDataProperties(object2, r5, r5));
|
||||
Reflect.apply(set, sessions, [searchContextId, object2]);
|
||||
}
|
||||
|
||||
function value_76183(a0) { // fn#76183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:668, offset: 0x01dc5e04, size: 60 bytes, params: 2, frame: 14
|
||||
const sessions = this.sessions;
|
||||
let value = environment.__proto__;
|
||||
value = require(9675) /* metro dependency 9675: SearchUtils */;
|
||||
const getSearchContextId = value.getSearchContextId;
|
||||
sessions.delete(Reflect.apply(getSearchContextId, value, [a0]));
|
||||
}
|
||||
|
||||
function value_76186(a0) { // fn#76186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:1004, offset: 0x01dc5ea0, size: 62 bytes, params: 2, frame: 15
|
||||
const setSession = this.setSession;
|
||||
const object2 = {};
|
||||
const value = environment.__proto__;
|
||||
object2.searchQueryId = (require(491) /* metro dependency 491 */).v4();
|
||||
Reflect.apply(setSession, this, [a0, object2]);
|
||||
}
|
||||
|
||||
function value_76187(a0, a1) { // fn#76187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9875:1090, offset: 0x01dc5ede, size: 116 bytes, params: 3, frame: 17
|
||||
let value = copyRestArgs(1, undefined);
|
||||
const _initialize = this._initialize;
|
||||
let object = [a0];
|
||||
arraySpread(object, value, 1, undefined);
|
||||
apply(_initialize, object, this, undefined);
|
||||
const setSession = this.setSession;
|
||||
object = {};
|
||||
value = environment.__proto__;
|
||||
object.sessionId = (require(491) /* metro dependency 491 */).v4();
|
||||
object.searchQueryId = null;
|
||||
Reflect.apply(setSession, this, [a0, object]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 9686; source: modules/search/managers/SearchFetchManager.tsx; dependencies: [6, 7, 15, 17, 18, 9684, 9685, 2] */
|
||||
function _fun76127(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9872:6, offset: 0x01dc4c6d, size: 232 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
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 */;
|
||||
const AbstractSearchFetchManager = (require(9685) /* metro dependency 9685: AbstractSearchFetchManager */).AbstractSearchFetchManager;
|
||||
let value = _fun76131(AbstractSearchFetchManager);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/managers/SearchFetchManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_76128() { // fn#76128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9872:148, offset: 0x01dc4d55, 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_76128_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun76131(a0) { // fn#76131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9872:347, offset: 0x01dc4db7, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = SearchFetchManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'create', value: value_76133}]);
|
||||
}
|
||||
|
||||
function value_76133({id, searchType, searchQuery}) { // fn#76133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9872:663, offset: 0x01dc4dff, size: 101 bytes, params: 2, frame: 17
|
||||
this.cancel(id);
|
||||
const value = environment.__proto__;
|
||||
const SearchFetcherImpl = (require(9684) /* metro dependency 9684: SearchFetcher */).SearchFetcherImpl;
|
||||
const searchFetcherImpl = new SearchFetcherImpl(id, searchType, searchQuery);
|
||||
this.set(id, searchFetcherImpl);
|
||||
return searchFetcherImpl;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
/* Metro module 9683; source: modules/search/managers/SearchTabsFetchManager.tsx; dependencies: [29, 6, 7, 15, 17, 18, 9615, 661, 9684, 9685, 2] */
|
||||
function _fun76089(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9869:6, offset: 0x01dc3a9c, size: 354 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const env0_2 = ['include_nsfw', 'channel_id'];
|
||||
const env0_3 = ['has'];
|
||||
const env0_4 = ['has'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_5 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_6 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_7 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_8 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_9 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_10 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = require(9615) /* metro dependency 9615: SearchConstants */;
|
||||
const env0_11 = value.SEARCH_FILTERS_BY_TAB;
|
||||
const env0_12 = value.SEARCH_QUERY_BY_SEARCH_FILTER;
|
||||
const env0_13 = value.SEARCH_QUERY_DEFAULT_FILTERS;
|
||||
const env0_14 = (require(661) /* metro dependency 661: Constants */).SearchTypes;
|
||||
const AbstractSearchFetchManager = (require(9685) /* metro dependency 9685: AbstractSearchFetchManager */).AbstractSearchFetchManager;
|
||||
value = _fun76093(AbstractSearchFetchManager);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/managers/SearchTabsFetchManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_76090() { // fn#76090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9869:339, offset: 0x01dc3bfe, 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_76090_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun76093(a0) { // fn#76093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9869:538, offset: 0x01dc3c60, size: 126 bytes, params: 2, frame: 16
|
||||
const closure = SearchTabsFetchManager;
|
||||
env0_10(closure, a0);
|
||||
return env0_7(closure, [{key: 'createRequestPayload', value: value_76095}, {key: 'createWithPayload',
|
||||
value: value_76097}, {key: 'create', value: function({id, searchContext, searchQuery, searchTabs, getLimit,
|
||||
pagination, trackExactTotalHits}) {
|
||||
this.cancel(id);
|
||||
var withPayload = this.createWithPayload({searchContext: searchContext, searchQuery: searchQuery,
|
||||
searchTabs: searchTabs, getLimit: getLimit, pagination: pagination,
|
||||
trackExactTotalHits: trackExactTotalHits});
|
||||
this.set(id, withPayload);
|
||||
return withPayload;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function SearchTabsFetchManager() { // fn#76094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9869:550, offset: 0x01dc3cde, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_6(this, SearchTabsFetchManager);
|
||||
const value3 = env1_9(SearchTabsFetchManager);
|
||||
return env1_8(this, _isNativeReflectConstruct_76090() ? global.Reflect.construct(value3, arguments,
|
||||
env1_9(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
function value_76095({searchQuery, searchTabs, getLimit, pagination, trackExactTotalHits}) { // fn#76095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9869:888, offset: 0x01dc3d4f, size: 126 bytes, params: 2, frame: 18
|
||||
const include_nsfw = searchQuery.include_nsfw;
|
||||
const channel_id = searchQuery.channel_id;
|
||||
const env0_2 = env1_5(searchQuery, env1_2);
|
||||
const object2 = {include_nsfw: include_nsfw, channel_ids: channel_id, tabs: {},
|
||||
track_exact_total_hits: trackExactTotalHits};
|
||||
searchTabs.forEach(_fun76096);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function value_76097({searchContext, searchQuery, searchTabs, getLimit, pagination, trackExactTotalHits}) { // fn#76097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9869:1329, offset: 0x01dc3ee1, size: 427 bytes, params: 2, frame: 21
|
||||
const SearchTabFetcherImpl = (require(9684) /* metro dependency 9684: SearchFetcher */).SearchTabFetcherImpl;
|
||||
var type2;
|
||||
var value4;
|
||||
var searchTabFetcherImpl;
|
||||
var channelId;
|
||||
var value5;
|
||||
var guildId;
|
||||
var value6;
|
||||
let value = this.createRequestPayload({searchQuery: searchQuery, searchTabs: searchTabs, getLimit: getLimit,
|
||||
pagination: pagination, trackExactTotalHits: trackExactTotalHits});
|
||||
let type = searchContext.type;
|
||||
const GUILD = SearchTypes.GUILD;
|
||||
if (GUILD === type) {
|
||||
guildId = searchContext.guildId;
|
||||
type = searchContext.type;
|
||||
value6 = Object.create(SearchTabFetcherImpl.prototype, {constructor: {value: SearchTabFetcherImpl}});
|
||||
searchTabFetcherImpl = new SearchTabFetcherImpl(guildId, type, searchQuery, value);
|
||||
return searchTabFetcherImpl instanceof Object ? searchTabFetcherImpl : value6;
|
||||
}
|
||||
const GUILD_CHANNEL = SearchTypes.GUILD_CHANNEL;
|
||||
if (GUILD_CHANNEL === type) {
|
||||
guildId = searchContext.guildId;
|
||||
type = searchContext.type;
|
||||
value6 = Object.create(SearchTabFetcherImpl.prototype, {constructor: {value: SearchTabFetcherImpl}});
|
||||
searchTabFetcherImpl = new SearchTabFetcherImpl(guildId, type, searchQuery, value);
|
||||
return searchTabFetcherImpl instanceof Object ? searchTabFetcherImpl : value6;
|
||||
}
|
||||
const THREAD = SearchTypes.THREAD;
|
||||
if (THREAD === type) {
|
||||
guildId = searchContext.guildId;
|
||||
type = searchContext.type;
|
||||
value6 = Object.create(SearchTabFetcherImpl.prototype, {constructor: {value: SearchTabFetcherImpl}});
|
||||
searchTabFetcherImpl = new SearchTabFetcherImpl(guildId, type, searchQuery, value);
|
||||
return searchTabFetcherImpl instanceof Object ? searchTabFetcherImpl : value6;
|
||||
}
|
||||
const CHANNEL = SearchTypes.CHANNEL;
|
||||
if (CHANNEL === type) {
|
||||
channelId = searchContext.channelId;
|
||||
type = searchContext.type;
|
||||
value5 = Object.create(SearchTabFetcherImpl.prototype, {constructor: {value: SearchTabFetcherImpl}});
|
||||
searchTabFetcherImpl = new SearchTabFetcherImpl(channelId, type, searchQuery, value);
|
||||
return searchTabFetcherImpl instanceof Object ? searchTabFetcherImpl : value5;
|
||||
}
|
||||
const DMS = SearchTypes.DMS;
|
||||
if (DMS === type) {
|
||||
type = searchContext.type;
|
||||
type2 = searchContext.type;
|
||||
value4 = Object.create(SearchTabFetcherImpl.prototype, {constructor: {value: SearchTabFetcherImpl}});
|
||||
searchTabFetcherImpl = new SearchTabFetcherImpl(type, type2, searchQuery, value);
|
||||
return searchTabFetcherImpl instanceof Object ? searchTabFetcherImpl : value4;
|
||||
}
|
||||
const Error = global.Error;
|
||||
value = '[SearchFetchManager] Unsupported search context type: ' + searchContext.type;
|
||||
const value3 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error(value);
|
||||
throw error instanceof Object ? error : value3;
|
||||
}
|
||||
|
||||
function _fun76096(a0) { // fn#76096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9869:1102, offset: 0x01dc3dcd, size: 276 bytes, params: 2, frame: 23
|
||||
const limit = getLimit(a0);
|
||||
const property = SEARCH_FILTERS_BY_TAB[a0];
|
||||
const r6 = property != null ? SEARCH_QUERY_BY_SEARCH_FILTER[property] : {};
|
||||
const has = r6.has;
|
||||
const binding = env2_5;
|
||||
const value4 = binding(r6, env2_3);
|
||||
const binding2 = env0_2;
|
||||
const has2 = binding2.has;
|
||||
const value5 = binding(binding2, env2_4);
|
||||
const Set = global.Set;
|
||||
const r2 = has ?? [];
|
||||
let items = [];
|
||||
arraySpread(items, has2 ?? [], arraySpread(items, r2, 0, null), null);
|
||||
const set = new Set(items);
|
||||
items = [];
|
||||
arraySpread(items, set, 0, null);
|
||||
const tabs = env0_3.tabs;
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, SEARCH_QUERY_DEFAULT_FILTERS, 0);
|
||||
copyDataProperties(object3, value4, 0);
|
||||
copyDataProperties(object3, value5, 0);
|
||||
copyDataProperties(object3, items.length > 0 ? {has: items} : {}, 0);
|
||||
copyDataProperties(object3, pagination, 0);
|
||||
object3['limit'] = limit;
|
||||
tabs[a0] = object3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/* Metro module 15822; source: modules/search/managers/SearchTokensManager.tsx; dependencies: [6, 7, 15, 17, 18, 1950, 9675, 4860, 2] */
|
||||
function _fun121603(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:6, offset: 0x0254bd17, size: 248 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
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 */;
|
||||
const env0_7 = (require(1950) /* metro dependency 1950: IntlLoaderStore */).subscribeToIntlLoadingSuccess;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun121607(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/managers/SearchTokensManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_121604() { // fn#121604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:188, offset: 0x0254be0f, 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_121604_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun121607(a0) { // fn#121607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:391, offset: 0x0254be71, size: 97 bytes, params: 2, frame: 16
|
||||
const closure = SearchTokensManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: '_initialize', value: value_121609}, {key: '_terminate', value: function() {
|
||||
var _unsubscribeIntlLoadingStore = this._unsubscribeIntlLoadingStore;
|
||||
if (_unsubscribeIntlLoadingStore != null) {
|
||||
_unsubscribeIntlLoadingStore.call(this);
|
||||
}
|
||||
}}]);
|
||||
}
|
||||
|
||||
function SearchTokensManager(a0) { // fn#121608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:403, offset: 0x0254bed2, size: 185 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, SearchTokensManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_5(SearchTokensManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_121604()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
const refreshSearchTokens = (require(9675) /* metro dependency 9675: SearchUtils */).refreshSearchTokens;
|
||||
value.actions = {USER_SETTINGS_PROTO_UPDATE: refreshSearchTokens, POST_CONNECTION_OPEN: refreshSearchTokens};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_121609() { // fn#121609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:844, offset: 0x0254bf8b, size: 51 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
this._unsubscribeIntlLoadingStore = subscribeToIntlLoadingSuccess((require(9675) /* metro dependency 9675: SearchUtils */).refreshSearchTokens);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
/* Metro module 9688; source: modules/search/managers/native/SearchSessionAnalyticsManager.tsx; dependencies: [6, 7, 15, 17, 18, 9614, 9675, 9689, 2] */
|
||||
function _fun76165(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9874:6, offset: 0x01dc5714, size: 248 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
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 */;
|
||||
const env0_7 = (require(9614) /* metro dependency 9614: TrackingConstants */).SEARCH_TAB_TO_ANALYTICS_SEARCH_TAB;
|
||||
let value = importDefault(9689) /* metro dependency 9689: AbstractSearchSessionAnalyticsManager */;
|
||||
value = _fun76169(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/managers/native/SearchSessionAnalyticsManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_76166() { // fn#76166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9874:193, offset: 0x01dc580c, 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_76166_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun76169(a0) { // fn#76169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9874:396, offset: 0x01dc586e, size: 201 bytes, params: 2, frame: 16
|
||||
const closure = SearchSessionAnalyticsManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: '_initialize', value: value_76171}, {key: '_terminate', value: value_76172},
|
||||
{key: '_transferSession', value: function() {
|
||||
}}, {key: 'getLocation', value: value_76174}, {key: 'getSelectedTab', value: value_76175}, {key: 'setSelectedTab',
|
||||
value: function(a0, a1) {
|
||||
this.selectedTabs.set(require(dependencyMap[6]).getSearchContextId(a0), SEARCH_TAB_TO_ANALYTICS_SEARCH_TAB[a1]);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function SearchSessionAnalyticsManager(a0) { // fn#76170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9874:408, offset: 0x01dc5937, size: 192 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, SearchSessionAnalyticsManager);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_5(SearchSessionAnalyticsManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_76166()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
let Map = global.Map;
|
||||
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
let map = new Map();
|
||||
value.locations = map instanceof Object ? map : value4;
|
||||
Map = global.Map;
|
||||
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
map = new Map();
|
||||
value.selectedTabs = map instanceof Object ? map : value6;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_76171(a0, a1) { // fn#76171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9874:826, offset: 0x01dc59f7, size: 64 bytes, params: 3, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(9675) /* metro dependency 9675: SearchUtils */;
|
||||
value = value.getSearchContextId(a0);
|
||||
this.locations.set(value, a1);
|
||||
}
|
||||
|
||||
function value_76172(a0) { // fn#76172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9874:926, offset: 0x01dc5a37, size: 76 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(9675) /* metro dependency 9675: SearchUtils */;
|
||||
value = value.getSearchContextId(a0);
|
||||
this.locations.delete(value);
|
||||
this.selectedTabs.delete(value);
|
||||
}
|
||||
|
||||
function value_76174(a0) { // fn#76174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9874:1098, offset: 0x01dc5a83, size: 60 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(9675) /* metro dependency 9675: SearchUtils */;
|
||||
value = value.getSearchContextId(a0);
|
||||
return this.locations.get(value);
|
||||
}
|
||||
|
||||
function value_76175(a0) { // fn#76175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9874:1205, offset: 0x01dc5abf, size: 60 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(9675) /* metro dependency 9675: SearchUtils */;
|
||||
value = value.getSearchContextId(a0);
|
||||
return this.selectedTabs.get(value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user