Files
discord-decomp/sources/modules/verification/native/components/ConfirmEmailChangeStart.tsx
T
2026-07-27 16:20:00 +03:00

379 lines
13 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] */
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});
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.View;
const env0_7 = value.Image;
const env0_8 = value.ScrollView;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).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%'}});
(require(2) /* metro dependency 2 */).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 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const binding = env0_5;
const [property, env0_2] = env0_4(binding.useState(false), 2);
const value6 = binding.useCallback(env0_3(_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={importDefault(8964) /* metro dependency 8964 */} />];
const Text = (require(4573) /* metro dependency 4573: Text */).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 = (require(4578) /* metro dependency 4578: ButtonNative */).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 object2;
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 {
object2 = {};
} catch (error) {
break exceptionLanding53;
}
try {
object2.key = 'CONFIRM_EMAIL_ERROR';
} catch (error) {
break exceptionLanding53;
}
try {
object2.content = value13;
} catch (error) {
break exceptionLanding53;
}
try {
Reflect.apply(open, value15, [object2]);
} 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 = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
style={styles.body}
variant="text-sm/medium"
color="text-default"
key={a1}
>
{a0}
</Text>
);
}