Files
discord-decomp/sources/modules/settings/tracking/SettingSearchSessionAnalyticsManager.tsx
T
2026-07-28 01:06:53 +03:00

69 lines
4.2 KiB
TypeScript

/* Metro module 7005; source: modules/settings/tracking/SettingSearchSessionAnalyticsManager.tsx; dependencies: [6, 7, 491, 7006, 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 * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun55462(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7183:6, offset: 0x013a7dc1, size: 152 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = _fun55463();
value = new value();
(FileImportTrackerModule).fileFinishedImporting('modules/settings/tracking/SettingSearchSessionAnalyticsManager.tsx');
exports.default = value;
function _fun55463() { // fn#55463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7183:122, offset: 0x013a7e59, size: 151 bytes, params: 1, frame: 15
return CreateClass(SettingSearchSessionAnalyticsManager, [{key: 'getSearchSessionId', value: function() {
return this.searchSessionId;
}}, {key: 'isSessionActive', value: function() {
return this.searchSessionId != null;
}}, {key: 'initialize', value: value_55467}, {key: 'maybeTrackQueryEntered', value: value_55468}, {key: 'terminate',
value: value_55469}]);
function SettingSearchSessionAnalyticsManager() { // fn#55464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7183:143, offset: 0x013a7ef0, size: 49 bytes, params: 1, frame: 13
env1_2(this, SettingSearchSessionAnalyticsManager);
this.searchSessionId = null;
this.searchSessionStartTime = null;
this.isQueryEnteredTracked = false;
}
function value_55467() { // fn#55467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7183:501, offset: 0x013a7f3d, size: 77 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(491) /* metro dependency 491 */;
this.searchSessionId = value.v4();
const Date = global.Date;
this.searchSessionStartTime = Date.now();
this.isQueryEnteredTracked = false;
}
function value_55468() { // fn#55468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7183:653, offset: 0x013a7f8a, size: 59 bytes, params: 1, frame: 12
var value;
if (!this.isQueryEnteredTracked) {
value = environment.__proto__;
value = require(7006) /* metro dependency 7006: Tracking */;
value.trackSettingSearchQueryEntered();
this.isQueryEnteredTracked = true;
}
}
function value_55469() { // fn#55469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7183:790, offset: 0x013a7fc5, size: 125 bytes, params: 1, frame: 15
var trackSettingSearchClosed;
var object;
let value = this.searchSessionId != null;
if (value && this.searchSessionStartTime != null) {
value = environment.__proto__;
value = require(7006) /* metro dependency 7006: Tracking */;
trackSettingSearchClosed = value.trackSettingSearchClosed;
object = {};
object.searchSessionDuration = global.Date.now() - this.searchSessionStartTime;
Reflect.apply(trackSettingSearchClosed, value, [object]);
this.searchSessionId = null;
this.searchSessionStartTime = null;
this.isQueryEnteredTracked = false;
}
}
}
}
global.__d(_fun55462, 7005, [6, 7, 491, 7006, 2]) /* metro module 7005, dependencies: [6, 7, 491, 7006, 2] */;