2026-07-23 10:11:24 +00:00
|
|
|
// Module ID: 4306
|
2026-07-24 07:16:23 +00:00
|
|
|
// Function ID: 37696
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getSoundshareAnalyticsContext
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [4150, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
// Module 4306 (getSoundshareAnalyticsContext)
|
|
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
|
|
|
|
|
const result = require("set").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-07-23 10:11:24 +00:00
|
|
|
gameForPID = gameForPID.getGameForPID(sourcePid);
|
2026-07-20 16:05:17 +00:00
|
|
|
let name;
|
|
|
|
|
if (null != gameForPID) {
|
|
|
|
|
name = gameForPID.name;
|
|
|
|
|
}
|
|
|
|
|
let id;
|
|
|
|
|
if (null != gameForPID) {
|
|
|
|
|
id = gameForPID.id;
|
|
|
|
|
}
|
|
|
|
|
tmp2 = id;
|
|
|
|
|
tmp = name;
|
|
|
|
|
}
|
|
|
|
|
const obj = { soundshare_session: sourcePid.soundshareSession, share_game_name: tmp, share_game_id: tmp2 };
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
};
|