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

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 6975
// Function ID: 55777
2026-07-20 16:05:17 +00:00
// Name: getOrCreateQuestHomeSearchSession
2026-07-23 10:11:24 +00:00
// Dependencies: [491, 6705, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearQuestHomeSearchSession, getCurrentQuestHomeSearchSession, getOrCreateQuestHomeSearchSession
2026-07-24 07:16:23 +00:00
// Module 6975 (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 = {};
obj = { uuid: require(491) /* v1 */.v4(), createdAtTimestamp: timestamp, lastUsedTimestamp: timestamp, version: require(6705) /* 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
}