decord/source/modules/quests/lib/analytics/QuestHomeSearchSession.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 5966
2026-07-27 11:26:19 +00:00
// Function ID: 53084
2026-07-20 16:05:17 +00:00
// Name: getOrCreateQuestHomeSearchSession
2026-07-25 08:10:48 +00:00
// Dependencies: [491, 5701, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearQuestHomeSearchSession, getCurrentQuestHomeSearchSession, getOrCreateQuestHomeSearchSession
2026-07-25 08:10:48 +00:00
// Module 5966 (getOrCreateQuestHomeSearchSession)
2026-07-23 10:11:24 +00:00
let c2 = null;
const result = require("set").fileFinishedImporting("modules/quests/lib/analytics/QuestHomeSearchSession.tsx");
2026-07-20 16:05:17 +00:00
export const getOrCreateQuestHomeSearchSession = function getOrCreateQuestHomeSearchSession() {
const timestamp = Date.now();
2026-07-23 10:11:24 +00:00
if (null == obj) {
obj = {};
2026-07-25 08:10:48 +00:00
obj = { uuid: require(491) /* v1 */.v4(), createdAtTimestamp: timestamp, lastUsedTimestamp: timestamp, version: require(5701) /* result */.CLIENT_SESSION_STORAGE_VERSION };
2026-07-20 16:05:17 +00:00
obj.searchSession = obj;
obj.isNew = true;
2026-07-23 10:11:24 +00:00
const obj4 = require(491) /* v1 */;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
obj.lastUsedTimestamp = timestamp;
obj = {};
obj.searchSession = obj;
obj.isNew = false;
2026-07-20 16:05:17 +00:00
}
return obj;
};
export function clearQuestHomeSearchSession() {
2026-07-23 10:11:24 +00:00
let c2 = null;
2026-07-20 16:05:17 +00:00
}
export function getCurrentQuestHomeSearchSession() {
2026-07-23 10:11:24 +00:00
return c2;
2026-07-20 16:05:17 +00:00
}