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

35 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7088
// Function ID: 7089
2026-07-20 16:05:17 +00:00
// Name: getOrCreateQuestHomeSearchSession
2026-08-05 07:35:12 +00:00
// Dependencies: [514, 6825, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearQuestHomeSearchSession, getCurrentQuestHomeSearchSession, getOrCreateQuestHomeSearchSession
2026-08-05 07:35:12 +00:00
// Module 7088 (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) {
2026-07-29 08:29:29 +00:00
obj = { searchSession: null, isNew: true };
obj = { uuid: null, createdAtTimestamp: null, lastUsedTimestamp: null, version: null };
obj[0] = require(514) /* v1 */.v4();
obj[1] = timestamp;
obj[2] = timestamp;
2026-08-05 07:35:12 +00:00
obj[3] = require(6825) /* result */.CLIENT_SESSION_STORAGE_VERSION;
2026-07-29 08:29:29 +00:00
obj[0] = obj;
const obj4 = require(514) /* v1 */;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
obj.lastUsedTimestamp = timestamp;
2026-07-29 08:29:29 +00:00
obj = { searchSession: null, isNew: false };
obj[0] = obj;
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
}