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