// Module ID: 9222 // Function ID: 9223 // Name: GameConsoleConstants // Dependencies: [1085, 8458, 2] // Exports: XBOX_HANDOFF_SEARCH_PARAMS // Module 9222 (GameConsoleConstants) import Constants from "Constants" /* 1085 */; import OAuth2Scopes from "OAuth2Scopes" /* 8458 */; import size from "module_2" /* 2 */; const ActivityGamePlatforms = Constants.ActivityGamePlatforms; const items = [OAuth2Scopes.OAuth2Scopes.VOICE, OAuth2Scopes.OAuth2Scopes.DM_CHANNELS_READ, OAuth2Scopes.OAuth2Scopes.GUILDS, OAuth2Scopes.OAuth2Scopes.GUILDS_MEMBERS_READ, OAuth2Scopes.OAuth2Scopes.IDENTIFY, OAuth2Scopes.OAuth2Scopes.CONNECTIONS, OAuth2Scopes.OAuth2Scopes.ACTIVITIES_READ]; const items1 = [OAuth2Scopes.OAuth2Scopes.VOICE, OAuth2Scopes.OAuth2Scopes.DM_CHANNELS_READ, OAuth2Scopes.OAuth2Scopes.GUILDS, OAuth2Scopes.OAuth2Scopes.GUILDS_MEMBERS_READ, OAuth2Scopes.OAuth2Scopes.IDENTIFY, OAuth2Scopes.OAuth2Scopes.CONNECTIONS]; let obj = { PLAYSTATION: "playstation", XBOX: "xbox" }; const items2 = [, ]; ({ XBOX: arr3[0], PLAYSTATION: arr3[1] } = obj); const items3 = [, ]; ({ XBOX: arr4[0], PS5: arr4[1] } = ActivityGamePlatforms); const obj2 = { CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED: 270000, [270000]: "CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED", CONSOLE_DEVICE_UNAVAILABLE: 270001, [270001]: "CONSOLE_DEVICE_UNAVAILABLE", CONSOLE_DEVICE_UNVAILABLE_FROM_OTHER_USERS: 270002, [270002]: "CONSOLE_DEVICE_UNVAILABLE_FROM_OTHER_USERS", CONSOLE_DEVICE_COMMUNICATION_RESTRICTED: 270003, [270003]: "CONSOLE_DEVICE_COMMUNICATION_RESTRICTED", CONSOLE_DEVICE_INVALID_POWER_MODE: 270004, [270004]: "CONSOLE_DEVICE_INVALID_POWER_MODE", CONSOLE_DEVICE_ACCOUNT_LINK_ERROR: 270005, [270005]: "CONSOLE_DEVICE_ACCOUNT_LINK_ERROR", CONSOLE_DEVICE_MAX_MEMBERS_REACHED: 270006, [270006]: "CONSOLE_DEVICE_MAX_MEMBERS_REACHED", CONSOLE_DEVICE_BAD_COMMAND: 270007, [270007]: "CONSOLE_DEVICE_BAD_COMMAND" }; const items4 = [obj2.CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED]; const set = new Set(items2); const set1 = new Set(items3); const set2 = new Set(items4); const result = size.fileFinishedImporting("modules/game_console/GameConsoleConstants.tsx"); export const XBOX_URL_BASE = "xbox://communitylinking/donut/audio"; export const XBOX_IOS_APP_LINK = "https://apps.apple.com/us/app/xbox/id736179781"; export const XBOX_ANDROID_APP_LINK = "https://play.google.com/store/apps/details?id=com.microsoft.xboxone.smartglass"; export const XBOX_APP_WEB_LINK = "https://www.xbox.com/en-US/apps/xbox-app-for-mobile"; export const XBOX_LINK_DEST_ORIGIN = "https://login.live.com"; export const XBOX_CLIENT_SCOPES = items; export const PLAYSTATION_CLIENT_SCOPES = items1; export const PLAYSTATION_LINK_DEST_ORIGIN = "https://my.account.sony.com"; export const XBOX_HANDOFF_SEARCH_PARAMS = (channelid) => { const nonce = channelid.nonce; const obj = { channelid: channelid.channelId, guildid: channelid.guildId, channelname: channelid.channelName, guildname: channelid.guildName, muted: String(channelid.muted), deafened: String(channelid.deafened) }; if (null != nonce) { obj.nonce = nonce; } const uRLSearchParams = new URLSearchParams(obj); return uRLSearchParams; }; export const GameConsoleTypes = obj; export const GAME_CONSOLE_SESSIONS = set; export const CONSOLE_VOICE_PLATFORMS = set1; export const GameConsoleCommandResultErrorCodes = obj2; export const USER_ACTION_REQUIRED_ERROR_CODES = set2; export const GAME_CONSOLE_ALERT_MODAL_LOCATION = "console error alert";