decord/source/modules/search/managers/native/SearchSessionAnalyticsManager.tsx

51 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 10116
// Function ID: 10117
// Name: _initialize
// Dependencies: [9129, 10117, 10103, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 10116 (_initialize)
import { SEARCH_TAB_TO_ANALYTICS_SEARCH_TAB as closure_2 } from "SearchEntrypointAnalyticsLocations";
import "getSession";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
class SearchSessionAnalyticsManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
map = new Map();
applyArgumentsResult.locations = map;
map1 = new Map();
applyArgumentsResult.selectedTabs = map1;
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const prototype = SearchSessionAnalyticsManager.prototype;
prototype["_initialize"] = function _initialize(searchContext) {
const locations = this.locations;
const result = locations.set(require(10103) /* SearchTokenTypes */.getSearchContextId(searchContext), arg1);
};
prototype["_terminate"] = function _terminate(searchContext) {
const searchContextId = require(10103) /* SearchTokenTypes */.getSearchContextId(searchContext);
const locations = this.locations;
locations.delete(searchContextId);
const selectedTabs = this.selectedTabs;
selectedTabs.delete(searchContextId);
};
prototype["_transferSession"] = function _transferSession(arg0, searchContext) {
};
prototype["getLocation"] = function getLocation(searchContext) {
const locations = this.locations;
return locations.get(require(10103) /* SearchTokenTypes */.getSearchContextId(searchContext));
};
prototype["getSelectedTab"] = function getSelectedTab(searchContext) {
const selectedTabs = this.selectedTabs;
return selectedTabs.get(require(10103) /* SearchTokenTypes */.getSearchContextId(searchContext));
};
prototype["setSelectedTab"] = function setSelectedTab(visibleTabs, arg1) {
const selectedTabs = this.selectedTabs;
const result = selectedTabs.set(require(10103) /* SearchTokenTypes */.getSearchContextId(visibleTabs), table[arg1]);
};
const searchSessionAnalyticsManager = new SearchSessionAnalyticsManager();
let result = require("SearchTokenTypes").fileFinishedImporting("modules/search/managers/native/SearchSessionAnalyticsManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default searchSessionAnalyticsManager;