decord/source/modules/settings/tracking/SettingSearchSessionAnalyticsManager.tsx

76 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6450
2026-07-27 11:26:19 +00:00
// Function ID: 57918
2026-07-20 16:05:17 +00:00
// Name: SettingSearchSessionAnalyticsManager
2026-07-25 08:10:48 +00:00
// Dependencies: [6, 7, 491, 6451, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 6450 (SettingSearchSessionAnalyticsManager)
2026-07-23 10:11:24 +00:00
import _classCallCheck from "_classCallCheck";
import _defineProperties from "_defineProperties";
const require = arg1;
let tmp2 = (() => {
2026-07-20 16:05:17 +00:00
class SettingSearchSessionAnalyticsManager {
constructor() {
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, SettingSearchSessionAnalyticsManager);
2026-07-20 16:05:17 +00:00
this.searchSessionId = null;
this.searchSessionStartTime = null;
this.isQueryEnteredTracked = false;
return;
}
}
let obj = {
key: "getSearchSessionId",
value() {
return this.searchSessionId;
}
};
const items = [obj, , , , ];
obj = {
key: "isSessionActive",
value() {
return null != this.searchSessionId;
}
};
items[1] = obj;
obj = {
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
this.searchSessionId = SettingSearchSessionAnalyticsManager(outer1_1[2]).v4();
2026-07-20 16:05:17 +00:00
this.searchSessionStartTime = Date.now();
this.isQueryEnteredTracked = false;
}
};
items[2] = obj;
items[3] = {
key: "maybeTrackQueryEntered",
value() {
if (!this.isQueryEnteredTracked) {
2026-07-23 10:11:24 +00:00
const result = SettingSearchSessionAnalyticsManager(outer1_1[3]).trackSettingSearchQueryEntered();
2026-07-20 16:05:17 +00:00
tmp.isQueryEnteredTracked = true;
2026-07-23 10:11:24 +00:00
const obj = SettingSearchSessionAnalyticsManager(outer1_1[3]);
2026-07-20 16:05:17 +00:00
}
}
};
items[4] = {
key: "terminate",
value() {
const self = this;
if (tmp) {
2026-07-23 10:11:24 +00:00
let obj = SettingSearchSessionAnalyticsManager(outer1_1[3]);
2026-07-20 16:05:17 +00:00
obj = {};
const _Date = Date;
obj.searchSessionDuration = Date.now() - self.searchSessionStartTime;
const result = obj.trackSettingSearchClosed(obj);
self.searchSessionId = null;
self.searchSessionStartTime = null;
self.isQueryEnteredTracked = false;
}
}
};
return callback(SettingSearchSessionAnalyticsManager, items);
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
tmp2 = new tmp2();
2026-07-23 10:11:24 +00:00
let result = require("v1").fileFinishedImporting("modules/settings/tracking/SettingSearchSessionAnalyticsManager.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;