32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Module ID: 6975
|
|
// Function ID: 55777
|
|
// Name: getOrCreateQuestHomeSearchSession
|
|
// Dependencies: [491, 6705, 2]
|
|
// Exports: clearQuestHomeSearchSession, getCurrentQuestHomeSearchSession, getOrCreateQuestHomeSearchSession
|
|
|
|
// Module 6975 (getOrCreateQuestHomeSearchSession)
|
|
let c2 = null;
|
|
const result = require("set").fileFinishedImporting("modules/quests/lib/analytics/QuestHomeSearchSession.tsx");
|
|
|
|
export const getOrCreateQuestHomeSearchSession = function getOrCreateQuestHomeSearchSession() {
|
|
const timestamp = Date.now();
|
|
if (null == obj) {
|
|
obj = {};
|
|
obj = { uuid: require(491) /* v1 */.v4(), createdAtTimestamp: timestamp, lastUsedTimestamp: timestamp, version: require(6705) /* result */.CLIENT_SESSION_STORAGE_VERSION };
|
|
obj.searchSession = obj;
|
|
obj.isNew = true;
|
|
const obj4 = require(491) /* v1 */;
|
|
} else {
|
|
obj.lastUsedTimestamp = timestamp;
|
|
obj = {};
|
|
obj.searchSession = obj;
|
|
obj.isNew = false;
|
|
}
|
|
return obj;
|
|
};
|
|
export function clearQuestHomeSearchSession() {
|
|
let c2 = null;
|
|
}
|
|
export function getCurrentQuestHomeSearchSession() {
|
|
return c2;
|
|
}
|