Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,33 @@
|
||||
/* Metro module 15471; source: modules/game_console/ConsoleVoiceUpsellStore.tsx; dependencies: [629, 690, 2] */
|
||||
function _fun118418(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15668:6, offset: 0x024db18d, size: 184 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
Object = global.Object;
|
||||
const env0_2 = Object.freeze({'voiceUpsellDismissed': false, 'showSparkles': false});
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
value = value.create(_fun118419);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/ConsoleVoiceUpsellStore.tsx');
|
||||
exports.useConsoleVoiceUpsellStore = value;
|
||||
exports.setShowConsoleVoiceSparkles = setShowConsoleVoiceSparkles;
|
||||
exports.setVoiceUpsellDismissed = setVoiceUpsellDismissed;
|
||||
}
|
||||
|
||||
function setShowConsoleVoiceSparkles(a0) { // fn#118420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15668:324, offset: 0x024db245, size: 54 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun118421);
|
||||
}
|
||||
|
||||
function setVoiceUpsellDismissed(a0) { // fn#118422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15668:414, offset: 0x024db29f, size: 54 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun118423);
|
||||
}
|
||||
|
||||
function _fun118421() { // fn#118421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15668:350, offset: 0x024db27b, size: 36 bytes, params: 1, frame: 12
|
||||
env1_3.setState({showSparkles: env0_0});
|
||||
}
|
||||
|
||||
function _fun118423() { // fn#118423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15668:440, offset: 0x024db2d5, size: 36 bytes, params: 1, frame: 12
|
||||
env1_3.setState({voiceUpsellDismissed: env0_0});
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,8 @@
|
||||
/* Metro module 9425; source: modules/game_console/GameConsoleAlertUtils.tsx; dependencies: [2, 9426] */
|
||||
function _fun73385(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9611:6, offset: 0x01d6ab7f, size: 95 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/GameConsoleAlertUtils.tsx');
|
||||
exports.default = (require(9426) /* metro dependency 9426: GameConsoleAlertUtils */).default;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
/* Metro module 9340; source: modules/game_console/GameConsoleConstants.tsx; dependencies: [661, 4122, 2] */
|
||||
function _fun72888(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9526:6, offset: 0x01d5742d, size: 918 bytes, params: 8, frame: 23
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const ActivityGamePlatforms = (require(661) /* metro dependency 661: Constants */).ActivityGamePlatforms;
|
||||
const OAuth2Scopes = (require(4122) /* metro dependency 4122: OAuth2Scopes */).OAuth2Scopes;
|
||||
let VOICE = OAuth2Scopes.VOICE;
|
||||
items2 = [VOICE];
|
||||
let DM_CHANNELS_READ = OAuth2Scopes.DM_CHANNELS_READ;
|
||||
items2[1] = DM_CHANNELS_READ;
|
||||
let GUILDS = OAuth2Scopes.GUILDS;
|
||||
items2[2] = GUILDS;
|
||||
let GUILDS_MEMBERS_READ = OAuth2Scopes.GUILDS_MEMBERS_READ;
|
||||
items2[3] = GUILDS_MEMBERS_READ;
|
||||
let IDENTIFY = OAuth2Scopes.IDENTIFY;
|
||||
items2[4] = IDENTIFY;
|
||||
let CONNECTIONS = OAuth2Scopes.CONNECTIONS;
|
||||
items2[5] = CONNECTIONS;
|
||||
const ACTIVITIES_READ = OAuth2Scopes.ACTIVITIES_READ;
|
||||
items2[6] = ACTIVITIES_READ;
|
||||
VOICE = OAuth2Scopes.VOICE;
|
||||
const items3 = [VOICE];
|
||||
DM_CHANNELS_READ = OAuth2Scopes.DM_CHANNELS_READ;
|
||||
items3[1] = DM_CHANNELS_READ;
|
||||
GUILDS = OAuth2Scopes.GUILDS;
|
||||
items3[2] = GUILDS;
|
||||
GUILDS_MEMBERS_READ = OAuth2Scopes.GUILDS_MEMBERS_READ;
|
||||
items3[3] = GUILDS_MEMBERS_READ;
|
||||
IDENTIFY = OAuth2Scopes.IDENTIFY;
|
||||
items3[4] = IDENTIFY;
|
||||
CONNECTIONS = OAuth2Scopes.CONNECTIONS;
|
||||
items3[5] = CONNECTIONS;
|
||||
const object4 = {PLAYSTATION: 'playstation', XBOX: 'xbox'};
|
||||
let Set = global.Set;
|
||||
let XBOX = object4.XBOX;
|
||||
const PLAYSTATION = object4.PLAYSTATION;
|
||||
let set = new Set([XBOX, PLAYSTATION]);
|
||||
Set = global.Set;
|
||||
XBOX = ActivityGamePlatforms.XBOX;
|
||||
const PS5 = ActivityGamePlatforms.PS5;
|
||||
set = new Set([XBOX, PS5]);
|
||||
const object5 = {CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED: 270000};
|
||||
object5[270000] = 'CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED';
|
||||
object5.CONSOLE_DEVICE_UNAVAILABLE = 270001;
|
||||
object5[270001] = 'CONSOLE_DEVICE_UNAVAILABLE';
|
||||
object5.CONSOLE_DEVICE_UNVAILABLE_FROM_OTHER_USERS = 270002;
|
||||
object5[270002] = 'CONSOLE_DEVICE_UNVAILABLE_FROM_OTHER_USERS';
|
||||
object5.CONSOLE_DEVICE_COMMUNICATION_RESTRICTED = 270003;
|
||||
object5[270003] = 'CONSOLE_DEVICE_COMMUNICATION_RESTRICTED';
|
||||
object5.CONSOLE_DEVICE_INVALID_POWER_MODE = 270004;
|
||||
object5[270004] = 'CONSOLE_DEVICE_INVALID_POWER_MODE';
|
||||
object5.CONSOLE_DEVICE_ACCOUNT_LINK_ERROR = 270005;
|
||||
object5[270005] = 'CONSOLE_DEVICE_ACCOUNT_LINK_ERROR';
|
||||
object5.CONSOLE_DEVICE_MAX_MEMBERS_REACHED = 270006;
|
||||
object5[270006] = 'CONSOLE_DEVICE_MAX_MEMBERS_REACHED';
|
||||
object5.CONSOLE_DEVICE_BAD_COMMAND = 270007;
|
||||
object5[270007] = 'CONSOLE_DEVICE_BAD_COMMAND';
|
||||
Set = global.Set;
|
||||
const CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED = object5.CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED;
|
||||
set = new Set([CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/GameConsoleConstants.tsx');
|
||||
exports.XBOX_URL_BASE = 'xbox://communitylinking/donut/audio';
|
||||
exports.XBOX_IOS_APP_LINK = 'https://apps.apple.com/us/app/xbox/id736179781';
|
||||
exports.XBOX_ANDROID_APP_LINK = 'https://play.google.com/store/apps/details?id=com.microsoft.xboxone.smartglass';
|
||||
exports.XBOX_APP_WEB_LINK = 'https://www.xbox.com/en-US/apps/xbox-app-for-mobile';
|
||||
exports.XBOX_LINK_DEST_ORIGIN = 'https://login.live.com';
|
||||
exports.XBOX_CLIENT_SCOPES = items2;
|
||||
exports.PLAYSTATION_CLIENT_SCOPES = items3;
|
||||
exports.PLAYSTATION_LINK_DEST_ORIGIN = 'https://my.account.sony.com';
|
||||
exports.XBOX_HANDOFF_SEARCH_PARAMS = XBOX_HANDOFF_SEARCH_PARAMS;
|
||||
exports.GameConsoleTypes = object4;
|
||||
exports.GAME_CONSOLE_SESSIONS = set;
|
||||
exports.CONSOLE_VOICE_PLATFORMS = set;
|
||||
exports.GameConsoleCommandResultErrorCodes = object5;
|
||||
exports.USER_ACTION_REQUIRED_ERROR_CODES = set;
|
||||
exports.GAME_CONSOLE_ALERT_MODAL_LOCATION = 'console error alert';
|
||||
}
|
||||
|
||||
function XBOX_HANDOFF_SEARCH_PARAMS({guildId, channelName, guildName, channelId, muted, deafened, nonce}) { // fn#72889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9526:2023, offset: 0x01d577c3, size: 152 bytes, params: 2, frame: 16
|
||||
const object2 = {channelid: channelId, guildid: guildId, channelname: channelName, guildname: guildName};
|
||||
let String = global.String;
|
||||
object2.muted = String(muted);
|
||||
String = global.String;
|
||||
object2.deafened = String(deafened);
|
||||
if (nonce != null) {
|
||||
object2.nonce = nonce;
|
||||
}
|
||||
const URLSearchParams = global.URLSearchParams;
|
||||
const value = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
|
||||
const uRLSearchParams = new URLSearchParams(object2);
|
||||
return uRLSearchParams instanceof Object ? uRLSearchParams : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,417 @@
|
||||
/* Metro module 15716; source: modules/game_console/GameConsoleManager.tsx; dependencies: [7, 6, 15, 17, 18, 5, 1226, 4259, 4294, 4296, 4297, 4295, 9340, 4291, 3, 44, 8899, 10838, 4041, 9422, 1360, 4647, 1244, 15717, 9425, 4860, 2] */
|
||||
function _fun120629(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:6, offset: 0x02531865, size: 460 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const syncLocalState = function() {
|
||||
return _syncLocalState.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = importDefault(5) /* metro dependency 5 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const sessionsStore = importDefault(4296) /* metro dependency 4296: SessionsStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
|
||||
let value = require(9340) /* metro dependency 9340: GameConsoleConstants */;
|
||||
const env0_15 = value.GAME_CONSOLE_SESSIONS;
|
||||
const env0_16 = value.USER_ACTION_REQUIRED_ERROR_CODES;
|
||||
const env0_17 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
|
||||
value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('GameConsoleManager');
|
||||
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun120637(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/GameConsoleManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_120630() { // fn#120630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:329, offset: 0x02531a31, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_120630_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _syncLocalState() { // fn#120634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:635, offset: 0x02531a93, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_8(_fun120636).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun120637(a0) { // fn#120637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:962, offset: 0x02531ba9, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = GameConsoleManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function* _fun120636(a0) { // fn#120636, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:688, offset: 0x02531ad0, size: 217 bytes, params: 2, frame: 17
|
||||
var selfDeaf;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_11;
|
||||
env2_1(env2_2[15])(binding.getChannelId() == null, 'Syncing to remote while in voice!');
|
||||
if (a0.selfMute === Reflect.apply(env2_10.isSelfMute, binding, [])) {
|
||||
selfDeaf = a0.selfDeaf;
|
||||
binding = env2_10;
|
||||
if (selfDeaf !== binding.isSelfDeaf()) {
|
||||
env2_1(env2_2[16]).toggleSelfDeaf({syncRemote: false});
|
||||
}
|
||||
} else {
|
||||
binding = env2_1;
|
||||
var value5 = binding(env2_2[16]);
|
||||
yield value5.toggleSelfMute({syncRemote: false});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
selfDeaf = a0.selfDeaf;
|
||||
binding = env2_10;
|
||||
if (selfDeaf !== binding.isSelfDeaf()) {
|
||||
env2_1(env2_2[16]).toggleSelfDeaf({syncRemote: false});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function GameConsoleManager(a0) { // fn#120638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:974, offset: 0x02531bd3, size: 434 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_4;
|
||||
binding(this, GameConsoleManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(GameConsoleManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_120630()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
const Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
|
||||
const value4 = Object.create(Timeout.prototype, {constructor: {value: Timeout}});
|
||||
let timeout = new Timeout();
|
||||
value.rollbackCommandTimeout = timeout instanceof Object ? timeout : value4;
|
||||
const value6 = Object.create(Timeout.prototype, {constructor: {value: Timeout}});
|
||||
timeout = new Timeout();
|
||||
value.awaitRemoteTimeout = timeout instanceof Object ? timeout : value6;
|
||||
value.actions = {WAIT_FOR_REMOTE_SESSION: WAIT_FOR_REMOTE_SESSION_120639,
|
||||
POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_120640, SESSIONS_REPLACE: SESSIONS_REPLACE,
|
||||
AUDIO_TOGGLE_SELF_DEAF: AUDIO_TOGGLE_SELF_DEAF_120642, AUDIO_TOGGLE_SELF_MUTE: AUDIO_TOGGLE_SELF_MUTE_120643,
|
||||
VOICE_STATE_UPDATES: VOICE_STATE_UPDATES_120644, CONSOLE_COMMAND_UPDATE: CONSOLE_COMMAND_UPDATE,
|
||||
PASSIVE_UPDATE_V2: PASSIVE_UPDATE_V2_120646, REMOTE_SESSION_DISCONNECT: REMOTE_SESSION_DISCONNECT_120647};
|
||||
value.maybeConnect = maybeConnect;
|
||||
value.handleAudioStateToggle = handleAudioStateToggle;
|
||||
value.handleVoiceStateUpdates = handleVoiceStateUpdates_120653;
|
||||
value.handleSessionsChanged = handleSessionsChanged;
|
||||
value.handleWaitForRemoteSession = handleWaitForRemoteSession;
|
||||
value.handleConsoleCommandUpdate = handleConsoleCommandUpdate;
|
||||
value.handleRemoteSessionDisconnect = handleRemoteSessionDisconnect;
|
||||
return value;
|
||||
}
|
||||
|
||||
function GameConsoleManagerWAIT_FOR_REMOTE_SESSION() { // fn#120639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1339, owner: GameConsoleManager.WAIT_FOR_REMOTE_SESSION, offset: 0x02531d85, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0.handleWaitForRemoteSession();
|
||||
}
|
||||
|
||||
function GameConsoleManagerPOST_CONNECTION_OPEN() { // fn#120640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1395, owner: GameConsoleManager.POST_CONNECTION_OPEN, offset: 0x02531d98, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0.handleSessionsChanged();
|
||||
}
|
||||
|
||||
function GameConsoleManagerAUDIO_TOGGLE_SELF_DEAF(a0) { // fn#120642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1495, owner: GameConsoleManager.AUDIO_TOGGLE_SELF_DEAF, offset: 0x02531dab, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_0.handleAudioStateToggle(a0);
|
||||
}
|
||||
|
||||
function GameConsoleManagerVOICE_STATE_UPDATES(a0) { // fn#120644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1600, owner: GameConsoleManager.VOICE_STATE_UPDATES, offset: 0x02531dc2, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_0.handleVoiceStateUpdates(a0);
|
||||
}
|
||||
|
||||
function CONSOLE_COMMAND_UPDATE(a0) { // fn#120645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1655, owner: GameConsoleManager.CONSOLE_COMMAND_UPDATE, offset: 0x02531dd9, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_0.handleConsoleCommandUpdate(a0);
|
||||
}
|
||||
|
||||
function GameConsoleManagerREMOTE_SESSION_DISCONNECT() { // fn#120647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1766, owner: GameConsoleManager.REMOTE_SESSION_DISCONNECT, offset: 0x02531df0, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0.handleRemoteSessionDisconnect();
|
||||
}
|
||||
|
||||
function maybeConnect(a0) { // fn#120648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1820, owner: GameConsoleManager.maybeConnect, offset: 0x02531e03, size: 141 bytes, params: 2, frame: 17
|
||||
let value = ((a0) => {
|
||||
var env0_0 = GameConsoleStore.getAwaitingRemoteSessionInfo();
|
||||
return a0.find(_fun120650);
|
||||
})(a0);
|
||||
if (value == null) {
|
||||
return null;
|
||||
}
|
||||
env0_0.awaitRemoteTimeout.stop();
|
||||
const gameConsoleActionCreatorsModule = require(9422) /* metro dependency 9422: GameConsoleActionCreators */;
|
||||
gameConsoleActionCreatorsModule.connectToRemote(value.sessionId);
|
||||
value = VoiceStateStore.getVoiceStateForSession(AuthenticationStore.getId(), value.sessionId);
|
||||
if (value != null) {
|
||||
syncLocalState(value);
|
||||
}
|
||||
}
|
||||
|
||||
function handleAudioStateToggle({syncRemote, context}) { // fn#120651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:2301, owner: GameConsoleManager.handleAudioStateToggle, offset: 0x02531f5e, size: 246 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var value;
|
||||
var isSelfDeaf2;
|
||||
var isSelfMute2;
|
||||
var id;
|
||||
var remoteSessionId;
|
||||
var voiceStateForSession;
|
||||
if (syncRemote) {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (context === MediaEngineContextTypes.DEFAULT) {
|
||||
isSelfDeaf2 = MediaEngineStore.isSelfDeaf();
|
||||
isSelfMute2 = MediaEngineStore.isSelfMute();
|
||||
id = AuthenticationStore.getId();
|
||||
remoteSessionId = GameConsoleStore.getRemoteSessionId();
|
||||
if (remoteSessionId != null) {
|
||||
voiceStateForSession = VoiceStateStore.getVoiceStateForSession(id, remoteSessionId);
|
||||
if (voiceStateForSession != null) {
|
||||
if (!(voiceStateForSession.selfDeaf === isSelfDeaf2 && voiceStateForSession.selfMute === isSelfMute2)) {
|
||||
value = require(9422) /* metro dependency 9422: GameConsoleActionCreators */;
|
||||
value.remoteVoiceStateUpdate(remoteSessionId, {selfDeaf: isSelfDeaf2, selfMute: isSelfMute2});
|
||||
voiceStateForSession.rollbackCommandTimeout.start(3000, _fun120652);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function GameConsoleManagerHandleVoiceStateUpdates({voiceStates}) { // fn#120653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:2670, owner: GameConsoleManager.handleVoiceStateUpdates, offset: 0x0253206b, size: 173 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
var value5;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const remoteSessionId = GameConsoleStore.getRemoteSessionId();
|
||||
const env0_0 = remoteSessionId;
|
||||
if (remoteSessionId == null) {
|
||||
value5 = voiceStates.map(_fun120654);
|
||||
return env0_0.maybeConnect(value5.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish));
|
||||
}
|
||||
const value3 = voiceStates.find(_fun120655);
|
||||
if (value3 != null) {
|
||||
env0_0.rollbackCommandTimeout.stop();
|
||||
syncLocalState(value3);
|
||||
}
|
||||
}
|
||||
|
||||
function handleSessionsChanged() { // fn#120656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:2976, owner: GameConsoleManager.handleSessionsChanged, offset: 0x02532154, size: 138 bytes, params: 1, frame: 14
|
||||
var binding;
|
||||
var maybeConnect;
|
||||
var Object;
|
||||
const remoteSessionId = GameConsoleStore.getRemoteSessionId();
|
||||
if (remoteSessionId != null && SessionsStore.getSessionById(remoteSessionId) == null) {
|
||||
(require(9422) /* metro dependency 9422: GameConsoleActionCreators */).disconnectRemote();
|
||||
}
|
||||
if (remoteSessionId == null) {
|
||||
binding = env0_0;
|
||||
maybeConnect = binding.maybeConnect;
|
||||
Object = global.Object;
|
||||
Reflect.apply(maybeConnect, binding, [Object.values(SessionsStore.getSessions())]);
|
||||
}
|
||||
}
|
||||
|
||||
function handleWaitForRemoteSession() { // fn#120657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:3160, owner: GameConsoleManager.handleWaitForRemoteSession, offset: 0x025321de, size: 43 bytes, params: 1, frame: 13
|
||||
env0_0.awaitRemoteTimeout.start(60000, _fun120658);
|
||||
}
|
||||
|
||||
function handleConsoleCommandUpdate({id, result, error}) { // fn#120659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:3371, owner: GameConsoleManager.handleConsoleCommandUpdate, offset: 0x025322b2, size: 527 bytes, params: 2, frame: 26
|
||||
var environment;
|
||||
var r5;
|
||||
var type;
|
||||
var value2;
|
||||
var awaitingRemoteSessionInfo;
|
||||
var value4;
|
||||
var getDevice;
|
||||
var value6;
|
||||
var defaultImport;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value7;
|
||||
var awaitRemoteTimeout;
|
||||
const value = result === 'failed';
|
||||
if (value) {
|
||||
if (error != null) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
env2_18.info('Console command Error result:', result, error);
|
||||
awaitingRemoteSessionInfo = GameConsoleStore.getAwaitingRemoteSessionInfo();
|
||||
value4 = undefined;
|
||||
if ((awaitingRemoteSessionInfo == null ? value4 : awaitingRemoteSessionInfo.commandId) === id) {
|
||||
getDevice = GameConsoleStore.getDevice;
|
||||
type = awaitingRemoteSessionInfo.type;
|
||||
r5 = awaitingRemoteSessionInfo.deviceId ?? '';
|
||||
value6 = Reflect.apply(getDevice, GameConsoleStore, [type, r5]);
|
||||
defaultImport = importDefault(15717) /* metro dependency 15717: getErrorMessageForCommandResult */;
|
||||
if (value6 != null) {
|
||||
r5 = value6;
|
||||
} else {
|
||||
object2 = {id: 'id'};
|
||||
object2.platform = intl.string(t['UQMV/E']);
|
||||
object2.name = intl.string(t['UQMV/E']);
|
||||
r5 = object2;
|
||||
}
|
||||
value7 = defaultImport(r5, result, error);
|
||||
if (value7 != null) {
|
||||
(importDefault(9425) /* metro dependency 9425: GameConsoleAlertUtils */).showSelfDismissableAlert({title: value7.title,
|
||||
|
||||
|
||||
|
||||
|
||||
body: value7.body, errorCodeMessage: value7.errorCodeMessage,
|
||||
reconnectPlatformType: value7.isAccountLinkError ? awaitingRemoteSessionInfo.type : value4});
|
||||
}
|
||||
if (USER_ACTION_REQUIRED_ERROR_CODES.has(error.code)) {
|
||||
awaitRemoteTimeout = env0_0.awaitRemoteTimeout;
|
||||
if (awaitRemoteTimeout.isStarted()) {
|
||||
env0_0.awaitRemoteTimeout.start(180000, _fun120660, true);
|
||||
} else if (value) {
|
||||
(require(9422) /* metro dependency 9422: GameConsoleActionCreators */).disconnectRemote();
|
||||
}
|
||||
} else if (value) {
|
||||
(require(9422) /* metro dependency 9422: GameConsoleActionCreators */).disconnectRemote();
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (result === 'n/a') {
|
||||
if (error != null) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
env2_18.info('Console command Error result:', result, error);
|
||||
awaitingRemoteSessionInfo = GameConsoleStore.getAwaitingRemoteSessionInfo();
|
||||
value4 = undefined;
|
||||
if ((awaitingRemoteSessionInfo == null ? value4 : awaitingRemoteSessionInfo.commandId) === id) {
|
||||
getDevice = GameConsoleStore.getDevice;
|
||||
type = awaitingRemoteSessionInfo.type;
|
||||
r5 = awaitingRemoteSessionInfo.deviceId ?? '';
|
||||
value6 = Reflect.apply(getDevice, GameConsoleStore, [type, r5]);
|
||||
defaultImport = importDefault(15717) /* metro dependency 15717: getErrorMessageForCommandResult */;
|
||||
if (value6 != null) {
|
||||
r5 = value6;
|
||||
} else {
|
||||
object2 = {id: 'id'};
|
||||
object2.platform = intl.string(t['UQMV/E']);
|
||||
object2.name = intl.string(t['UQMV/E']);
|
||||
r5 = object2;
|
||||
}
|
||||
value7 = defaultImport(r5, result, error);
|
||||
if (value7 != null) {
|
||||
(importDefault(9425) /* metro dependency 9425: GameConsoleAlertUtils */).showSelfDismissableAlert({title: value7.title,
|
||||
|
||||
|
||||
|
||||
|
||||
body: value7.body, errorCodeMessage: value7.errorCodeMessage,
|
||||
reconnectPlatformType: value7.isAccountLinkError ? awaitingRemoteSessionInfo.type : value4});
|
||||
}
|
||||
if (USER_ACTION_REQUIRED_ERROR_CODES.has(error.code)) {
|
||||
awaitRemoteTimeout = env0_0.awaitRemoteTimeout;
|
||||
if (awaitRemoteTimeout.isStarted()) {
|
||||
env0_0.awaitRemoteTimeout.start(180000, _fun120660, true);
|
||||
} else if (value) {
|
||||
(require(9422) /* metro dependency 9422: GameConsoleActionCreators */).disconnectRemote();
|
||||
}
|
||||
} else if (value) {
|
||||
(require(9422) /* metro dependency 9422: GameConsoleActionCreators */).disconnectRemote();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleRemoteSessionDisconnect() { // fn#120661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:4112, owner: GameConsoleManager.handleRemoteSessionDisconnect, offset: 0x025324e6, size: 27 bytes, params: 1, frame: 9
|
||||
env0_0.awaitRemoteTimeout.stop();
|
||||
}
|
||||
|
||||
function findRemoteSession(a0) { // fn#120649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1830, owner: GameConsoleManager.maybeConnect.findRemoteSession, offset: 0x02531e90, size: 46 bytes, params: 2, frame: 12
|
||||
const env0_0 = GameConsoleStore.getAwaitingRemoteSessionInfo();
|
||||
return a0.find(_fun120650);
|
||||
}
|
||||
|
||||
function _fun120652() { // fn#120652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:2613, offset: 0x02532054, size: 23 bytes, params: 1, frame: 11
|
||||
syncLocalState(env0_0);
|
||||
}
|
||||
|
||||
function _fun120654({sessionId}) { // fn#120654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:2744, offset: 0x02532118, size: 38 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
let value = null;
|
||||
if (value != sessionId) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = SessionsStore.getSessionById(sessionId);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun120655({sessionId}) { // fn#120655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:2865, offset: 0x0253213e, size: 22 bytes, params: 2, frame: 2
|
||||
return sessionId === env0_0;
|
||||
}
|
||||
|
||||
function _fun120658() { // fn#120658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:3197, offset: 0x02532209, size: 169 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
(require(9422) /* metro dependency 9422: GameConsoleActionCreators */).disconnectRemote();
|
||||
value = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
const show = value.show;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
Reflect.apply(show, value, [{title: Reflect.apply(string, intl, [t.wGMxr3]), body: intl.string(t.i5k8b5)}]);
|
||||
}
|
||||
|
||||
function _fun120660() { // fn#120660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:3998, offset: 0x025324c1, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (require(9422) /* metro dependency 9422: GameConsoleActionCreators */).disconnectRemote();
|
||||
}
|
||||
|
||||
function _fun120650(a0) { // fn#120650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15924:1914, offset: 0x02531ebe, size: 160 bytes, params: 2, frame: 17
|
||||
var r2;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
const value2 = GAME_CONSOLE_SESSIONS.has(a0.clientInfo.os);
|
||||
const getVoiceStateForSession = VoiceStateStore.getVoiceStateForSession;
|
||||
const value5 = Reflect.apply(getVoiceStateForSession, VoiceStateStore, [AuthenticationStore.getId(),
|
||||
a0.sessionId]) != null;
|
||||
const value7 = env0_0 == null;
|
||||
if (value7) {
|
||||
r2 = value7;
|
||||
} else {
|
||||
value = require(10838) /* metro dependency 10838: coercePlatformTypeToConsoleType */;
|
||||
value = value.coercePlatformTypeToConsoleType(env0_0.type);
|
||||
value = value === a0.clientInfo.os;
|
||||
r2 = value;
|
||||
}
|
||||
return value2 && r2 && value5;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,254 @@
|
||||
/* Metro module 4295; source: modules/game_console/GameConsoleStore.tsx; dependencies: [6, 7, 15, 17, 18, 4296, 4297, 566, 694, 2] */
|
||||
function _fun36480(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:6, offset: 0x0108ce61, size: 488 bytes, params: 8, frame: 19
|
||||
const _arrayLikeToArray_36486 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const sessionsStore = importDefault(4296) /* metro dependency 4296: SessionsStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
const env0_10 = {};
|
||||
const env0_11 = {};
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
Object = global.Object;
|
||||
const env0_13 = Object.freeze({});
|
||||
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
|
||||
set = _fun36487(DeviceSettingsStore);
|
||||
set.displayName = 'GameConsoleStore';
|
||||
set.persistKey = 'GameConsoleStore';
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */, {REMOTE_SESSION_CONNECT: function(a0) {
|
||||
env0_7 = a0.sessionId;
|
||||
env0_8 = null;
|
||||
}, REMOTE_SESSION_DISCONNECT: function() {
|
||||
env0_7 = null;
|
||||
env0_8 = null;
|
||||
}, WAIT_FOR_REMOTE_SESSION: function({sessionType, nonce, channelId, deviceId, commandId}) {
|
||||
var object = {type: sessionType, nonce: nonce, channelId: channelId};
|
||||
object.startedAt = global.Date.now();
|
||||
object.deviceId = deviceId;
|
||||
object.commandId = commandId;
|
||||
env0_8 = object;
|
||||
}, GAME_CONSOLE_FETCH_DEVICES_START: GAME_CONSOLE_FETCH_DEVICES_START,
|
||||
GAME_CONSOLE_FETCH_DEVICES_SUCCESS: GAME_CONSOLE_FETCH_DEVICES_SUCCESS,
|
||||
GAME_CONSOLE_FETCH_DEVICES_FAIL: GAME_CONSOLE_FETCH_DEVICES_FAIL,
|
||||
GAME_CONSOLE_SELECT_DEVICE: GAME_CONSOLE_SELECT_DEVICE});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/GameConsoleStore.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_36481() { // fn#36481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:170, offset: 0x0108d049, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_36481_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_36484(a0, a1) { // fn#36484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:363, offset: 0x0108d0a7, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun36485;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_36486(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_36486(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_36486(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun36485;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun36487(a0) { // fn#36487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:1347, offset: 0x0108d219, size: 260 bytes, params: 2, frame: 16
|
||||
const closure = GameConsoleStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: value_36489}, {key: 'getUserAgnosticState', value: value_36490},
|
||||
{key: 'getDevicesForPlatform', value: value_36491}, {key: 'getLastSelectedDeviceByPlatform',
|
||||
value: value_36492}, {key: 'getDevice', value: value_36493}, {key: 'getFetchingDevices', value: value_36494},
|
||||
{key: 'getPendingDeviceCommands', value: value_36495}, {key: 'getRemoteSessionId', value: value_36496},
|
||||
{key: 'getAwaitingRemoteSessionInfo', value: value_36497}]);
|
||||
}
|
||||
|
||||
function GAME_CONSOLE_FETCH_DEVICES_START({platform}) { // fn#36501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:2805, offset: 0x0108d4a3, size: 30 bytes, params: 2, frame: 11
|
||||
env0_12.add(platform);
|
||||
}
|
||||
|
||||
function GAME_CONSOLE_FETCH_DEVICES_SUCCESS({platform, devices}) { // fn#36502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:2897, offset: 0x0108d4c1, size: 128 bytes, params: 2, frame: 18
|
||||
var r4;
|
||||
var value4;
|
||||
var id;
|
||||
var property;
|
||||
var value5;
|
||||
let binding = env0_12;
|
||||
binding.delete(platform);
|
||||
binding = env0_10;
|
||||
const object3 = {};
|
||||
binding[platform] = object3;
|
||||
const object4 = {};
|
||||
const value2 = _createForOfIteratorHelperLoose_36484(devices);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
if (!done) {
|
||||
r4 = value3;
|
||||
while (true) {
|
||||
value4 = r4.value;
|
||||
id = value4.id;
|
||||
object3[id] = value4;
|
||||
property = env0_11[platform];
|
||||
id = value4.id;
|
||||
if (property === id) {
|
||||
id = value4.id;
|
||||
object4[platform] = id;
|
||||
}
|
||||
value5 = value2();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r4 = value5;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function GAME_CONSOLE_FETCH_DEVICES_FAIL({platform}) { // fn#36503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:3132, offset: 0x0108d541, size: 30 bytes, params: 2, frame: 11
|
||||
env0_12.delete(platform);
|
||||
}
|
||||
|
||||
function GAME_CONSOLE_SELECT_DEVICE({platform, deviceId}) { // fn#36504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:3218, offset: 0x0108d55f, size: 30 bytes, params: 2, frame: 3
|
||||
env0_11[platform] = deviceId;
|
||||
}
|
||||
|
||||
function value_36489(a0) { // fn#36489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:1657, offset: 0x0108d38e, size: 52 bytes, params: 2, frame: 13
|
||||
var lastSelectedDeviceByPlatform;
|
||||
var value;
|
||||
if (a0 != null) {
|
||||
lastSelectedDeviceByPlatform = a0.lastSelectedDeviceByPlatform;
|
||||
value = environment.__proto__;
|
||||
}
|
||||
this.waitFor(SessionsStore, VoiceStateStore);
|
||||
}
|
||||
|
||||
function value_36490() { // fn#36490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:1767, offset: 0x0108d3c2, size: 16 bytes, params: 1, frame: 2
|
||||
return {lastSelectedDeviceByPlatform: env1_11};
|
||||
}
|
||||
|
||||
function value_36491(a0) { // fn#36491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4467:1854, offset: 0x0108d3d2, size: 26 bytes, params: 2, frame: 3
|
||||
return env1_10[a0] ?? env1_13;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 5049; source: modules/game_console/PlayStationVoiceExperiment.tsx; dependencies: [1358, 2] */
|
||||
function _fun43726(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5227:6, offset: 0x0115bd1e, size: 144 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(1358) /* metro dependency 1358: ApexExperiment */;
|
||||
value = value({'kind': 'user', 'name': '2026-03-churro', defaultConfig: {allowPlayStationStaging: false},
|
||||
variations: {[1]: {allowPlayStationStaging: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/PlayStationVoiceExperiment.tsx');
|
||||
exports.PlayStationVoiceExperiment = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 15476; source: modules/game_console/activityPlatformToConnectedAccountType.tsx; dependencies: [661, 2] */
|
||||
function _fun118459(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15673:6, offset: 0x024dc1b5, size: 119 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_0 = constantsModule.ActivityGamePlatforms;
|
||||
const env0_1 = constantsModule.PlatformTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/activityPlatformToConnectedAccountType.tsx');
|
||||
exports.default = function(a0) {
|
||||
if (ActivityGamePlatforms.PS4 === a0) {
|
||||
return PlatformTypes.PLAYSTATION;
|
||||
}
|
||||
if (ActivityGamePlatforms.PS5 === a0) {
|
||||
return PlatformTypes.PLAYSTATION;
|
||||
}
|
||||
if (ActivityGamePlatforms.XBOX === a0) {
|
||||
return PlatformTypes.XBOX;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/* Metro module 10838; source: modules/game_console/coercePlatformTypeToConsoleType.tsx; dependencies: [9340, 661, 2] */
|
||||
function _fun83094(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11024:6, offset: 0x01f0d133, size: 144 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(9340) /* metro dependency 9340: GameConsoleConstants */).GameConsoleTypes;
|
||||
const env0_1 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/coercePlatformTypeToConsoleType.tsx');
|
||||
exports.coercePlatformTypeToConsoleType = function(a0) {
|
||||
if (PlatformTypes.XBOX === a0) {
|
||||
return GameConsoleTypes.XBOX;
|
||||
}
|
||||
if (PlatformTypes.PLAYSTATION === a0) {
|
||||
return GameConsoleTypes.PLAYSTATION;
|
||||
}
|
||||
if (PlatformTypes.PLAYSTATION_STAGING === a0) {
|
||||
return GameConsoleTypes.PLAYSTATION;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
exports.coerceConsoleTypeToPlatformType = function(a0, a1) {
|
||||
if (GameConsoleTypes.XBOX === a0) {
|
||||
return PlatformTypes.XBOX;
|
||||
}
|
||||
if (GameConsoleTypes.PLAYSTATION === a0) {
|
||||
return a1.some(_fun83098) ? PlatformTypes.PLAYSTATION : a1.some(_fun83097) ? PlatformTypes.PLAYSTATION_STAGING : PlatformTypes.PLAYSTATION;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
}
|
||||
|
||||
function coerceConsoleTypeToPlatformType(a0, a1) { // fn#83096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11024:474, offset: 0x01f0d20f, size: 121 bytes, params: 3, frame: 13
|
||||
const XBOX = GameConsoleTypes.XBOX;
|
||||
if (XBOX === a0) {
|
||||
return PlatformTypes.XBOX;
|
||||
}
|
||||
const PLAYSTATION = GameConsoleTypes.PLAYSTATION;
|
||||
if (PLAYSTATION === a0) {
|
||||
return a1.some(_fun83098) ? PlatformTypes.PLAYSTATION : a1.some(_fun83097) ? PlatformTypes.PLAYSTATION_STAGING : PlatformTypes.PLAYSTATION;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun83097({type, twoWayLink}) { // fn#83097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11024:589, offset: 0x01f0d288, size: 39 bytes, params: 2, frame: 3
|
||||
const value = environment.__proto__;
|
||||
const PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
|
||||
return type === PLAYSTATION_STAGING && twoWayLink;
|
||||
}
|
||||
|
||||
function _fun83098({type, twoWayLink}) { // fn#83098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11024:660, offset: 0x01f0d2af, size: 39 bytes, params: 2, frame: 3
|
||||
const value = environment.__proto__;
|
||||
const PLAYSTATION = PlatformTypes.PLAYSTATION;
|
||||
return type === PLAYSTATION && twoWayLink;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/* Metro module 15717; source: modules/game_console/getErrorMessageForCommandResult.tsx; dependencies: [9340, 1244, 1948, 2] */
|
||||
function _fun120662(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15925:6, offset: 0x02532501, size: 124 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(9340) /* metro dependency 9340: GameConsoleConstants */).GameConsoleCommandResultErrorCodes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/getErrorMessageForCommandResult.tsx');
|
||||
exports.default = getErrorMessageForCommandResult;
|
||||
}
|
||||
|
||||
function getErrorMessageForCommandResult(a0, a1, a2) { // fn#120663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15925:241, offset: 0x0253257d, size: 1091 bytes, params: 4, frame: 25
|
||||
var r2;
|
||||
var r1;
|
||||
var r0;
|
||||
var value;
|
||||
var code;
|
||||
var platform;
|
||||
var name;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var property;
|
||||
var format;
|
||||
if (a1 === 'failed') {
|
||||
code = a2.code;
|
||||
platform = a0.platform;
|
||||
name = a0.name;
|
||||
if (GameConsoleCommandResultErrorCodes.CONSOLE_DEVICE_COMMUNICATION_RESTRICTED === code) {
|
||||
object2 = {};
|
||||
object2.title = intl.string(t['GSZ+HI']);
|
||||
object2.body = intl.formatToPlainString(t['cYX/3E'], {deviceType: platform});
|
||||
r1 = object2;
|
||||
} else if (GameConsoleCommandResultErrorCodes.CONSOLE_DEVICE_INVALID_POWER_MODE === code) {
|
||||
object2 = {};
|
||||
object2.title = intl.formatToPlainString(t.akd6Sx, {deviceType: platform});
|
||||
object2.body = intl.formatToPlainString(t.RyOvpJ, {deviceName: name});
|
||||
r1 = object2;
|
||||
} else if (GameConsoleCommandResultErrorCodes.CONSOLE_DEVICE_UNVAILABLE_FROM_OTHER_USERS === code) {
|
||||
object2 = {};
|
||||
object2.title = intl.formatToPlainString(t.M6Vzat, {deviceType: platform});
|
||||
object2.body = intl.formatToPlainString(t.InKtnC, {deviceName: name});
|
||||
r1 = object2;
|
||||
} else {
|
||||
r1 = GameConsoleCommandResultErrorCodes.CONSOLE_DEVICE_ACCOUNT_LINK_ERROR === code ? {title: intl.string(t.QL1y93),
|
||||
|
||||
|
||||
body: intl.formatToPlainString(t.D18eZu, {deviceType: platform}),
|
||||
isAccountLinkError: true} : {title: intl.string(t.QL1y93), body: intl.formatToPlainString(t['6ZyNH/'],
|
||||
{deviceName: name})};
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
value = null;
|
||||
if (a1 !== 'n/a') {
|
||||
r0 = value;
|
||||
} else {
|
||||
if (a2.code !== GameConsoleCommandResultErrorCodes.CONSOLE_DEVICE_PASSCODE_UNLOCK_REQUIRED) {
|
||||
r2 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.title = intl.formatToPlainString(t.KchfhO, {deviceType: a0.platform});
|
||||
object2.body = intl.formatToPlainString(t['21ndz7'], {deviceName: a0.name});
|
||||
r2 = object2;
|
||||
}
|
||||
r0 = r2;
|
||||
}
|
||||
}
|
||||
if (r0 != null) {
|
||||
format = intl.format;
|
||||
property = t['1Bi9Cf'];
|
||||
object2 = {};
|
||||
object2.supportURL = (importDefault(1948) /* metro dependency 1948: HelpdeskUtils */).getSubmitRequestURL();
|
||||
object2.errorCode = a2.code;
|
||||
r0.errorCodeMessage = Reflect.apply(format, intl, [property, object2]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Metro module 9434; source: modules/game_console/getXboxURIForChannel.tsx; dependencies: [1867, 4259, 3793, 1878, 9340, 661, 4805, 1244, 507, 2] */
|
||||
function _fun73430(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9620:6, offset: 0x01d6c4cd, size: 226 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(9340) /* metro dependency 9340: GameConsoleConstants */;
|
||||
const env0_6 = value.XBOX_HANDOFF_SEARCH_PARAMS;
|
||||
const env0_7 = value.XBOX_URL_BASE;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = value.Endpoints;
|
||||
const env0_9 = value.ZERO_STRING_GUILD_ID;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/getXboxURIForChannel.tsx');
|
||||
exports.default = getXboxURIForChannel;
|
||||
}
|
||||
|
||||
function getXboxURIForChannel(a0, {nonce, forQRCode}) { // fn#73431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9620:333, offset: 0x01d6c5af, size: 371 bytes, params: 3, frame: 24
|
||||
var r6;
|
||||
var r0;
|
||||
var intl;
|
||||
let value = a0.getGuildId();
|
||||
const guild = GuildStore.getGuild(value);
|
||||
const object2 = {};
|
||||
object2.guildId = value ?? ZERO_STRING_GUILD_ID;
|
||||
object2.channelId = a0.id;
|
||||
value = undefined;
|
||||
object2.channelName = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(a0, UserStore,
|
||||
RelationshipStore);
|
||||
const name = guild == null ? value : guild.name;
|
||||
if (name != null) {
|
||||
r6 = name;
|
||||
} else {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r6 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.LJpTRF);
|
||||
}
|
||||
object2.guildName = r6;
|
||||
object2.muted = MediaEngineStore.isSelfMute();
|
||||
object2.deafened = MediaEngineStore.isSelfDeaf();
|
||||
object2.nonce = nonce;
|
||||
const value5 = XBOX_HANDOFF_SEARCH_PARAMS(object2);
|
||||
if (forQRCode) {
|
||||
value = require(507) /* metro dependency 507: HTTPUtils */;
|
||||
value = value.getAPIBaseURL();
|
||||
value = '' + value + Endpoints.XBOX_HANDOFF + '?' + value5.toString();
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value5.toString();
|
||||
value = '' + XBOX_URL_BASE + '?' + value;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 6861; source: modules/game_console/hooks/useIsRemote.tsx; dependencies: [4295, 566, 2] */
|
||||
function _fun54146(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7039:6, offset: 0x0135dd0c, size: 112 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/hooks/useIsRemote.tsx');
|
||||
exports.default = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([GameConsoleStore], _fun54148);
|
||||
};
|
||||
}
|
||||
|
||||
function useIsRemote() { // fn#54147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7039:192, offset: 0x0135dd7c, size: 57 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GameConsoleStore], _fun54148);
|
||||
}
|
||||
|
||||
function _fun54148() { // fn#54148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7039:254, offset: 0x0135ddb5, size: 46 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return GameConsoleStore.getRemoteSessionId() != null || GameConsoleStore.getAwaitingRemoteSessionInfo() != null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 9325; source: modules/game_console/hooks/useVoiceStateForRemoteSession.tsx; dependencies: [1226, 4297, 4295, 566, 2] */
|
||||
function _fun72826(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9511:6, offset: 0x01d550d2, size: 146 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/hooks/useVoiceStateForRemoteSession.tsx');
|
||||
exports.default = function() {
|
||||
return require(dependencyMap[3]).useStateFromStores([AuthenticationStore, VoiceStateStore, GameConsoleStore],
|
||||
_fun72828, []);
|
||||
};
|
||||
}
|
||||
|
||||
function useVoiceStateForRemoteSession() { // fn#72827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9511:230, offset: 0x01d55164, size: 80 bytes, params: 1, frame: 15
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore, VoiceStateStore,
|
||||
GameConsoleStore], _fun72828, []);
|
||||
}
|
||||
|
||||
function _fun72828() { // fn#72828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9511:314, offset: 0x01d551b4, size: 63 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return VoiceStateStore.getVoiceStateForSession(AuthenticationStore.getId(),
|
||||
GameConsoleStore.getRemoteSessionId()) ?? undefined;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,231 @@
|
||||
/* Metro module 9429; source: modules/game_console/native/GameConsoleActionCreators.tsx; dependencies: [5, 9422, 4647, 1244, 2] */
|
||||
function _fun73398(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9615:6, offset: 0x01d6b3b2, size: 129 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/GameConsoleActionCreators.tsx');
|
||||
exports.transferToPlaystationWithAlert = function() {
|
||||
return _transferToPlaystationWithAlert.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _transferToPlaystationWithAlert() { // fn#73399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9615:108, offset: 0x01d6b433, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun73401).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun73401(a0, a1, a2) { // fn#73401, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9615:193, offset: 0x01d6b470, size: 250 bytes, params: 4, frame: 22
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var transferToPlayStation;
|
||||
var id;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var error;
|
||||
var binding3;
|
||||
var value7;
|
||||
var show;
|
||||
var object2;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var QL1y93;
|
||||
var formatToPlainString;
|
||||
var name;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value7 = binding(binding3[2]);
|
||||
show = value7.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[3]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[3]).t;
|
||||
QL1y93 = t.QL1y93;
|
||||
object2.title = Reflect.apply(string, intl, [QL1y93]);
|
||||
intl = binding(binding3[3]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding3[3]).t;
|
||||
property = t['6ZyNH/'];
|
||||
name = a1.name;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
|
||||
Reflect.apply(show, value7, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value7 = binding(binding3[2]);
|
||||
show = value7.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[3]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[3]).t;
|
||||
QL1y93 = t.QL1y93;
|
||||
object2.title = Reflect.apply(string, intl, [QL1y93]);
|
||||
intl = binding(binding3[3]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding3[3]).t;
|
||||
property = t['6ZyNH/'];
|
||||
name = a1.name;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
|
||||
Reflect.apply(show, value7, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[1];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value7 = binding(binding3[2]);
|
||||
show = value7.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[3]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[3]).t;
|
||||
QL1y93 = t.QL1y93;
|
||||
object2.title = Reflect.apply(string, intl, [QL1y93]);
|
||||
intl = binding(binding3[3]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding3[3]).t;
|
||||
property = t['6ZyNH/'];
|
||||
name = a1.name;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
|
||||
Reflect.apply(show, value7, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value7 = binding(binding3[2]);
|
||||
show = value7.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[3]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[3]).t;
|
||||
QL1y93 = t.QL1y93;
|
||||
object2.title = Reflect.apply(string, intl, [QL1y93]);
|
||||
intl = binding(binding3[3]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding3[3]).t;
|
||||
property = t['6ZyNH/'];
|
||||
name = a1.name;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
|
||||
Reflect.apply(show, value7, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
transferToPlayStation = value3.transferToPlayStation;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value7 = binding(binding3[2]);
|
||||
show = value7.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[3]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[3]).t;
|
||||
QL1y93 = t.QL1y93;
|
||||
object2.title = Reflect.apply(string, intl, [QL1y93]);
|
||||
intl = binding(binding3[3]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding3[3]).t;
|
||||
property = t['6ZyNH/'];
|
||||
name = a1.name;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
|
||||
Reflect.apply(show, value7, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
id = a1.id;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value7 = binding(binding3[2]);
|
||||
show = value7.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[3]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[3]).t;
|
||||
QL1y93 = t.QL1y93;
|
||||
object2.title = Reflect.apply(string, intl, [QL1y93]);
|
||||
intl = binding(binding3[3]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding3[3]).t;
|
||||
property = t['6ZyNH/'];
|
||||
name = a1.name;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
|
||||
Reflect.apply(show, value7, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = Reflect.apply(transferToPlayStation, value3, [a0, id, a2]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value7 = binding(binding3[2]);
|
||||
show = value7.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[3]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[3]).t;
|
||||
QL1y93 = t.QL1y93;
|
||||
object2.title = Reflect.apply(string, intl, [QL1y93]);
|
||||
intl = binding(binding3[3]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding3[3]).t;
|
||||
property = t['6ZyNH/'];
|
||||
name = a1.name;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
|
||||
Reflect.apply(show, value7, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
yield value4;
|
||||
try {
|
||||
value5 = undefined;
|
||||
value6 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value7 = binding(binding3[2]);
|
||||
show = value7.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[3]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[3]).t;
|
||||
QL1y93 = t.QL1y93;
|
||||
object2.title = Reflect.apply(string, intl, [QL1y93]);
|
||||
intl = binding(binding3[3]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding3[3]).t;
|
||||
property = t['6ZyNH/'];
|
||||
name = a1.name;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
|
||||
Reflect.apply(show, value7, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
if (value6) {
|
||||
return value5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 9427; source: modules/game_console/native/GameConsoleAlert.tsx; dependencies: [31, 27, 4295, 33, 4501, 566, 4573, 2] */
|
||||
function _fun73392(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9613:6, offset: 0x01d6afde, size: 257 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({errorCodeText: {marginTop: 16},
|
||||
alertBody: {marginTop: 0}, container: {flex: 1}, body: {marginTop: 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/GameConsoleAlert.tsx');
|
||||
exports.SelfDismissibleAlertBody = SelfDismissibleAlertBody;
|
||||
}
|
||||
|
||||
function SelfDismissibleAlertBody({body, dismissCallback, errorCodeMessage}) { // fn#73393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9613:385, offset: 0x01d6b0df, size: 327 bytes, params: 2, frame: 25
|
||||
var r0;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items2;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
env0_2.useEffect(function() {
|
||||
if (remoteSessionId != null) {
|
||||
dismissCallback();
|
||||
}
|
||||
}, [Reflect.apply(useStateFromStores, fluxModule, [[GameConsoleStore], function() {
|
||||
return GameConsoleStore.getRemoteSessionId();
|
||||
}]), dismissCallback]);
|
||||
if (errorCodeMessage == null) {
|
||||
r0 = body;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
value = <Text maxFontSizeMultiplier={1} variant="text-md/normal" style={[styles.body,
|
||||
styles.alertBody]}>{body}</Text>;
|
||||
items2 = [value];
|
||||
body = styles.body;
|
||||
items2[1] = <Text maxFontSizeMultiplier={1} variant="text-md/normal" style={[body,
|
||||
styles.errorCodeText]}>{errorCodeMessage}</Text>;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/* Metro module 9426; source: modules/game_console/native/GameConsoleAlertUtils.tsx; dependencies: [31, 4259, 9340, 661, 33, 3968, 1365, 1244, 4496, 9427, 9354, 2] */
|
||||
function _fun73386(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:6, offset: 0x01d6abde, size: 227 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const env0_4 = (require(9340) /* metro dependency 9340: GameConsoleConstants */).GAME_CONSOLE_ALERT_MODAL_LOCATION;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = constantsModule.InputModes;
|
||||
const env0_6 = constantsModule.PlatformTypes;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {maybeShowPTTAlert: maybeShowPTTAlert, showSelfDismissableAlert: showSelfDismissableAlert};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/GameConsoleAlertUtils.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function maybeShowPTTAlert(a0) { // fn#73387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:218, offset: 0x01d6acc1, size: 375 bytes, params: 2, frame: 19
|
||||
const mode = MediaEngineStore.getMode();
|
||||
const PUSH_TO_TALK = InputModes.PUSH_TO_TALK;
|
||||
if (mode !== PUSH_TO_TALK) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_isDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_isDismissibleContentDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const CONSOLE_PTT_DISABLE_ALERT = DismissibleContent.CONSOLE_PTT_DISABLE_ALERT;
|
||||
if (Reflect.apply(UNSAFE_isDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
|
||||
[CONSOLE_PTT_DISABLE_ALERT])) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
const XBOX = PlatformTypes.XBOX;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const PLAYSTATION = PlatformTypes.PLAYSTATION;
|
||||
const PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
|
||||
return ({[XBOX]: Reflect.apply(string, intl, [t.bVZ7vy]), [PLAYSTATION]: intl.string(t['6iqUsf']),
|
||||
[PLAYSTATION_STAGING]: intl.string(t['6iqUsf'])})[a0] == null ? global.Promise.resolve() : new global.Promise(_fun73388);
|
||||
}
|
||||
|
||||
function showSelfDismissableAlert({title, body, errorCodeMessage, reconnectPlatformType}) { // fn#73390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:820, offset: 0x01d6af02, size: 154 bytes, params: 2, frame: 22
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {title: title};
|
||||
const SelfDismissibleAlertBody = (require(9427) /* metro dependency 9427: GameConsoleAlert */).SelfDismissibleAlertBody;
|
||||
object2.body = <SelfDismissibleAlertBody body={body} errorCodeMessage={errorCodeMessage} dismissCallback={defaultImport.close} />;
|
||||
object2.onConfirm = onConfirm;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function _fun73388(a0) { // fn#73388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:622, offset: 0x01d6ae38, size: 129 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {};
|
||||
object2.title = env0_0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bL21zs);
|
||||
object2.onConfirm = onConfirm_73389;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function showSelfDismissableAlertOnConfirm() { // fn#73391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:1037, owner: showSelfDismissableAlert.onConfirm, offset: 0x01d6af9c, size: 66 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
if (reconnectPlatformType != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(9354) /* metro dependency 9354: authorizeConnectionNative */)({platformType: reconnectPlatformType,
|
||||
|
||||
location: GAME_CONSOLE_ALERT_MODAL_LOCATION});
|
||||
}
|
||||
}
|
||||
|
||||
function onConfirm_73389() { // fn#73389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:701, offset: 0x01d6aeb9, size: 73 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const CONSOLE_PTT_DISABLE_ALERT = DismissibleContent.CONSOLE_PTT_DISABLE_ALERT;
|
||||
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [CONSOLE_PTT_DISABLE_ALERT]);
|
||||
env0_0();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,230 @@
|
||||
/* Metro module 9430; source: modules/game_console/native/GameConsoleDeviceListActionSheet.tsx; dependencies: [5, 57, 31, 27, 4295, 661, 33, 4501, 697, 6618, 4578, 1244, 9431, 4573, 9432, 566, 9422, 44, 9429, 4080, 1239, 1305, 8469, 6275, 6758, 6277, 2] */
|
||||
function _fun73403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:6, offset: 0x01d6b56a, size: 632 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.Pressable;
|
||||
const env0_7 = value.View;
|
||||
const env0_8 = value.Image;
|
||||
const env0_9 = value.ActivityIndicator;
|
||||
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).ComponentActions;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
const env0_14 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'padding': 16, 'justifyContent': 'center', 'paddingBottom': 90}};
|
||||
object2.loading = {minHeight: 56};
|
||||
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object2.footerContainer = {'padding': 16, 'backgroundColor': null, 'paddingBottom': 16,
|
||||
backgroundColor: BACKGROUND_SURFACE_HIGH};
|
||||
const object3 = {};
|
||||
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object3.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object3.padding = 16;
|
||||
object2.radioItem = object3;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.deviceIcon = {'marginRight': 16, 'width': 32, 'height': 32, tintColor: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
object2.deviceOption = {'flexDirection': 'row', 'alignItems': 'center', 'marginRight': 24};
|
||||
object2.deviceText = {flexShrink: 1};
|
||||
object2.emptyContainer = {'alignItems': 'center', 'justifyContent': 'center'};
|
||||
object2.emptyArt = {marginBottom: 16};
|
||||
object2.emptyHeader = {'marginBottom': 8, 'textAlign': 'center'};
|
||||
object2.emptyBody = {textAlign: 'center'};
|
||||
object2.infoBox = {marginTop: 8};
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/GameConsoleDeviceListActionSheet.tsx');
|
||||
exports.default = GameConsoleListActionSheet;
|
||||
}
|
||||
|
||||
function TransferFooter({onPress, transferring}) { // fn#73404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:975, offset: 0x01d6b7e2, size: 204 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const r10 = transferring || onPress == null;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const FYi3ry = (require(1244) /* metro dependency 1244: indexNative */).t.FYi3ry;
|
||||
return (
|
||||
<SafeAreaPaddingView bottom style={styles.footerContainer}>
|
||||
<Button
|
||||
loading={transferring}
|
||||
disabled={r10}
|
||||
onPress={onPress}
|
||||
text={Reflect.apply(string, intl, [FYi3ry])}
|
||||
grow
|
||||
/>
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function DeviceOption(a0) { // fn#73405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:1234, offset: 0x01d6b8ae, size: 182 bytes, params: 2, frame: 22
|
||||
const name = a0.name;
|
||||
a0.platform;
|
||||
const styles = useStyles();
|
||||
const image = <Image style={styles.deviceIcon} source={importDefault(9431) /* metro dependency 9431 */} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.deviceOption}>
|
||||
{image}
|
||||
<Text
|
||||
style={styles.deviceText}
|
||||
color="mobile-text-heading-primary"
|
||||
variant="text-md/bold"
|
||||
>
|
||||
{name}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function EmptyState() { // fn#73406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:1483, offset: 0x01d6b964, size: 321 bytes, params: 1, frame: 26
|
||||
const styles = useStyles();
|
||||
const items2 = [<Image source={importDefault(9432) /* metro dependency 9432 */} style={styles.emptyArt} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const OkJf1e = (require(1244) /* metro dependency 1244: indexNative */).t.OkJf1e;
|
||||
items2[1] = <Text style={styles.emptyHeader} variant="heading-md/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
intl, [OkJf1e])}</Text>;
|
||||
items2[2] = <Text style={styles.emptyBody} variant="text-md/normal" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['of/l5Z'])}</Text>;
|
||||
return (
|
||||
<View style={styles.emptyContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GameConsoleListActionSheet({platform, channel}) { // fn#73407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:2002, offset: 0x01d6baa5, size: 974 bytes, params: 2, frame: 31
|
||||
var object2;
|
||||
var r7;
|
||||
var jsxRuntimeEnv0_14Binding;
|
||||
var items2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const env0_4 = undefined;
|
||||
const styles = useStyles();
|
||||
const devicesForPlatform = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameConsoleStore],
|
||||
function() {
|
||||
return GameConsoleStore.getDevicesForPlatform(platform);
|
||||
});
|
||||
const fetchingDevices = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameConsoleStore],
|
||||
function() {
|
||||
return GameConsoleStore.getFetchingDevices(platform);
|
||||
});
|
||||
const lastSelectedDeviceByPlatform = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameConsoleStore],
|
||||
function() {
|
||||
return GameConsoleStore.getLastSelectedDeviceByPlatform(platform);
|
||||
});
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_4;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
var env0_5 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value5[0];
|
||||
const env0_6 = value5[1];
|
||||
binding.useEffect(_fun73414, [devicesForPlatform, lastSelectedDeviceByPlatform]);
|
||||
const value6 = binding.useMemo(_fun73415, [devicesForPlatform]);
|
||||
if (value6.length > 0) {
|
||||
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
items2 = [((RadioGroup) => <RadioGroup style={styles.radioItem} options={value6} value={property} withDividers={false} withSpacing disabled={property2} onChange={onChange_73417} />)((require(1305) /* metro dependency 1305: native */).RadioGroup)];
|
||||
items2[1] = ((Component) => <Component style={styles.infoBox}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dI4HFq)}</Component>)(importDefault(8469) /* metro dependency 8469: InfoBox */);
|
||||
r7 = <>{items2}</>;
|
||||
} else {
|
||||
r7 = <EmptyState />;
|
||||
}
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
object2 = {footer: <TransferFooter transferring={property2} onPress={property != null ? function() {
|
||||
return _handleTransferVoice.apply(this, arguments);
|
||||
} : undefined} />};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const bottomSheetTitleHeaderProps = {title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.aUuz7W)};
|
||||
const pressableBindingProps = {disabled: fetchingDevices || property2, onPress: onPress_73419};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
bottomSheetTitleHeaderProps.trailing = <Pressable {...pressableBindingProps}><Text variant="text-md/semibold" color="text-brand">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hb12iG)}</Text></Pressable>;
|
||||
object2.header = <BottomSheetTitleHeader {...bottomSheetTitleHeaderProps} />;
|
||||
object2.scrollable = true;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
r7 = fetchingDevices ? <ActivityIndicator style={styles.loading} /> : r7;
|
||||
return (
|
||||
<BottomSheet {...object2}>
|
||||
<BottomSheetScrollView contentContainerStyle={styles.container}>
|
||||
{r7}
|
||||
</BottomSheetScrollView>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _handleTransferVoice() { // fn#73408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:2365, owner: GameConsoleListActionSheet._handleTransferVoice, offset: 0x01d6be73, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return env1_3(_fun73410).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun73414() { // fn#73414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:2694, offset: 0x01d6bfdd, size: 90 bytes, params: 1, frame: 13
|
||||
const Object = global.Object;
|
||||
const value2 = Object.values(devicesForPlatform);
|
||||
if (value2.length === 1) {
|
||||
env0_5(value2[0].id);
|
||||
} else if (lastSelectedDeviceByPlatform != null) {
|
||||
env0_5(lastSelectedDeviceByPlatform);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun73415() { // fn#73415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:2786, offset: 0x01d6c037, size: 62 bytes, params: 1, frame: 13
|
||||
const Object = global.Object;
|
||||
return Object.values(devicesForPlatform ?? []).map(_fun73416);
|
||||
}
|
||||
|
||||
function GameConsoleListActionSheetOnChange({value}) { // fn#73417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:3050, owner: GameConsoleListActionSheet.onChange, offset: 0x01d6c0b2, size: 63 bytes, params: 2, frame: 15
|
||||
env0_5(value);
|
||||
const gameConsoleActionCreatorsModule = require(9422) /* metro dependency 9422: GameConsoleActionCreators */;
|
||||
gameConsoleActionCreatorsModule.persistSelectedDeviceId(platform, value);
|
||||
}
|
||||
|
||||
function GameConsoleListActionSheetOnPress() { // fn#73419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:3544, owner: GameConsoleListActionSheet.onPress, offset: 0x01d6c0f1, size: 45 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(9422) /* metro dependency 9422: GameConsoleActionCreators */;
|
||||
return value.fetchDevices(platform);
|
||||
}
|
||||
|
||||
function* _fun73410() { // fn#73410, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:2428, offset: 0x01d6beb3, size: 211 bytes, params: 1, frame: 18
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_1;
|
||||
var binding2 = env3_2;
|
||||
binding(binding2[17])(env2_4 != null, 'selectedDeviceId cannot be null');
|
||||
Pressable(true);
|
||||
var property = dependencyMap[env2_4];
|
||||
var value5 = env3_0(binding2[18]);
|
||||
yield value5.transferToPlaystationWithAlert(require, property, importDefault);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_1;
|
||||
var binding3 = env3_2;
|
||||
binding(binding3[19]).hideActionSheet();
|
||||
var ComponentDispatch = env3_0(binding3[20]).ComponentDispatch;
|
||||
var dispatch = ComponentDispatch.dispatch;
|
||||
var TOGGLE_CALL_CONTROL_DRAWER = env3_11.TOGGLE_CALL_CONTROL_DRAWER;
|
||||
Reflect.apply(dispatch, ComponentDispatch, [TOGGLE_CALL_CONTROL_DRAWER]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun73416({id, name, platform}) { // fn#73416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9616:2823, offset: 0x01d6c075, size: 61 bytes, params: 2, frame: 15
|
||||
const object2 = {value: id};
|
||||
object2.name = <DeviceOption name={name} platform={platform} />;
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 9435; source: modules/game_console/native/XboxInstallAlert.tsx; dependencies: [31, 9340, 33, 4501, 697, 4596, 1244, 1305, 9418, 477, 3853, 2] */
|
||||
function _fun73432(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9621:6, offset: 0x01d6c722, size: 246 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(9340) /* metro dependency 9340: GameConsoleConstants */;
|
||||
const env0_3 = value.XBOX_ANDROID_APP_LINK;
|
||||
const env0_4 = value.XBOX_IOS_APP_LINK;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{externalLinkIcon: {'tintColor': null, 'width': 20, 'height': 20,
|
||||
'marginLeft': 8, tintColor: WHITE}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/XboxInstallAlert.tsx');
|
||||
exports.default = XboxInstallAlert;
|
||||
}
|
||||
|
||||
function XboxInstallAlert(a0) { // fn#73433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9621:377, offset: 0x01d6c818, size: 333 bytes, params: 2, frame: 20
|
||||
const env0_0 = useStyles();
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const defaultImportProps = {...a0};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
defaultImportProps['title'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['12Kx2v']);
|
||||
defaultImportProps['body'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.msZW3j);
|
||||
defaultImportProps['confirmText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['n+VrqG']);
|
||||
defaultImportProps['cancelText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kYaBOg);
|
||||
defaultImportProps['fillCancelText'] = true;
|
||||
defaultImportProps['renderConfirmRightIcon'] = XboxInstallAlertRenderConfirmRightIcon;
|
||||
defaultImportProps['onConfirm'] = function() {
|
||||
var isAndroid = require(dependencyMap[9]).isAndroid();
|
||||
var defaultImport = importDefault(dependencyMap[10]);
|
||||
var openURL = defaultImport.openURL;
|
||||
if (isAndroid) {
|
||||
Reflect.apply(openURL, defaultImport, [XBOX_ANDROID_APP_LINK]);
|
||||
} else {
|
||||
Reflect.apply(openURL, defaultImport, [XBOX_IOS_APP_LINK]);
|
||||
}
|
||||
};
|
||||
return <Alert {...defaultImportProps} />;
|
||||
}
|
||||
|
||||
function XboxInstallAlertRenderConfirmRightIcon() { // fn#73434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9621:672, owner: XboxInstallAlert.renderConfirmRightIcon, offset: 0x01d6c965, size: 81 bytes, params: 1, frame: 16
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
return <Icon source={importDefault(9418) /* metro dependency 9418 */} style={styles.externalLinkIcon} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 9421; source: modules/game_console/native/beginConsoleTransfer.tsx; dependencies: [5, 661, 9422, 9429, 4080, 9430, 1962, 480, 9433, 2] */
|
||||
function _fun73345(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9607:6, offset: 0x01d69aec, size: 204 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const PlatformTypes = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
const Set = global.Set;
|
||||
const PLAYSTATION = PlatformTypes.PLAYSTATION;
|
||||
const PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
|
||||
const set = new Set([PLAYSTATION, PLAYSTATION_STAGING]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/beginConsoleTransfer.tsx');
|
||||
exports.beginConsoleTransfer = function() {
|
||||
return _beginConsoleTransfer.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _beginConsoleTransfer() { // fn#73346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9607:179, offset: 0x01d69bb8, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun73348).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun73348(a0, a1) { // fn#73348, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9607:244, offset: 0x01d69bf5, size: 325 bytes, params: 3, frame: 23
|
||||
var value3;
|
||||
var value4;
|
||||
var property;
|
||||
var binding2;
|
||||
var value7;
|
||||
var openLazy;
|
||||
var value8;
|
||||
var object2;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_4;
|
||||
if (binding.has(a1)) {
|
||||
binding = env2_0;
|
||||
value3 = binding(env2_2[2]);
|
||||
yield value3.fetchDevices(a1);
|
||||
value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
if (value4.length !== 1) {
|
||||
binding = env2_1;
|
||||
binding2 = env2_2;
|
||||
value7 = binding(binding2[4]);
|
||||
openLazy = value7.openLazy;
|
||||
binding = env2_0;
|
||||
value = binding(binding2[6]);
|
||||
value = value(binding2[5], binding2.paths);
|
||||
value8 = 'GameConsoleDeviceListActionSheet' + a0.id;
|
||||
object2 = {channel: a0, platform: a1};
|
||||
object2.impressionName = binding(binding2[7]).ImpressionNames.GAME_CONSOLE_DEVICE_LIST;
|
||||
return Reflect.apply(openLazy, value7, [value, value8, object2]);
|
||||
}
|
||||
property = value4[0];
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[3]);
|
||||
yield value.transferToPlaystationWithAlert(a1, property, a0);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
} else {
|
||||
env2_1(env2_2[8])(a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Metro module 15520; source: modules/game_console/native/getConsoleColor.tsx; dependencies: [661, 697, 2] */
|
||||
function _fun118845(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15717:6, offset: 0x024f11ae, size: 210 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const PlatformTypes = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
object2 = {};
|
||||
const XBOX = PlatformTypes.XBOX;
|
||||
const PLATFORM_XBOX = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_XBOX;
|
||||
object2[XBOX] = PLATFORM_XBOX;
|
||||
const PLAYSTATION = PlatformTypes.PLAYSTATION;
|
||||
let PLATFORM_PLAYSTATION = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_PLAYSTATION;
|
||||
object2[PLAYSTATION] = PLATFORM_PLAYSTATION;
|
||||
const PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
|
||||
PLATFORM_PLAYSTATION = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_PLAYSTATION;
|
||||
object2[PLAYSTATION_STAGING] = PLATFORM_PLAYSTATION;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/getConsoleColor.tsx');
|
||||
exports.default = getConsoleColor;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 15519; source: modules/game_console/native/getConsoleConnectingText.tsx; dependencies: [661, 1244, 2] */
|
||||
function _fun118843(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15716:6, offset: 0x024f0fba, size: 117 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/getConsoleConnectingText.tsx');
|
||||
exports.getConsoleConnectingText = getConsoleConnectingText;
|
||||
}
|
||||
|
||||
function getConsoleConnectingText(a0, a1, a2) { // fn#118844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15716:237, offset: 0x024f102f, size: 383 bytes, params: 4, frame: 20
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value = undefined;
|
||||
const r5 = (a1 == null ? value : a1.type) ?? (a0 == null ? value : a0.clientInfo.os);
|
||||
const value2 = a1 != null;
|
||||
const XBOX = PlatformTypes.XBOX;
|
||||
return r5 === XBOX ? a2 ? intl.format(t['ynEs/Y'],
|
||||
{}) : value2 ? intl.string(t.UjA4HX) : 'Xbox' : r5 === PlatformTypes.PLAYSTATION ? a2 ? intl.format(t.TZ17Bg,
|
||||
{}) : value2 ? intl.string(t.QCw1oW) : 'PS5' : r5 !== PlatformTypes.PLAYSTATION_STAGING ? value : a2 ? intl.format(t.TZ17Bg,
|
||||
{}) : value2 ? intl.string(t.QCw1oW) : 'PS5';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 9436; source: modules/game_console/native/getConsoleIcon.tsx; dependencies: [661, 4299, 9416, 9437, 2] */
|
||||
function _fun73436(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9622:6, offset: 0x01d6ca0c, size: 223 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const PlatformTypes = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
const env0_2 = (require(4299) /* metro dependency 4299: CallConstants */).VoicePlatforms;
|
||||
object2 = {};
|
||||
const XBOX = PlatformTypes.XBOX;
|
||||
object2[XBOX] = importDefault(9416) /* metro dependency 9416 */;
|
||||
const PLAYSTATION = PlatformTypes.PLAYSTATION;
|
||||
object2[PLAYSTATION] = importDefault(9437) /* metro dependency 9437 */;
|
||||
const PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
|
||||
object2[PLAYSTATION_STAGING] = importDefault(9437) /* metro dependency 9437 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/getConsoleIcon.tsx');
|
||||
exports.default = getConsoleIcon;
|
||||
exports.getConsoleIconForVoicePlatform = getConsoleIconForVoicePlatform;
|
||||
}
|
||||
|
||||
function getConsoleIconForVoicePlatform(a0) { // fn#73438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9622:385, offset: 0x01d6caeb, size: 84 bytes, params: 2, frame: 13
|
||||
const XBOX = VoicePlatforms.XBOX;
|
||||
return a0 === XBOX ? importDefault(9416) /* metro dependency 9416 */ : a0 !== VoicePlatforms.PLAYSTATION ? null : importDefault(9437) /* metro dependency 9437 */;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 9433; source: modules/game_console/native/transferToXbox.tsx; dependencies: [5, 31, 27, 661, 33, 9425, 9422, 9434, 4496, 9435, 1962, 9428, 8913, 2] */
|
||||
function _fun73422(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:6, offset: 0x01d6c1aa, size: 213 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).Linking;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/transferToXbox.tsx');
|
||||
exports.default = function() {
|
||||
return _transferToXbox.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _transferToXbox() { // fn#73423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:172, offset: 0x01d6c27f, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun73425).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun73425(a0) { // fn#73425, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:225, offset: 0x01d6c2bc, size: 406 bytes, params: 2, frame: 27
|
||||
var environment;
|
||||
var value16;
|
||||
var id;
|
||||
var value17;
|
||||
var waitForSession;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_1;
|
||||
const value3 = binding(env2_3[5]);
|
||||
const maybeShowPTTAlert = value3.maybeShowPTTAlert;
|
||||
let XBOX = env2_6.XBOX;
|
||||
yield Reflect.apply(maybeShowPTTAlert, value3, [XBOX]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const value6 = env2_2(env2_3[6]);
|
||||
yield value6.disconnectRemote();
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const value9 = env2_2(env2_3[6]);
|
||||
const getConnectNonce = value9.getConnectNonce;
|
||||
yield Reflect.apply(getConnectNonce, value9, []);
|
||||
const value10 = undefined;
|
||||
if (false) {
|
||||
return value10;
|
||||
}
|
||||
const value13 = env2_1(env2_3[7])(a0, {nonce: value10, forQRCode: false});
|
||||
binding = env2_5;
|
||||
yield binding.canOpenURL(value13);
|
||||
const value14 = undefined;
|
||||
if (false) {
|
||||
return value14;
|
||||
}
|
||||
binding = env2_1;
|
||||
const binding2 = env2_3;
|
||||
if (value14) {
|
||||
value16 = binding(binding2[11]);
|
||||
id = a0.id;
|
||||
XBOX = env2_6.XBOX;
|
||||
value16(id, XBOX);
|
||||
binding = env2_2;
|
||||
value17 = binding(binding2[6]);
|
||||
waitForSession = value17.waitForSession;
|
||||
XBOX = env2_6.XBOX;
|
||||
id = a0.id;
|
||||
Reflect.apply(waitForSession, value17, [XBOX, id, value10]);
|
||||
binding(binding2[12]).stopOwnStream(false);
|
||||
binding = env2_5;
|
||||
binding.openURL(value13);
|
||||
return undefined;
|
||||
}
|
||||
value = binding(binding2[8]);
|
||||
return value.openLazy({importer: importer_73426});
|
||||
}
|
||||
|
||||
function importer_73426() { // fn#73426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:447, offset: 0x01d6c452, size: 64 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_0;
|
||||
const binding2 = env3_3;
|
||||
value = binding(binding2[10]);
|
||||
value = value(binding2[9], binding2.paths);
|
||||
return value.then(function({default: env0_0}) {
|
||||
return _fun73428;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun73427({default: env0_0}) { // fn#73427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:480, offset: 0x01d6c492, size: 23 bytes, params: 2, frame: 2
|
||||
return _fun73428;
|
||||
}
|
||||
|
||||
function _fun73428(a0) { // fn#73428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:495, offset: 0x01d6c4a9, size: 36 bytes, params: 2, frame: 13
|
||||
const binding = env5_7;
|
||||
const binding2 = env0_0;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, binding);
|
||||
return binding(binding2, object2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 15518; source: modules/game_console/native/useShouldDisplayCancelConsoleTransfer.tsx; dependencies: [57, 31, 2] */
|
||||
function _fun118836(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15715:6, offset: 0x024f0e0e, size: 136 bytes, params: 8, frame: 17
|
||||
const shouldDisplayCancel = function(a0) {
|
||||
var r0;
|
||||
var value = a0 != null;
|
||||
if (value) {
|
||||
value = global.Date.now();
|
||||
value = value - a0.startedAt > 6000;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_1 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/useShouldDisplayCancelConsoleTransfer.tsx');
|
||||
exports.default = useShouldDisplayCancelConsoleTransfer;
|
||||
}
|
||||
|
||||
function useShouldDisplayCancelConsoleTransfer(a0) { // fn#118838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15715:304, offset: 0x024f0ec9, size: 93 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
const binding = env0_1;
|
||||
const value = env0_0(binding.useState(_fun118839), 2);
|
||||
const property = value[0];
|
||||
var env0_1 = value[1];
|
||||
binding.useEffect(_fun118840, [a0]);
|
||||
return property;
|
||||
}
|
||||
|
||||
function _fun118840() { // fn#118840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15715:444, offset: 0x024f0f26, size: 116 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const shouldDisplayCancelBinding = shouldDisplayCancel;
|
||||
const binding = env0_0Binding;
|
||||
const shouldDisplayCancel2 = shouldDisplayCancelBinding(binding);
|
||||
env0_1(shouldDisplayCancel2);
|
||||
if (binding == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (shouldDisplayCancel2) {
|
||||
return undefined;
|
||||
}
|
||||
const setTimeout = global.setTimeout;
|
||||
const Date = global.Date;
|
||||
var env0_0Binding = setTimeout(_fun118841, 6000 - (Date.now() - env0_0.startedAt));
|
||||
return _fun118842;
|
||||
}
|
||||
|
||||
function _fun118841() { // fn#118841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15715:517, offset: 0x024f0f9a, size: 32 bytes, params: 1, frame: 12
|
||||
return env1_1(shouldDisplayCancel(env1_0));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 9428; source: modules/game_console/trackVoiceCallTransfer.tsx; dependencies: [1379, 4294, 4296, 661, 683, 2] */
|
||||
function _fun73396(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9614:6, offset: 0x01d6b254, size: 168 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const sessionsStore = importDefault(4296) /* metro dependency 4296: SessionsStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/trackVoiceCallTransfer.tsx');
|
||||
exports.default = trackVoiceCallTransfer;
|
||||
}
|
||||
|
||||
function trackVoiceCallTransfer(a0, a1, a2) { // fn#73397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9614:242, offset: 0x01d6b2fc, size: 182 bytes, params: 4, frame: 21
|
||||
var r8;
|
||||
var sessionById;
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const VOICE_CALL_TRANSFER = AnalyticEvents.VOICE_CALL_TRANSFER;
|
||||
const object2 = {};
|
||||
if (a2 != null) {
|
||||
sessionById = SessionsStore.getSessionById(a2);
|
||||
r8 = sessionById == null ? value2 : sessionById.clientInfo.os;
|
||||
} else {
|
||||
r8 = 'discord_client';
|
||||
}
|
||||
object2.source_platform = r8;
|
||||
const channel = ChannelStore.getChannel(a0);
|
||||
object2.guild_id = channel == null ? value2 : channel.guild_id;
|
||||
object2.channel_id = a0;
|
||||
object2.rtc_connection_id = RTCConnectionStore.getRTCConnectionId();
|
||||
object2.target_platform = a1;
|
||||
Reflect.apply(track, defaultImport, [VOICE_CALL_TRANSFER, object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/* Metro module 15475; source: modules/game_console/useConsoleConnectedAccountForVoiceUpsell.tsx; dependencies: [5040, 6876, 4295, 9340, 661, 566, 15476, 2] */
|
||||
function _fun118451(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15672:6, offset: 0x024dbf3b, size: 194 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
|
||||
const selfPresenceStore = importDefault(6876) /* metro dependency 6876: SelfPresenceStore */;
|
||||
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
|
||||
const env0_6 = (require(9340) /* metro dependency 9340: GameConsoleConstants */).CONSOLE_VOICE_PLATFORMS;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/useConsoleConnectedAccountForVoiceUpsell.tsx');
|
||||
exports.default = useConsoleConnectedAccountForVoiceUpsell;
|
||||
}
|
||||
|
||||
function useConsoleConnectedAccountForVoiceUpsell() { // fn#118452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15672:293, offset: 0x024dbffd, size: 193 bytes, params: 1, frame: 20
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value2 = Reflect.apply(useStateFromStores, fluxModule, [[SelfPresenceStore], function() {
|
||||
return SelfPresenceStore.getActivities(true);
|
||||
}]).filter(_fun118454);
|
||||
const value3 = fluxModule.useStateFromStores([GameConsoleStore], _fun118455);
|
||||
const value = fluxModule.useStateFromStores([ConnectedAccountsStore], _fun118456);
|
||||
const length = value2.length;
|
||||
const value4 = null;
|
||||
return length > 0 && value4 != value ? value3 ? value4 : value : value4;
|
||||
}
|
||||
|
||||
function _fun118454({type, platform}) { // fn#118454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15672:417, offset: 0x024dc0d4, size: 59 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const PLAYING = ActivityTypes.PLAYING;
|
||||
return type === PLAYING && platform != null && CONSOLE_VOICE_PLATFORMS.has(platform);
|
||||
}
|
||||
|
||||
function _fun118455() { // fn#118455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15672:509, offset: 0x024dc10f, size: 46 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return GameConsoleStore.getAwaitingRemoteSessionInfo() != null || GameConsoleStore.getRemoteSessionId() != null;
|
||||
}
|
||||
|
||||
function _fun118456() { // fn#118456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15672:618, offset: 0x024dc13d, size: 46 bytes, params: 1, frame: 12
|
||||
return env0_0.map(function({platform}) {
|
||||
var r1;
|
||||
var value = null;
|
||||
if (value == platform) {
|
||||
return value;
|
||||
}
|
||||
var value3 = importDefault(dependencyMap[6])(platform);
|
||||
if (value == value3) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value = ConnectedAccountsStore.getAccount(value, value3);
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}).find(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 9324; source: modules/game_console/useGameConsoleAccounts.tsx; dependencies: [5040, 661, 566, 1360, 2] */
|
||||
function _fun72823(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9510:6, offset: 0x01d54f93, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/useGameConsoleAccounts.tsx');
|
||||
exports.default = function() {
|
||||
return require(dependencyMap[2]).useStateFromStoresArray([ConnectedAccountsStore], _fun72825);
|
||||
};
|
||||
}
|
||||
|
||||
function useGameConsoleAccounts() { // fn#72824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9510:221, offset: 0x01d5501b, size: 60 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ConnectedAccountsStore],
|
||||
function() {
|
||||
return [ConnectedAccountsStore.getAccount(null, PlatformTypes.XBOX), ConnectedAccountsStore.getAccount(null,
|
||||
PlatformTypes.PLAYSTATION), ConnectedAccountsStore.getAccount(null,
|
||||
PlatformTypes.PLAYSTATION_STAGING)].filter(require(dependencyMap[3]).isNotNullish);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user