2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 4773
|
|
|
|
|
// Function ID: 4774
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getSoundshareAnalyticsContext
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [1916, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 4773 (getSoundshareAnalyticsContext)
|
2026-09-15 14:23:42 +00:00
|
|
|
import RunningGameStore from "RunningGameStore" /* 1916 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/go_live/utils/getSoundshareAnalyticsContext.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function getSoundshareAnalyticsContext(sourcePid) {
|
|
|
|
|
if (null == sourcePid) {
|
|
|
|
|
return {};
|
|
|
|
|
} else {
|
|
|
|
|
sourcePid = sourcePid.sourcePid;
|
|
|
|
|
let tmp;
|
|
|
|
|
let tmp2;
|
|
|
|
|
if (null != sourcePid) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const gameForPID = RunningGameStore.getGameForPID(sourcePid);
|
2026-07-20 16:05:17 +00:00
|
|
|
let name;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (gameForPID != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
name = gameForPID.name;
|
|
|
|
|
}
|
|
|
|
|
let id;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (gameForPID != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
id = gameForPID.id;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp = id;
|
|
|
|
|
tmp2 = name;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = { soundshare_session: sourcePid.soundshareSession, share_game_name: tmp2, share_game_id: tmp };
|
2026-07-20 16:05:17 +00:00
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
};
|