66 lines
3.6 KiB
TypeScript
66 lines
3.6 KiB
TypeScript
/* Metro module 7005; source: modules/settings/tracking/SettingSearchSessionAnalyticsManager.tsx; dependencies: [6, 7, 491, 7006, 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});
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
let value = _fun55463();
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).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 env0_3(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 object2;
|
|
let value = this.searchSessionId != null;
|
|
if (value && this.searchSessionStartTime != null) {
|
|
value = environment.__proto__;
|
|
value = require(7006) /* metro dependency 7006: Tracking */;
|
|
trackSettingSearchClosed = value.trackSettingSearchClosed;
|
|
object2 = {};
|
|
object2.searchSessionDuration = global.Date.now() - this.searchSessionStartTime;
|
|
Reflect.apply(trackSettingSearchClosed, value, [object2]);
|
|
this.searchSessionId = null;
|
|
this.searchSessionStartTime = null;
|
|
this.isQueryEnteredTracked = false;
|
|
}
|
|
}
|
|
|