2026-09-04 17:41:35 +00:00
|
|
|
// Module ID: 6936
|
|
|
|
|
// Function ID: 6937
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: getSearchSessionId
|
2026-09-04 17:41:35 +00:00
|
|
|
// Dependencies: [511, 6937, 2]
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-04 17:41:35 +00:00
|
|
|
// Module 6936 (getSearchSessionId)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
import v1 from "v1" /* 511 */;
|
2026-09-04 17:41:35 +00:00
|
|
|
import trackSettingSearchInputFocused from "trackSettingSearchInputFocused" /* 6937 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
class SettingSearchSessionAnalyticsManager {
|
|
|
|
|
}
|
|
|
|
|
const prototype = SettingSearchSessionAnalyticsManager.prototype;
|
|
|
|
|
prototype["getSearchSessionId"] = function getSearchSessionId() {
|
|
|
|
|
return this.searchSessionId;
|
|
|
|
|
};
|
|
|
|
|
prototype["isSessionActive"] = function isSessionActive() {
|
|
|
|
|
return null != this.searchSessionId;
|
|
|
|
|
};
|
|
|
|
|
prototype["initialize"] = function initialize() {
|
2026-08-24 06:08:38 +00:00
|
|
|
this.searchSessionId = v1.v4();
|
2026-07-29 08:29:29 +00:00
|
|
|
this.searchSessionStartTime = Date.now();
|
|
|
|
|
this.isQueryEnteredTracked = false;
|
|
|
|
|
};
|
|
|
|
|
prototype["maybeTrackQueryEntered"] = function maybeTrackQueryEntered() {
|
|
|
|
|
if (!this.isQueryEnteredTracked) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = trackSettingSearchInputFocused.trackSettingSearchQueryEntered();
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp.isQueryEnteredTracked = true;
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj = trackSettingSearchInputFocused;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
prototype["terminate"] = function terminate() {
|
|
|
|
|
const self = this;
|
|
|
|
|
if (tmp) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = trackSettingSearchInputFocused;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { searchSessionDuration: null };
|
|
|
|
|
const _Date = Date;
|
|
|
|
|
obj[0] = Date.now() - self.searchSessionStartTime;
|
|
|
|
|
const result = obj.trackSettingSearchClosed(obj);
|
|
|
|
|
self.searchSessionId = null;
|
|
|
|
|
self.searchSessionStartTime = null;
|
|
|
|
|
self.isQueryEnteredTracked = false;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
2026-08-24 06:08:38 +00:00
|
|
|
let result = set.fileFinishedImporting("modules/settings/tracking/SettingSearchSessionAnalyticsManager.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default Object.create(SettingSearchSessionAnalyticsManager.prototype);
|