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

51 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 11617
// Function ID: 11618
2026-07-29 08:29:29 +00:00
// Name: _initialize
2026-08-05 07:35:12 +00:00
// Dependencies: [8179, 11618, 11596, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 11617 (_initialize)
2026-07-29 08:29:29 +00:00
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;
2026-08-05 07:35:12 +00:00
const result = locations.set(require(11596) /* SearchTokenTypes */.getSearchContextId(searchContext), arg1);
2026-07-29 08:29:29 +00:00
};
prototype["_terminate"] = function _terminate(searchContext) {
2026-08-05 07:35:12 +00:00
const searchContextId = require(11596) /* SearchTokenTypes */.getSearchContextId(searchContext);
2026-07-29 08:29:29 +00:00
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;
2026-08-05 07:35:12 +00:00
return locations.get(require(11596) /* SearchTokenTypes */.getSearchContextId(searchContext));
2026-07-29 08:29:29 +00:00
};
prototype["getSelectedTab"] = function getSelectedTab(searchContext) {
const selectedTabs = this.selectedTabs;
2026-08-05 07:35:12 +00:00
return selectedTabs.get(require(11596) /* SearchTokenTypes */.getSearchContextId(searchContext));
2026-07-29 08:29:29 +00:00
};
prototype["setSelectedTab"] = function setSelectedTab(visibleTabs, arg1) {
const selectedTabs = this.selectedTabs;
2026-08-05 07:35:12 +00:00
const result = selectedTabs.set(require(11596) /* SearchTokenTypes */.getSearchContextId(visibleTabs), table[arg1]);
2026-07-29 08:29:29 +00:00
};
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;