2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 7836
|
|
|
|
|
// Function ID: 7837
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: QuestHomeSearchSession
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [1256, 7574, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: clearQuestHomeSearchSession, getCurrentQuestHomeSearchSession, getOrCreateQuestHomeSearchSession
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 7836 (QuestHomeSearchSession)
|
2026-09-05 10:56:28 +00:00
|
|
|
import v1 from "v1" /* 1256 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import SessionUtils from "SessionUtils" /* 7574 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
let c2 = null;
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.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-09-10 05:38:07 +00:00
|
|
|
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;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
searchSession.lastUsedTimestamp = timestamp;
|
|
|
|
|
obj = { searchSession, isNew: false };
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return obj;
|
|
|
|
|
};
|
|
|
|
|
export function clearQuestHomeSearchSession() {
|
2026-08-24 06:08:38 +00:00
|
|
|
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
|
|
|
}
|