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

55 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11581
// Function ID: 11582
2026-07-29 08:29:29 +00:00
// Name: _initialize
2026-08-24 06:08:38 +00:00
// Dependencies: [8545, 11582, 11560, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 11581 (_initialize)
import set from "set" /* 2 */;
import SearchEntrypointAnalyticsLocations from "SearchEntrypointAnalyticsLocations" /* 8545 */;
import SearchTokenTypes from "SearchTokenTypes" /* 11560 */;
import getSessionDefault from "getSession" /* 11582 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
let closure_2 = SearchEntrypointAnalyticsLocations.SEARCH_TAB_TO_ANALYTICS_SEARCH_TAB;
getSessionDefault;
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-24 06:08:38 +00:00
const result = locations.set(SearchTokenTypes.getSearchContextId(searchContext), arg1);
2026-07-29 08:29:29 +00:00
};
prototype["_terminate"] = function _terminate(searchContext) {
2026-08-24 06:08:38 +00:00
const searchContextId = 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-24 06:08:38 +00:00
return locations.get(SearchTokenTypes.getSearchContextId(searchContext));
2026-07-29 08:29:29 +00:00
};
prototype["getSelectedTab"] = function getSelectedTab(searchContext) {
const selectedTabs = this.selectedTabs;
2026-08-24 06:08:38 +00:00
return selectedTabs.get(SearchTokenTypes.getSearchContextId(searchContext));
2026-07-29 08:29:29 +00:00
};
prototype["setSelectedTab"] = function setSelectedTab(visibleTabs, arg1) {
const selectedTabs = this.selectedTabs;
2026-08-24 06:08:38 +00:00
const result = selectedTabs.set(SearchTokenTypes.getSearchContextId(visibleTabs), table[arg1]);
2026-07-29 08:29:29 +00:00
};
const searchSessionAnalyticsManager = new SearchSessionAnalyticsManager();
2026-08-24 06:08:38 +00:00
let result = set.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;