409 lines
17 KiB
TypeScript
409 lines
17 KiB
TypeScript
/* Metro module 8962; source: modules/verification/native/components/ConfirmEmailChangeStart.tsx; dependencies: [5, 57, 31, 27, 1878, 33, 4501, 1484, 566, 8963, 676, 4132, 3857, 1244, 8964, 4573, 4578, 2] */
|
|
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import Module08964 from '../../../../by-id/module-08964.js'; /* Metro dependency 8964 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
|
|
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
|
|
|
|
function _fun69876(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9147:6, offset: 0x01ce67fc, size: 360 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactNativeModule;
|
|
const env0_6 = value.View;
|
|
const env0_7 = value.Image;
|
|
const env0_8 = value.ScrollView;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_10 = value.jsx;
|
|
const env0_11 = value.jsxs;
|
|
const env0_12 = (CreateStylesModule).createStyles({container: {'flex': 1,
|
|
'padding': 16, 'alignItems': 'center', 'justifyContent': 'center'}, image: {'height': 190, 'width': 220,
|
|
'resizeMode': 'contain'}, title: {'marginTop': 16, 'textAlign': 'center'}, body: {'marginTop': 8,
|
|
'lineHeight': 18, 'textAlign': 'center'}, button: {'marginTop': 16, 'width': '100%'}});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/verification/native/components/ConfirmEmailChangeStart.tsx');
|
|
exports.default = ConfirmEmailChangeStart;
|
|
function ConfirmEmailChangeStart() { // fn#69877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9147:598, offset: 0x01ce6964, size: 613 bytes, params: 1, frame: 31
|
|
const styles = useStyles();
|
|
const value2 = (UseNavigationNativeModule).useNavigation();
|
|
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
|
return UserStore.getCurrentUser();
|
|
});
|
|
const [property, env0_2] = Module00057(ReactModule.useState(false), 2);
|
|
const value6 = ReactModule.useCallback(Module00005(_fun69880), [value2]);
|
|
if (currentUser == null) {
|
|
return null;
|
|
}
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const value7 = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.oMFSgi,
|
|
{oldEmail: currentUser.email});
|
|
const items2 = [
|
|
<Image style={styles.image} source={Module08964} />,
|
|
];
|
|
const Text = (TextModule).Text;
|
|
items2[1] = (
|
|
<Text
|
|
style={styles.title}
|
|
accessibilityRole="header"
|
|
variant="heading-xl/extrabold"
|
|
color="mobile-text-heading-primary"
|
|
>
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dQ71Wa)}
|
|
</Text>
|
|
);
|
|
items2[2] = value7.map(_fun69881);
|
|
const Button = (ButtonNativeModule).Button;
|
|
items2[3] = (
|
|
<View style={styles.button}>
|
|
<Button
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rXV81H)}
|
|
onPress={value6}
|
|
loading={property}
|
|
grow
|
|
/>
|
|
</View>
|
|
);
|
|
return (
|
|
<ScrollView keyboardShouldPersistTaps="handled" alwaysBounceVertical={false}>
|
|
<View style={styles.container}>
|
|
{items2}
|
|
</View>
|
|
</ScrollView>
|
|
);
|
|
function* _fun69880() { // fn#69880, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9147:787, offset: 0x01ce6bd4, size: 282 bytes, params: 1, frame: 18
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var sendConfirmationCode;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var push;
|
|
var binding3;
|
|
var value8;
|
|
var VerificationModalScenes;
|
|
var CONFIRM_EMAIL_CHANGE_CODE;
|
|
var error;
|
|
var binding4;
|
|
var value9;
|
|
var prototype;
|
|
var value11;
|
|
var value12;
|
|
var getAnyErrorMessage;
|
|
var value13;
|
|
var value14;
|
|
var binding5;
|
|
var value15;
|
|
var open;
|
|
var object;
|
|
exceptionLanding53: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__;
|
|
dependencyMap(true);
|
|
value3 = environment.__proto__.__proto__;
|
|
reducibleJoin4: while (true) {
|
|
reduciblePort52: while (true) {
|
|
exceptionLanding25: while (true) {
|
|
try {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
property = binding4[11];
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
prototype = value9.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
value11 = new value9();
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
value12 = value11 instanceof Object ? value11 : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
getAnyErrorMessage = value12.getAnyErrorMessage;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(getAnyErrorMessage, value12, []);
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
value14 = value13 == null;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
reducibleJoin52: while (true) {
|
|
if (value14) {
|
|
break reducibleJoin52;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
binding5 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
property = binding5[12];
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
open = value15.open;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
object.key = 'CONFIRM_EMAIL_ERROR';
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
object.content = value13;
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
Reflect.apply(open, value15, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
break reducibleJoin52;
|
|
}
|
|
break reduciblePort52;
|
|
}
|
|
dependencyMap(false);
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[9];
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
sendConfirmationCode = value4.sendConfirmationCode;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(sendConfirmationCode, value4, []);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
if (value7) {
|
|
dependencyMap(false);
|
|
return value6;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
push = importDefault.push;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding3[10];
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
VerificationModalScenes = value8.VerificationModalScenes;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
CONFIRM_EMAIL_CHANGE_CODE = VerificationModalScenes.CONFIRM_EMAIL_CHANGE_CODE;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(push, importDefault, [CONFIRM_EMAIL_CHANGE_CODE]);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding53;
|
|
}
|
|
dependencyMap(false);
|
|
return undefined;
|
|
}
|
|
dependencyMap(false);
|
|
throw error;
|
|
}
|
|
|
|
function _fun69881(a0, a1) { // fn#69881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9147:1473, offset: 0x01ce6cee, size: 85 bytes, params: 3, frame: 15
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<Text
|
|
style={styles.body}
|
|
variant="text-sm/medium"
|
|
color="text-default"
|
|
key={a1}
|
|
>
|
|
{a0}
|
|
</Text>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun69876, 8962, [5, 57, 31, 27, 1878, 33, 4501, 1484, 566, 8963, 676, 4132, 3857, 1244, 8964, 4573,
|
|
4578,
|
|
2]) /* metro module 8962, dependencies: [5, 57, 31, 27, 1878, 33, 4501, 1484, 566, 8963, 676, 4132, 3857, 1244, 8964, 4573, 4578, 2] */;
|