Files
discord-decomp/sources/modules/search/managers/native/SearchSessionAnalyticsManager.tsx
T
2026-07-28 01:06:53 +03:00

124 lines
6.9 KiB
TypeScript

/* Metro module 9688; source: modules/search/managers/native/SearchSessionAnalyticsManager.tsx; dependencies: [6, 7, 15, 17, 18, 9614, 9675, 9689, 2] */
import ClassCallCheck from '../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import AbstractSearchSessionAnalyticsManager from '../AbstractSearchSessionAnalyticsManager.tsx'; /* Metro dependency 9689 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as TrackingConstantsModule from '../../native/tracking/TrackingConstants.tsx'; /* Metro dependency 9614 */
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});
let value = AbstractSearchSessionAnalyticsManager;
value = _fun76169(value);
value = new value();
(FileImportTrackerModule).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 SearchSessionAnalyticsManager2 = SearchSessionAnalyticsManager;
Inherits(SearchSessionAnalyticsManager2, a0);
return CreateClass(SearchSessionAnalyticsManager2, [{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);
}
}
}
global.__d(_fun76165, 9688, [6, 7, 15, 17, 18, 9614, 9675, 9689,
2]) /* metro module 9688, dependencies: [6, 7, 15, 17, 18, 9614, 9675, 9689, 2] */;