decord/alpha/source/modules/activate_device/ActivateDeviceUtils.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

25 lines
974 B
TypeScript

// Module ID: 13625
// Function ID: 13626
// Name: ActivateDeviceUtils
// Dependencies: [1074, 8738, 2]
// Exports: clientIdToActivateDevicePlatform
// Module 13625 (ActivateDeviceUtils)
import Constants from "Constants" /* 1074 */;
import ConsoleOAuthApplications from "ConsoleOAuthApplications" /* 8738 */;
import size from "module_2" /* 2 */;
const PlatformTypes = Constants.PlatformTypes;
const result = size.fileFinishedImporting("modules/activate_device/ActivateDeviceUtils.tsx");
export const clientIdToActivateDevicePlatform = function clientIdToActivateDevicePlatform(clientId) {
if (clientId === ConsoleOAuthApplications.ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID) {
let PLAYSTATION = PlatformTypes.PLAYSTATION;
} else {
PLAYSTATION = null;
if (clientId === ConsoleOAuthApplications.ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID) {
PLAYSTATION = PlatformTypes.PLAYSTATION_STAGING;
}
}
return PLAYSTATION;
};