Files
discord-decomp/sources/modules/search/managers/native/SearchSessionAnalyticsManager.tsx
T
2026-07-27 16:20:00 +03:00

119 lines
5.7 KiB
TypeScript

/* 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);
}