This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,231 +1,235 @@
/* Metro module 9429; source: modules/game_console/native/GameConsoleActionCreators.tsx; dependencies: [5, 9422, 4647, 1244, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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 Module00005(_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 object;
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;
object = {};
binding = env2_0;
intl = binding(binding3[3]).intl;
string = intl.string;
t = binding(binding3[3]).t;
QL1y93 = t.QL1y93;
object.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;
object.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
Reflect.apply(show, value7, [object]);
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[2]);
show = value7.show;
object = {};
binding = env2_0;
intl = binding(binding3[3]).intl;
string = intl.string;
t = binding(binding3[3]).t;
QL1y93 = t.QL1y93;
object.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;
object.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
Reflect.apply(show, value7, [object]);
return undefined;
}
try {
property = binding2[1];
} catch (error) {
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[2]);
show = value7.show;
object = {};
binding = env2_0;
intl = binding(binding3[3]).intl;
string = intl.string;
t = binding(binding3[3]).t;
QL1y93 = t.QL1y93;
object.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;
object.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
Reflect.apply(show, value7, [object]);
return undefined;
}
try {
value3 = binding(property);
} catch (error) {
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[2]);
show = value7.show;
object = {};
binding = env2_0;
intl = binding(binding3[3]).intl;
string = intl.string;
t = binding(binding3[3]).t;
QL1y93 = t.QL1y93;
object.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;
object.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
Reflect.apply(show, value7, [object]);
return undefined;
}
try {
transferToPlayStation = value3.transferToPlayStation;
} catch (error) {
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[2]);
show = value7.show;
object = {};
binding = env2_0;
intl = binding(binding3[3]).intl;
string = intl.string;
t = binding(binding3[3]).t;
QL1y93 = t.QL1y93;
object.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;
object.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
Reflect.apply(show, value7, [object]);
return undefined;
}
try {
id = a1.id;
} catch (error) {
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[2]);
show = value7.show;
object = {};
binding = env2_0;
intl = binding(binding3[3]).intl;
string = intl.string;
t = binding(binding3[3]).t;
QL1y93 = t.QL1y93;
object.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;
object.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
Reflect.apply(show, value7, [object]);
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;
object = {};
binding = env2_0;
intl = binding(binding3[3]).intl;
string = intl.string;
t = binding(binding3[3]).t;
QL1y93 = t.QL1y93;
object.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;
object.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
Reflect.apply(show, value7, [object]);
return undefined;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[2]);
show = value7.show;
object = {};
binding = env2_0;
intl = binding(binding3[3]).intl;
string = intl.string;
t = binding(binding3[3]).t;
QL1y93 = t.QL1y93;
object.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;
object.body = Reflect.apply(formatToPlainString, intl, [property, {deviceName: name}]);
Reflect.apply(show, value7, [object]);
return undefined;
}
if (value6) {
return value5;
}
}
}
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;
}
}
}
global.__d(_fun73398, 9429, [5, 9422, 4647, 1244,
2]) /* metro module 9429, dependencies: [5, 9422, 4647, 1244, 2] */;
@@ -1,48 +1,70 @@
/* Metro module 9427; source: modules/game_console/native/GameConsoleAlert.tsx; dependencies: [31, 27, 4295, 33, 4501, 566, 4573, 2] */
import GameConsoleStore from '../GameConsoleStore.tsx'; /* Metro dependency 4295 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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},
const env0_7 = (CreateStylesModule).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');
(FileImportTrackerModule).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();
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 = (TextModule).Text;
var items2;
var value;
const styles = useStyles();
const useStateFromStores = FluxModule.useStateFromStores;
ReactModule.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;
}
}, [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;
}
return r0;
}
global.__d(_fun73392, 9427, [31, 27, 4295, 33, 4501, 566, 4573,
2]) /* metro module 9427, dependencies: [31, 27, 4295, 33, 4501, 566, 4573, 2] */;
@@ -1,84 +1,96 @@
/* Metro module 9426; source: modules/game_console/native/GameConsoleAlertUtils.tsx; dependencies: [31, 4259, 9340, 661, 33, 3968, 1365, 1244, 4496, 9427, 9354, 2] */
import MediaEngineStore from '../../../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */
import AlertActionCreators from '../../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as Dismissible_contentModule from '../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as DismissibleContentUnsafeUtilsModule from '../../dismissible_content/DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
import * as GameConsoleConstantsModule from '../GameConsoleConstants.tsx'; /* Metro dependency 9340 */
import * as GameConsoleAlertModule from './GameConsoleAlert.tsx'; /* Metro dependency 9427 */
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;
}
ReactModule;
object = {maybeShowPTTAlert: maybeShowPTTAlert, showSelfDismissableAlert: showSelfDismissableAlert};
(FileImportTrackerModule).fileFinishedImporting('modules/game_console/native/GameConsoleAlertUtils.tsx');
exports.default = object;
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 UNSAFE_isDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_isDismissibleContentDismissed;
const DismissibleContent = (Dismissible_contentModule).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 = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).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 _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 = AlertActionCreators;
const show = defaultImport.show;
const object = {};
object.title = env0_0;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bL21zs);
object.onConfirm = onConfirm_73389;
Reflect.apply(show, defaultImport, [object]);
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 = (Dismissible_contentModule).DismissibleContent;
const CONSOLE_PTT_DISABLE_ALERT = DismissibleContent.CONSOLE_PTT_DISABLE_ALERT;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [CONSOLE_PTT_DISABLE_ALERT]);
env0_0();
}
}
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();
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 = AlertActionCreators;
const show = defaultImport.show;
const object = {title: title};
const SelfDismissibleAlertBody = (GameConsoleAlertModule).SelfDismissibleAlertBody;
object.body = (
<SelfDismissibleAlertBody
body={body}
errorCodeMessage={errorCodeMessage}
dismissCallback={defaultImport.close}
/>
);
object.onConfirm = onConfirm_73391;
Reflect.apply(show, defaultImport, [object]);
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});
}
}
}
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();
}
global.__d(_fun73386, 9426, [31, 4259, 9340, 661, 33, 3968, 1365, 1244, 4496, 9427, 9354,
2]) /* metro module 9426, dependencies: [31, 4259, 9340, 661, 33, 3968, 1365, 1244, 4496, 9427, 9354, 2] */;
@@ -1,230 +1,287 @@
/* 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] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GameConsoleStore from '../GameConsoleStore.tsx'; /* Metro dependency 4295 */
import Module09431 from '../../../by-id/module-09431.js'; /* Metro dependency 9431 */
import Module09432 from '../../../by-id/module-09432.js'; /* Metro dependency 9432 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as GameConsoleActionCreatorsModule from '../GameConsoleActionCreators.tsx'; /* Metro dependency 9422 */
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 */;
let value = ReactNativeModule;
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};
object = {container: {'padding': 16, 'justifyContent': 'center', 'paddingBottom': 90}};
object.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,
object.footerContainer = {'padding': 16, 'backgroundColor': null, 'paddingBottom': 16,
backgroundColor: BACKGROUND_SURFACE_HIGH};
const object3 = {};
const object4 = {};
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;
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object4.padding = 16;
object.radioItem = object4;
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');
object.deviceIcon = {'marginRight': 16, 'width': 32, 'height': 32, tintColor: MOBILE_TEXT_HEADING_PRIMARY};
object.deviceOption = {'flexDirection': 'row', 'alignItems': 'center', 'marginRight': 24};
object.deviceText = {flexShrink: 1};
object.emptyContainer = {'alignItems': 'center', 'justifyContent': 'center'};
object.emptyArt = {marginBottom: 16};
object.emptyHeader = {'marginBottom': 8, 'textAlign': 'center'};
object.emptyBody = {textAlign: 'center'};
object.infoBox = {marginTop: 8};
const env0_15 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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 = (SafeAreaViewModule).SafeAreaPaddingView;
const Button = (ButtonNativeModule).Button;
const r10 = transferring || onPress == null;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const FYi3ry = (IndexNativeModule).t.FYi3ry;
return (
<SafeAreaPaddingView bottom style={styles.footerContainer}>
<Button
loading={transferring}
disabled={r10}
onPress={onPress}
text={Reflect.apply(string, intl, [FYi3ry])}
grow
/>
</SafeAreaPaddingView>
);
}
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={Module09431} />;
const Text = (TextModule).Text;
return (
<View style={styles.deviceOption}>
{image}
<Text
style={styles.deviceText}
color="mobile-text-heading-primary"
variant="text-md/bold"
>
{name}
</Text>
</View>
);
}
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}
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={Module09432} style={styles.emptyArt} />,
];
const Text = (TextModule).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.deviceText}
style={styles.emptyHeader}
variant="heading-md/extrabold"
color="mobile-text-heading-primary"
variant="text-md/bold"
>
{name}
{Reflect.apply(string, intl, [OkJf1e])}
</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 />;
);
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>
);
}
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;
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 r7;
var jsxRuntimeEnv0_14Binding;
var items2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const env0_4 = undefined;
const styles = useStyles();
const useStateFromStores = FluxModule.useStateFromStores;
const gameConsoleStoreBinding = GameConsoleStore;
const devicesForPlatform = Reflect.apply(useStateFromStores, FluxModule, [[gameConsoleStoreBinding], function() {
return GameConsoleStore.getDevicesForPlatform(platform);
}]);
const fetchingDevices = FluxModule.useStateFromStores([gameConsoleStoreBinding], function() {
return GameConsoleStore.getFetchingDevices(platform);
});
const lastSelectedDeviceByPlatform = FluxModule.useStateFromStores([gameConsoleStoreBinding], 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;
const RadioGroup = (require(1305) /* metro dependency 1305: native */).RadioGroup;
items2 = [
<RadioGroup
style={styles.radioItem}
options={value6}
value={property}
withDividers={false}
withSpacing
disabled={property2}
onChange={onChange_73417}
/>,
];
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 />;
}
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]);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
object = {footer: <TransferFooter transferring={property2} onPress={property != null ? function() {
return _handleTransferVoice.apply(this, arguments);
} : undefined} />};
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const bottomSheetTitleHeaderProps = {title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.aUuz7W)};
const pressableBindingProps = {disabled: fetchingDevices || property2, onPress: onPress_73419};
const Text = (TextModule).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>
);
object.header = <BottomSheetTitleHeader {...bottomSheetTitleHeaderProps} />;
object.scrollable = true;
const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView;
r7 = (
fetchingDevices
? (
<ActivityIndicator style={styles.loading} />
)
: r7
);
return (
<BottomSheet {...object}>
<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* _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 _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 _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 object = {value: id};
object.name = <DeviceOption name={name} platform={platform} />;
return object;
}
}
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);
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 _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;
}
global.__d(_fun73403, 9430, [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]) /* metro module 9430, 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] */;
@@ -1,48 +1,57 @@
/* Metro module 9435; source: modules/game_console/native/XboxInstallAlert.tsx; dependencies: [31, 9340, 33, 4501, 697, 4596, 1244, 1305, 9418, 477, 3853, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import Alert from '../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */
import Module09418 from '../../../by-id/module-09418.js'; /* Metro dependency 9418 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as GameConsoleConstantsModule from '../GameConsoleConstants.tsx'; /* Metro dependency 9340 */
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 */;
ReactModule;
let value = GameConsoleConstantsModule;
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 WHITE = (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');
(FileImportTrackerModule).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]);
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 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'] = renderConfirmRightIcon;
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 renderConfirmRightIcon() { // 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 = (NativeModule).Icon;
return <Icon source={Module09418} style={styles.externalLinkIcon} />;
}
};
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} />;
}
}
global.__d(_fun73432, 9435, [31, 9340, 33, 4501, 697, 4596, 1244, 1305, 9418, 477, 3853,
2]) /* metro module 9435, dependencies: [31, 9340, 33, 4501, 697, 4596, 1244, 1305, 9418, 477, 3853, 2] */;
@@ -1,68 +1,73 @@
/* Metro module 9421; source: modules/game_console/native/beginConsoleTransfer.tsx; dependencies: [5, 661, 9422, 9429, 4080, 9430, 1962, 480, 9433, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
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 PlatformTypes = (ConstantsModule).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');
(FileImportTrackerModule).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;
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 Module00005(_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 object;
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;
object = {channel: a0, platform: a1};
object.impressionName = binding(binding2[7]).ImpressionNames.GAME_CONSOLE_DEVICE_LIST;
return Reflect.apply(openLazy, value7, [value, value8, object]);
}
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);
}
}
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);
}
}
}
global.__d(_fun73345, 9421, [5, 661, 9422, 9429, 4080, 9430, 1962, 480, 9433,
2]) /* metro module 9421, dependencies: [5, 661, 9422, 9429, 4080, 9430, 1962, 480, 9433, 2] */;
@@ -1,20 +1,27 @@
/* Metro module 15520; source: modules/game_console/native/getConsoleColor.tsx; dependencies: [661, 697, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
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 PlatformTypes = (ConstantsModule).PlatformTypes;
object = {};
const XBOX = PlatformTypes.XBOX;
const PLATFORM_XBOX = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_XBOX;
object2[XBOX] = PLATFORM_XBOX;
object[XBOX] = PLATFORM_XBOX;
const PLAYSTATION = PlatformTypes.PLAYSTATION;
let PLATFORM_PLAYSTATION = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_PLAYSTATION;
object2[PLAYSTATION] = PLATFORM_PLAYSTATION;
object[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');
object[PLAYSTATION_STAGING] = PLATFORM_PLAYSTATION;
(FileImportTrackerModule).fileFinishedImporting('modules/game_console/native/getConsoleColor.tsx');
exports.default = getConsoleColor;
function getConsoleColor(a0) { // fn#118846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15717:395, offset: 0x00c3fbaf, size: 16 bytes, params: 2, frame: 2
return env0_0[a0];
}
}
global.__d(_fun118845, 15520, [661, 697, 2]) /* metro module 15520, dependencies: [661, 697, 2] */;
@@ -1,23 +1,27 @@
/* Metro module 15519; source: modules/game_console/native/getConsoleConnectingText.tsx; dependencies: [661, 1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
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');
(FileImportTrackerModule).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 = (IndexNativeModule).intl;
const t = (IndexNativeModule).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';
}
}
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';
}
global.__d(_fun118843, 15519, [661, 1244, 2]) /* metro module 15519, dependencies: [661, 1244, 2] */;
@@ -1,24 +1,32 @@
/* Metro module 9436; source: modules/game_console/native/getConsoleIcon.tsx; dependencies: [661, 4299, 9416, 9437, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as CallConstantsModule from '../../calls/CallConstants.tsx'; /* Metro dependency 4299 */
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 PlatformTypes = (ConstantsModule).PlatformTypes;
object = {};
const XBOX = PlatformTypes.XBOX;
object2[XBOX] = importDefault(9416) /* metro dependency 9416 */;
object[XBOX] = importDefault(9416) /* metro dependency 9416 */;
const PLAYSTATION = PlatformTypes.PLAYSTATION;
object2[PLAYSTATION] = importDefault(9437) /* metro dependency 9437 */;
object[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');
object[PLAYSTATION_STAGING] = importDefault(9437) /* metro dependency 9437 */;
(FileImportTrackerModule).fileFinishedImporting('modules/game_console/native/getConsoleIcon.tsx');
exports.default = getConsoleIcon;
exports.getConsoleIconForVoicePlatform = getConsoleIconForVoicePlatform;
function getConsoleIcon(a0) { // fn#73437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9622:312, offset: 0x00e658b7, size: 16 bytes, params: 2, frame: 2
return env0_3[a0];
}
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 */;
}
}
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 */;
}
global.__d(_fun73436, 9436, [661, 4299, 9416, 9437,
2]) /* metro module 9436, dependencies: [661, 4299, 9416, 9437, 2] */;
@@ -1,103 +1,108 @@
/* 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] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
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');
ReactModule;
(FileImportTrackerModule).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 Module00005(_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 object = {};
copyDataProperties(object, a0, binding);
return binding(binding2, object);
}
}
}
}
}
}
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);
}
global.__d(_fun73422, 9433, [5, 31, 27, 661, 33, 9425, 9422, 9434, 4496, 9435, 1962, 9428, 8913,
2]) /* metro module 9433, dependencies: [5, 31, 27, 661, 33, 9425, 9422, 9434, 4496, 9435, 1962, 9428, 8913, 2] */;
@@ -1,4 +1,8 @@
/* Metro module 15518; source: modules/game_console/native/useShouldDisplayCancelConsoleTransfer.tsx; dependencies: [57, 31, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
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;
@@ -14,42 +18,49 @@ function _fun118836(global, require, importDefault, importAll, module, exports,
};
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');
(FileImportTrackerModule).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 _fun118839() { // fn#118839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15715:372, offset: 0x016f88b2, size: 23 bytes, params: 1, frame: 11
return shouldDisplayCancel(env0_0);
}
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));
}
function _fun118842() { // fn#118842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15715:584, offset: 0x00e59c84, size: 24 bytes, params: 1, frame: 11
global.clearTimeout(env0_0);
}
}
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));
}
global.__d(_fun118836, 15518, [57, 31, 2]) /* metro module 15518, dependencies: [57, 31, 2] */;