2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 12785
|
|
|
|
|
// Function ID: 12786
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isOnXbox
|
2026-09-26 08:31:33 +00:00
|
|
|
// Dependencies: [2005, 1074, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 12785 (isOnXbox)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-26 08:31:33 +00:00
|
|
|
import Constants2 from "Constants" /* 2005 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
let closure_0 = Constants2.XBOX_ACTIVITY_APPLICATION_ID;
|
|
|
|
|
const ActivityGamePlatforms = Constants.ActivityGamePlatforms;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/isOnXbox.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function isOnXbox(application_id) {
|
|
|
|
|
application_id = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (application_id != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
application_id = application_id.application_id;
|
|
|
|
|
}
|
|
|
|
|
let tmp2 = application_id === closure_0;
|
|
|
|
|
if (!tmp2) {
|
|
|
|
|
let platform;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (application_id != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
platform = application_id.platform;
|
|
|
|
|
}
|
|
|
|
|
tmp2 = platform === ActivityGamePlatforms.XBOX;
|
|
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
};
|