Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user