decord/beta/source/modules/activate_device/ActivateDeviceUtils.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

25 lines
974 B
TypeScript

// Module ID: 14148
// Function ID: 14149
// Name: ActivateDeviceUtils
// Dependencies: [1078, 9358, 2]
// Exports: clientIdToActivateDevicePlatform
// Module 14148 (ActivateDeviceUtils)
import Constants from "Constants" /* 1078 */;
import ConsoleOAuthApplications from "ConsoleOAuthApplications" /* 9358 */;
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;
};