Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,12 @@
|
||||
/* Metro module 12651; source: modules/activate_device/ActivateDeviceUtils.tsx; dependencies: [661, 9363, 2] */
|
||||
function _fun96995(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12841:6, offset: 0x0216f494, 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/activate_device/ActivateDeviceUtils.tsx');
|
||||
exports.clientIdToActivateDevicePlatform = function(a0) {
|
||||
return a0 === require(dependencyMap[1]).ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID ? PlatformTypes.PLAYSTATION : a0 !== require(dependencyMap[1]).ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID ? null : PlatformTypes.PLAYSTATION_STAGING;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
/* Metro module 12649; source: modules/activate_device/native/ActivateDevice.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 12650, 12652, 8870, 9363, 12653, 4121, 12654, 5475, 12655, 12659, 12660, 1423, 12661, 6618, 2] */
|
||||
function _fun96982(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:6, offset: 0x0216ebb0, size: 467 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ImageBackground;
|
||||
const env0_7 = value.ActivityIndicator;
|
||||
const env0_8 = value.ScrollView;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.background = {flex: 1};
|
||||
const TEXT_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_BRAND;
|
||||
object2.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover', backgroundColor: TEXT_BRAND};
|
||||
object2.safeArea = {'flex': 1, 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
const object3 = {'maxWidth': 480, 'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
|
||||
'borderRadius': null, 'padding': 24, 'marginHorizontal': 24, 'marginVertical': 36, 'shadowColor': null,
|
||||
'shadowOpacity': 0.2};
|
||||
const PANEL_BG = (importDefault(697) /* metro dependency 697: native */).colors.PANEL_BG;
|
||||
object3.backgroundColor = PANEL_BG;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
object3.shadowColor = BLACK;
|
||||
object3.shadowOffset = {'width': 0, 'height': 4};
|
||||
object3.shadowRadius = 4;
|
||||
object2.content = object3;
|
||||
object2.scroller = {'alignSelf': 'stretch', 'flexGrow': 0};
|
||||
object2.scrollerContent = {'flexDirection': 'column', 'gap': 16};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDevice.tsx');
|
||||
exports.ActivateDevice = ActivateDevice;
|
||||
}
|
||||
|
||||
function ActivateDevice({onClose, prefilledUserCode}) { // fn#96983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:879, offset: 0x0216ed83, size: 815 bytes, params: 2, frame: 29
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [{'type': 'user-code-input', 'usePrefilledCode': true}]);
|
||||
const binding2 = env0_3;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
const property2 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property3 = value6[0];
|
||||
var env0_3 = value6[1];
|
||||
(require(12650) /* metro dependency 12650: useActivateDeviceStepTracking */).useActivateDeviceStepTracking(property);
|
||||
let useCallback = binding.useCallback;
|
||||
const value7 = Reflect.apply(useCallback, binding, [_fun96984, [property2]]);
|
||||
const value8 = binding.useCallback(_fun96985, [property2]);
|
||||
useCallback = binding.useCallback;
|
||||
const value11 = binding.useCallback(_fun96987,
|
||||
[(require(12652) /* metro dependency 12652: useDeviceCodeAuthorizeCallback */).useDeviceCodeAuthorizeCallback(value7,
|
||||
Reflect.apply(useCallback, binding, [_fun96986, [property2]]), value8)]);
|
||||
binding.useEffect(_fun96989, [property]);
|
||||
binding.useEffect(_fun96991, [property3]);
|
||||
const type = property.type;
|
||||
const r10 = type === 'user-code-input' ? ((UserCodeInput) => <UserCodeInput prefilledUserCode={property.usePrefilledCode ? prefilledUserCode : undefined} onUserCodeAccepted={value11} onClose={onClose} />)((require(12655) /* metro dependency 12655: UserCodeInput */).UserCodeInput) : type === 'authorization' ? <ActivityIndicator animating /> : type === 'success' ? ((ActivateDeviceSuccess) => <ActivateDeviceSuccess onComplete={onClose} data={property.userCodeData} successImage={property3} />)((require(12659) /* metro dependency 12659: ActivateDeviceSuccess */).ActivateDeviceSuccess) : type !== 'error' ? null : ((ActivateDeviceError) => <ActivateDeviceError onRetry={value7} />)((require(12660) /* metro dependency 12660: ActivateDeviceError */).ActivateDeviceError);
|
||||
object2 = {};
|
||||
const avatarUtilsModule = require(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
object2.source = avatarUtilsModule.makeSource(importDefault(12661) /* metro dependency 12661: mobile_backgroundJpg */);
|
||||
object2.imageStyle = styles.imageStyle;
|
||||
object2.style = [styles.background];
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
return (
|
||||
<ImageBackground {...object2}>
|
||||
<SafeAreaPaddingView
|
||||
bottom
|
||||
top
|
||||
style={styles.safeArea}
|
||||
>
|
||||
<View style={styles.content}>
|
||||
<ScrollView
|
||||
bounces={false}
|
||||
style={styles.scroller}
|
||||
contentContainerStyle={styles.scrollerContent}
|
||||
>
|
||||
{r10}
|
||||
</ScrollView>
|
||||
</View>
|
||||
</SafeAreaPaddingView>
|
||||
</ImageBackground>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun96984() { // fn#96984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1113, offset: 0x0216f0b2, size: 28 bytes, params: 1, frame: 11
|
||||
env0_1({type: 'user-code-input'});
|
||||
}
|
||||
|
||||
function _fun96985(a0) { // fn#96985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1170, offset: 0x0216f0ce, size: 34 bytes, params: 2, frame: 11
|
||||
env0_1({type: 'success', userCodeData: a0});
|
||||
}
|
||||
|
||||
function _fun96986(a0) { // fn#96986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1233, offset: 0x0216f0f0, size: 34 bytes, params: 2, frame: 11
|
||||
env0_1({type: 'error', userCodeData: a0});
|
||||
}
|
||||
|
||||
function _fun96987(a0) { // fn#96987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1342, offset: 0x0216f112, size: 124 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
env0_1({type: 'authorization', userCodeData: a0});
|
||||
const value = environment.__proto__;
|
||||
(require(8870) /* metro dependency 8870: ApplicationUtils */).openOAuth2Modal({'clientId': null, 'scopes': null,
|
||||
'responseType': 'code', 'isTrustedName': true, 'isEmbeddedFlow': true, 'withBackPressHandler': false,
|
||||
clientId: a0.clientId, scopes: a0.scopes, callbackWithoutPost: callbackWithoutPost});
|
||||
}
|
||||
|
||||
function _fun96989() { // fn#96989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1586, offset: 0x0216f1a9, size: 213 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
var userCodeData;
|
||||
var value2;
|
||||
const ConsoleOAuthApplications = (require(9363) /* metro dependency 9363: ConsoleOAuthApplications */).ConsoleOAuthApplications;
|
||||
var items2;
|
||||
var scopes;
|
||||
if ('userCodeData' in env0_0) {
|
||||
userCodeData = env0_0.userCodeData;
|
||||
value2 = environment.__proto__;
|
||||
items2 = [ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID];
|
||||
items2[1] = ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID;
|
||||
if (items2.includes(userCodeData.clientId)) {
|
||||
env0_3(importDefault(12653) /* metro dependency 12653: ps_link_success_illustration2xPng */);
|
||||
} else {
|
||||
scopes = userCodeData.scopes;
|
||||
if (scopes.some(_fun96990)) {
|
||||
env0_3(importDefault(12654) /* metro dependency 12654: social_layer_link_success_illustration2xPng */);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun96991() { // fn#96991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1891, offset: 0x0216f2a7, size: 57 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
if (env0_2 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(5475) /* metro dependency 5475: FastImage */).preload(env0_2);
|
||||
}
|
||||
}
|
||||
|
||||
function callbackWithoutPost(a0) { // fn#96988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1547, offset: 0x0216f18e, size: 27 bytes, params: 2, frame: 13
|
||||
return env1_4(env0_0, a0);
|
||||
}
|
||||
|
||||
function _fun96990(a0) { // fn#96990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12839:1813, offset: 0x0216f27e, size: 41 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (require(4121) /* metro dependency 4121: scopes */).isSocialLayerUmbrellaScope(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 12660; source: modules/activate_device/native/ActivateDeviceError.tsx; dependencies: [31, 27, 33, 4501, 9370, 12658, 4573, 1244, 4578, 2] */
|
||||
function _fun97026(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12850:6, offset: 0x0217082f, size: 235 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = value.Fragment;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 254,
|
||||
'height': 127, 'alignSelf': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceError.tsx');
|
||||
exports.ActivateDeviceError = ActivateDeviceError;
|
||||
}
|
||||
|
||||
function ActivateDeviceError({onRetry}) { // fn#97027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12850:357, offset: 0x0217091a, size: 468 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
||||
const items2 = [<Image source={importDefault(9370) /* metro dependency 9370 */} style={styles.image} />];
|
||||
const innerContent = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const centerText = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <View style={innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3dgwPD'])}</Text><Text variant="text-md/medium" color="text-default" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/GAO1P'])}</Text></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[2] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5911Lb'])} onPress={onRetry} grow />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 12648; source: modules/activate_device/native/ActivateDeviceModal.tsx; dependencies: [31, 33, 12647, 5277, 8160, 1244, 12649, 5280, 2] */
|
||||
function _fun96973(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:6, offset: 0x0216e90c, size: 160 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = {ACTIVATE_DEVICE: 'activate-device'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceModal.tsx');
|
||||
exports.default = ActivateDeviceModal;
|
||||
}
|
||||
|
||||
function ActivateDeviceModal({userCode}) { // fn#96974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:285, offset: 0x0216e9ac, size: 162 bytes, params: 2, frame: 18
|
||||
const value2 = env0_3.useMemo(function() {
|
||||
return _fun96976(userCode);
|
||||
}, [userCode]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const ACTIVATE_DEVICE = env0_5.ACTIVATE_DEVICE;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
screens={value2}
|
||||
initialRouteName={ACTIVATE_DEVICE}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun96975() { // fn#96975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:345, offset: 0x0216ea4e, size: 25 bytes, params: 1, frame: 11
|
||||
return getScreens_96976(userCode);
|
||||
}
|
||||
|
||||
function getScreens_96976(a0) { // fn#96976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:349, offset: 0x0216ea67, size: 99 bytes, params: 2, frame: 5
|
||||
const env0_0 = a0;
|
||||
const ACTIVATE_DEVICE = env2_5.ACTIVATE_DEVICE;
|
||||
return {[ACTIVATE_DEVICE]: {fullscreen: true, headerTitle: function() {
|
||||
return null;
|
||||
}, headerLeft: headerLeft_96979, headerRight: function() {
|
||||
return null;
|
||||
}, render: render_96981}};
|
||||
}
|
||||
|
||||
function getScreens_96976OnClose() { // fn#96977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:384, owner: getScreens_96976.onClose, offset: 0x0216eaca, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (importDefault(12647) /* metro dependency 12647: ActivateDeviceModalActionCreators */).hideModal();
|
||||
}
|
||||
|
||||
function getScreens_96976HeaderLeft() { // fn#96979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:482, owner: getScreens_96976.headerLeft, offset: 0x0216eaef, size: 127 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */,
|
||||
onPress: getScreens_96976OnClose};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
function getScreens_96976Render() { // fn#96981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12838:634, owner: getScreens_96976.render, offset: 0x0216eb6e, size: 66 bytes, params: 1, frame: 15
|
||||
const ActivateDevice = (require(12649) /* metro dependency 12649: ActivateDevice */).ActivateDevice;
|
||||
return <ActivateDevice onClose={getScreens_96976OnClose} prefilledUserCode={env0_0} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 12647; source: modules/activate_device/native/ActivateDeviceModalActionCreators.tsx; dependencies: [5080, 12648, 1962, 2] */
|
||||
function _fun96970(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:6, offset: 0x0216e80e, size: 122 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {showModal: showModal_96971, hideModal: hideModal_96972};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function showModal_96971(a0) { // fn#96971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:129, offset: 0x0216e888, size: 89 bytes, params: 2, frame: 16
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {userCode: a0}, 'ACTIVATE_DEVICE_MODAL_KEY']);
|
||||
}
|
||||
|
||||
function hideModal_96972() { // fn#96972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12837:198, offset: 0x0216e8e1, size: 43 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('ACTIVATE_DEVICE_MODAL_KEY');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 12658; source: modules/activate_device/native/ActivateDeviceSharedStyles.tsx; dependencies: [2] */
|
||||
function _fun97022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12848:6, offset: 0x02170406, size: 114 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceSharedStyles.tsx');
|
||||
exports.default = {innerContent: {'flexDirection': 'column', 'gap': 8, 'alignItems': 'center'},
|
||||
centerText: {textAlign: 'center'}};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 12659; source: modules/activate_device/native/ActivateDeviceSuccess.tsx; dependencies: [31, 27, 33, 4501, 1244, 4121, 5475, 1423, 12658, 4573, 4578, 2] */
|
||||
function _fun97023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:6, offset: 0x02170478, size: 225 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
const env0_6 = value.Fragment;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 300,
|
||||
'height': 200, 'alignSelf': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/ActivateDeviceSuccess.tsx');
|
||||
exports.ActivateDeviceSuccess = ActivateDeviceSuccess;
|
||||
}
|
||||
|
||||
function ActivateDeviceSuccess({data, onComplete, successImage}) { // fn#97024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:348, offset: 0x02170559, size: 685 bytes, params: 2, frame: 31
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const r16 = data.twoWayLinkCode != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.QhATl2) : data.scopes.some(_fun97025) ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vBPvK3) : null;
|
||||
const jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
const items2 = [successImage != null ? ((Component) => <Component source={(require(1423) /* metro dependency 1423: AvatarUtils */).makeSource(successImage)} style={styles.image} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */) : null];
|
||||
items2[1] = <View style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qDtJmD)}</Text>{r16 != null ? <Text variant="text-md/medium" color="text-default" style={(importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).centerText}>{r16}</Text> : null}</View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[2] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={onComplete} grow />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun97025(a0) { // fn#97025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12849:491, offset: 0x02170806, size: 41 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(4121) /* metro dependency 4121: scopes */).isSocialLayerUmbrellaScope(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/* Metro module 12655; source: modules/activate_device/native/UserCodeInput.tsx; dependencies: [57, 31, 27, 12656, 33, 4501, 12657, 12658, 4573, 1244, 7981, 4578, 2] */
|
||||
function _fun97013(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12845:6, offset: 0x0216fc5b, size: 262 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(12656) /* metro dependency 12656: OAuthConstants */).OAuthConstants;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = value.Fragment;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({text: {textAlign: 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/native/UserCodeInput.tsx');
|
||||
exports.UserCodeInput = UserCodeInput;
|
||||
}
|
||||
|
||||
function UserCodeInput({onClose, onUserCodeAccepted, prefilledUserCode}) { // fn#97014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12845:347, offset: 0x0216fd61, size: 695 bytes, params: 2, frame: 33
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const value4 = env0_3(Reflect.apply(useState, binding, [prefilledUserCode ?? '']), 2);
|
||||
const property = value4[0];
|
||||
const env0_0 = value4[1];
|
||||
const {manualSubmit, error,
|
||||
submitting} = (require(12657) /* metro dependency 12657: useUserCodeSubmit */).useUserCodeSubmit(property,
|
||||
onUserCodeAccepted, onClose);
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const innerContent = (importDefault(12658) /* metro dependency 12658: ActivateDeviceSharedStyles */).innerContent;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const KYPNUv = t.KYPNUv;
|
||||
const items2 = [<View style={innerContent}><Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.text}>{Reflect.apply(string,
|
||||
intl,
|
||||
[KYPNUv])}</Text><Text variant="text-md/medium" color="text-default" style={styles.text}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xRHk7f)}</Text></View>];
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
const object = {onChange: onChange_97015};
|
||||
let USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
|
||||
object.maxLength = USER_CODE_LENGTH;
|
||||
object.value = property;
|
||||
object.autoFocus = true;
|
||||
object.autoComplete = 'off';
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const property2 = (require(1244) /* metro dependency 1244: indexNative */).t['0tbz6x'];
|
||||
USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
|
||||
object.placeholder = Reflect.apply(formatToPlainString, intl, [property2, {number: USER_CODE_LENGTH}]);
|
||||
object.errorMessage = error;
|
||||
items2[1] = <TextInput {...object} />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const length = property.length;
|
||||
USER_CODE_LENGTH = OAuthConstants.USER_CODE_LENGTH;
|
||||
items2[2] = <Button size="lg" text={Reflect.apply(string, intl,
|
||||
[t['3PatSz']])} onPress={manualSubmit} loading={submitting} disabled={length !== USER_CODE_LENGTH} grow />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 12650; source: modules/activate_device/useActivateDeviceStepTracking.tsx; dependencies: [31, 661, 6266, 12651, 683, 2] */
|
||||
function _fun96992(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:6, offset: 0x0216f2e0, size: 143 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/useActivateDeviceStepTracking.tsx');
|
||||
exports.useActivateDeviceStepTracking = useActivateDeviceStepTracking;
|
||||
}
|
||||
|
||||
function useActivateDeviceStepTracking(a0) { // fn#96993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:254, offset: 0x0216f36f, size: 79 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
env0_3.useEffect(_fun96994, [(importDefault(6266) /* metro dependency 6266: usePrevious */)(a0), a0]);
|
||||
}
|
||||
|
||||
function _fun96994() { // fn#96994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12840:326, offset: 0x0216f3be, size: 214 bytes, params: 1, frame: 18
|
||||
var r0;
|
||||
var r4;
|
||||
var type;
|
||||
var value4;
|
||||
var value5;
|
||||
var moduleValue;
|
||||
var value7;
|
||||
var value8;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var DEVICE_LINK_STEP;
|
||||
var object2;
|
||||
if (env0_0 !== env0_1) {
|
||||
type = env0_0.type;
|
||||
r0 = type !== 'user-code-input' && env0_0.type !== 'handoff';
|
||||
value4 = null;
|
||||
if (r0) {
|
||||
value5 = environment.__proto__;
|
||||
moduleValue = require(12651) /* metro dependency 12651: ActivateDeviceUtils */;
|
||||
r4 = moduleValue.clientIdToActivateDevicePlatform(env0_0.userCodeData.clientId);
|
||||
} else {
|
||||
r4 = value4;
|
||||
}
|
||||
value7 = environment.__proto__;
|
||||
value8 = undefined;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
DEVICE_LINK_STEP = AnalyticEvents.DEVICE_LINK_STEP;
|
||||
object2 = {};
|
||||
type = value4 == env0_1 ? value8 : env0_1.type;
|
||||
object2.previous_step = type;
|
||||
type = env0_0.type;
|
||||
object2.current_step = type;
|
||||
object2.platform_type = r4;
|
||||
Reflect.apply(track, defaultImport, [DEVICE_LINK_STEP, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,760 @@
|
||||
/* Metro module 12652; source: modules/activate_device/useDeviceCodeAuthorizeCallback.tsx; dependencies: [5, 31, 12651, 5042, 9338, 44, 5043, 9347, 2] */
|
||||
function _fun96997(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:6, offset: 0x0216f570, size: 170 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const silentlyFinishTwoWayLinkError = function() {
|
||||
return _silentlyFinishTwoWayLinkError.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activate_device/useDeviceCodeAuthorizeCallback.tsx');
|
||||
exports.useDeviceCodeAuthorizeCallback = useDeviceCodeAuthorizeCallback;
|
||||
}
|
||||
|
||||
function _createTwoWayLink() { // fn#96998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:118, offset: 0x0216f61a, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun97000).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _silentlyFinishTwoWayLinkError() { // fn#97002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1296, offset: 0x0216f92b, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun97004).apply(this, arguments);
|
||||
}
|
||||
|
||||
function useDeviceCodeAuthorizeCallback(a0, a1, a2) { // fn#97005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1614, offset: 0x0216f9b7, size: 72 bytes, params: 4, frame: 16
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
return env0_4.useCallback(_fun97006(), [a0, a1, a2]);
|
||||
}
|
||||
|
||||
function* _fun97000(a0, a1, a2) { // fn#97000, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:175, offset: 0x0216f657, size: 724 bytes, params: 4, frame: 34
|
||||
var code;
|
||||
var r7;
|
||||
var r4;
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var value4;
|
||||
var clientIdToActivateDevicePlatform;
|
||||
var value5;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var authorize;
|
||||
var object2;
|
||||
var value7;
|
||||
var TwoWayLinkType;
|
||||
var DEVICE_CODE;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var body;
|
||||
var url;
|
||||
var binding3;
|
||||
var value11;
|
||||
var value12;
|
||||
var binding4;
|
||||
var value13;
|
||||
var getCallbackParamsFromURL;
|
||||
var value14;
|
||||
var state;
|
||||
var value15;
|
||||
var value16;
|
||||
var binding5;
|
||||
var value17;
|
||||
var callback;
|
||||
var value18;
|
||||
var value19;
|
||||
var value20;
|
||||
var error;
|
||||
var value21;
|
||||
var value22;
|
||||
var Error;
|
||||
var prototype;
|
||||
var value23;
|
||||
var value24;
|
||||
var value25;
|
||||
exceptionSkip75: while (true) {
|
||||
exceptionLanding75: while (true) {
|
||||
exceptionSkip70: while (true) {
|
||||
exceptionLanding70: while (true) {
|
||||
exceptionSkip62: while (true) {
|
||||
exceptionLanding62: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = undefined;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
value4 = binding(env2_2[2]);
|
||||
clientIdToActivateDevicePlatform = value4.clientIdToActivateDevicePlatform;
|
||||
value5 = Reflect.apply(clientIdToActivateDevicePlatform, value4, [a0]);
|
||||
if (value5 == null) {
|
||||
yield env2_6(a2, 1, 'authorize');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('Unsupported client_id for two way link');
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
authorize = value6.authorize;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
property = binding2[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
TwoWayLinkType = value7.TwoWayLinkType;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
DEVICE_CODE = TwoWayLinkType.DEVICE_CODE;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
object2.twoWayLinkType = DEVICE_CODE;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
object2.userCode = a2;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(authorize, value6, [value5, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
yield value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
if (value10) {
|
||||
return value9;
|
||||
}
|
||||
try {
|
||||
body = value9.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
url = body.url;
|
||||
} catch (error) {
|
||||
break exceptionLanding75;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
property = binding3[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value11 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value12 = url != null;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value11(value12, 'No URL in authorize response');
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
property = binding3[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value13 = binding4(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
getCallbackParamsFromURL = value13.getCallbackParamsFromURL;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value14 = Reflect.apply(getCallbackParamsFromURL, value13, [url]);
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
state = value14.state;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
property = binding3[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value15 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value16 = state != null;
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
value15(value16, 'Authorize URL state query parameter must be present');
|
||||
} catch (error) {
|
||||
break exceptionLanding70;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
binding5 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
property = binding5[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
value17 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
callback = value17.callback;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
object2.code = a1;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
object2.state = state;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
try {
|
||||
value18 = Reflect.apply(callback, value17, [value5, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
yield value18;
|
||||
try {
|
||||
value19 = undefined;
|
||||
value20 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding62;
|
||||
}
|
||||
return value20 ? value19 : value;
|
||||
break exceptionSkip62;
|
||||
}
|
||||
binding = env2_6;
|
||||
if (error == null) {
|
||||
code = value;
|
||||
value21 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'callback');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
yield binding(a2, value21, 'callback');
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
body = error.body;
|
||||
if (body == null) {
|
||||
code = value;
|
||||
value21 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'callback');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
yield binding(a2, value21, 'callback');
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
code = body.code;
|
||||
value21 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'callback');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way callback');
|
||||
}
|
||||
r7 = value21;
|
||||
yield binding(a2, r7, 'callback');
|
||||
value = undefined;
|
||||
value22 = false;
|
||||
if (value22) {
|
||||
return value;
|
||||
}
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('error during two way callback');
|
||||
value = error instanceof Object ? error : value;
|
||||
throw value;
|
||||
break exceptionSkip62;
|
||||
}
|
||||
break exceptionSkip70;
|
||||
}
|
||||
yield env2_6(a2, 2, 'authorize');
|
||||
value = undefined;
|
||||
value23 = false;
|
||||
if (value23) {
|
||||
return value;
|
||||
}
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('error parsing callback params');
|
||||
value = error instanceof Object ? error : value;
|
||||
throw value;
|
||||
break exceptionSkip70;
|
||||
}
|
||||
break exceptionSkip75;
|
||||
}
|
||||
binding = env2_6;
|
||||
if (error == null) {
|
||||
code = value;
|
||||
value24 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'authorize');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
yield binding(a2, value24, 'authorize');
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
body = error.body;
|
||||
if (body == null) {
|
||||
code = value;
|
||||
value24 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'authorize');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
yield binding(a2, value24, 'authorize');
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
code = body.code;
|
||||
value24 = 0;
|
||||
if (code != null) {
|
||||
yield binding(a2, code, 'authorize');
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error('error during two way authorize');
|
||||
}
|
||||
r4 = value24;
|
||||
yield binding(a2, r4, 'authorize');
|
||||
value = undefined;
|
||||
value25 = false;
|
||||
if (value25) {
|
||||
return value;
|
||||
}
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('error during two way authorize');
|
||||
value = error instanceof Object ? error : value;
|
||||
throw value;
|
||||
break exceptionSkip75;
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun97004(a0, a1, a2) { // fn#97004, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1379, offset: 0x0216f968, size: 79 bytes, params: 4, frame: 17
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var finishUserCodeTwoWayLinkError;
|
||||
var value3;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
finishUserCodeTwoWayLinkError = value.finishUserCodeTwoWayLinkError;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(finishUserCodeTwoWayLinkError, value, [a0, a1, a2]);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value3 = false;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
if (value3) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun97006() { // fn#97006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1681, offset: 0x0216f9ff, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun97008);
|
||||
return _fun97010;
|
||||
}
|
||||
|
||||
function* _fun97008(a0, a1) { // fn#97008, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1701, offset: 0x0216fa2e, size: 321 bytes, params: 3, frame: 17
|
||||
var environment;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var finishUserCode;
|
||||
var userCode;
|
||||
var value3;
|
||||
var error;
|
||||
var twoWayLinkCode;
|
||||
var clientId;
|
||||
var closure;
|
||||
var value4;
|
||||
var binding3;
|
||||
var value5;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (a1) {
|
||||
twoWayLinkCode = a0.twoWayLinkCode;
|
||||
if (twoWayLinkCode == null) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_2;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding3[7];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
finishUserCode = value.finishUserCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
userCode = a0.userCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(finishUserCode, value, [userCode, 'granted']);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
if (value5) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
dependencyMap(a0);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
clientId = a0.clientId;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
twoWayLinkCode = a0.twoWayLinkCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
userCode = a0.userCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
closure = createTwoWayLink;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = closure(clientId, twoWayLinkCode, userCode);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value4 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
if (value4) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
dependencyMap(a0);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(a0);
|
||||
}
|
||||
} else {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
finishUserCode = value.finishUserCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
userCode = a0.userCode;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(finishUserCode, value, [userCode, 'denied']);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value3 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
return undefined;
|
||||
}
|
||||
if (value3) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
require();
|
||||
}
|
||||
}
|
||||
|
||||
function createTwoWayLink() { // fn#97009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12842:1836, offset: 0x0216fb6f, size: 30 bytes, params: 1, frame: 13
|
||||
return env4_5.apply(this, arguments);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user