// Module ID: 7836 // Function ID: 7837 // Name: QuestHomeSearchSession // Dependencies: [1256, 7574, 2] // Exports: clearQuestHomeSearchSession, getCurrentQuestHomeSearchSession, getOrCreateQuestHomeSearchSession // Module 7836 (QuestHomeSearchSession) import v1 from "v1" /* 1256 */; import SessionUtils from "SessionUtils" /* 7574 */; import size from "module_2" /* 2 */; let c2 = null; const result = size.fileFinishedImporting("modules/quests/lib/analytics/QuestHomeSearchSession.tsx"); export const getOrCreateQuestHomeSearchSession = function getOrCreateQuestHomeSearchSession() { const timestamp = Date.now(); if (null == searchSession) { const obj2 = { searchSession: null, isNew: true }; const obj3 = { uuid: v1.v4(), createdAtTimestamp: timestamp, lastUsedTimestamp: timestamp, version: SessionUtils.CLIENT_SESSION_STORAGE_VERSION }; searchSession = obj3; obj2.searchSession = obj3; let obj = obj2; } else { searchSession.lastUsedTimestamp = timestamp; obj = { searchSession, isNew: false }; } return obj; }; export function clearQuestHomeSearchSession() { c2 = null; } export function getCurrentQuestHomeSearchSession() { return c2; }