Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,58 @@
/* Metro module 8963; source: modules/verification/ChangeEmailActionCreators.tsx; dependencies: [5, 661, 5046, 480, 2] */
function _fun69882(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9148:6, offset: 0x01ce6d43, size: 164 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 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/ChangeEmailActionCreators.tsx');
exports.sendConfirmationCode = sendConfirmationCode;
exports.confirmEmailChange = function() {
return _confirmEmailChange.apply(this, arguments);
};
}
function _confirmEmailChange() { // fn#69883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9148:126, offset: 0x01ce6de7, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun69885).apply(this, arguments);
}
function sendConfirmationCode() { // fn#69886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9148:521, offset: 0x01ce6eb5, size: 121 bytes, params: 1, frame: 17
const value = a0;
const r5 = value !== undefined ? value : false;
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
const put = defaultImport.put;
const object2 = {};
const USER_EMAIL = Endpoints.USER_EMAIL;
object2.url = USER_EMAIL;
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames;
const USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE = NetworkActionNames.USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE;
object2.trackedActionData = {event: USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE, properties: {is_resend: r5}};
object2.rejectWithError = false;
return Reflect.apply(put, defaultImport, [object2]);
}
function* _fun69885(a0) { // fn#69885, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9148:187, offset: 0x01ce6e24, size: 145 bytes, params: 2, frame: 17
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_1;
const binding2 = env2_2;
const value3 = binding(binding2[2]);
const post = value3.post;
const object2 = {};
const USER_EMAIL_VERIFY_CODE = env2_4.USER_EMAIL_VERIFY_CODE;
object2.url = USER_EMAIL_VERIFY_CODE;
object2.body = {code: a0};
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
const USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE = NetworkActionNames.USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE;
object2.trackedActionData = {event: USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE};
object2.rejectWithError = false;
yield Reflect.apply(post, value3, [object2]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
@@ -0,0 +1,65 @@
/* Metro module 8955; source: modules/verification/ChangeEmailStore.tsx; dependencies: [629, 690, 2] */
function _fun69830(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:6, offset: 0x01ce4c96, size: 233 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = setChangeEmailError;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = {'errors': null, 'emailToken': null};
let value = require(629) /* metro dependency 629 */;
value = value.create(_fun69834);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/ChangeEmailStore.tsx');
exports.ChangeEmailFields = {EMAIL: 'email', EMAIL_TOKEN: 'email_token', PASSWORD: 'password'};
exports.useChangeEmailStore = value;
exports.setChangeEmailError = closure;
exports.useChangeEmailError = useChangeEmailError;
exports.setEmailToken = setEmailToken;
exports.resetChangeEmailStore = resetChangeEmailStore;
}
function setChangeEmailError(a0, a1) { // fn#69831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:252, offset: 0x01ce4d7f, size: 61 bytes, params: 3, frame: 12
const env0_0 = a0;
const env0_1 = a1;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun69832);
}
function useChangeEmailError(a0) { // fn#69835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:547, offset: 0x01ce4e04, size: 51 bytes, params: 2, frame: 12
const env0_0 = a0;
return [env0_3(_fun69836), _fun69837];
}
function setEmailToken(a0) { // fn#69838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:686, offset: 0x01ce4e73, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun69839);
}
function resetChangeEmailStore() { // fn#69840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:792, offset: 0x01ce4ecb, size: 47 bytes, params: 1, frame: 12
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun69841);
}
function _fun69832() { // fn#69832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:308, offset: 0x01ce4dbc, size: 29 bytes, params: 1, frame: 11
return env1_3.setState(_fun69833);
}
function _fun69836({errors}) { // fn#69836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:589, offset: 0x01ce4e37, size: 33 bytes, params: 2, frame: 3
return errors?.[env0_0];
}
function _fun69837(a0) { // fn#69837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:640, offset: 0x01ce4e58, size: 27 bytes, params: 2, frame: 13
setChangeEmailError(env0_0, a0);
}
function _fun69839() { // fn#69839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:734, offset: 0x01ce4ea9, size: 34 bytes, params: 1, frame: 12
return env1_3.setState({emailToken: env0_0});
}
function _fun69841() { // fn#69841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:847, offset: 0x01ce4efa, size: 27 bytes, params: 1, frame: 13
return env1_3.setState(env1_2, true);
}
function _fun69833({errors}) { // fn#69833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9140:324, offset: 0x01ce4dd9, size: 43 bytes, params: 2, frame: 13
const object = {};
copyDataProperties(object, errors, undefined);
object[env1_0] = require;
return {errors: object};
}
@@ -0,0 +1,32 @@
/* Metro module 8958; source: modules/verification/ChangeEmailUtils.tsx; dependencies: [8957, 1244, 2] */
function _fun69850(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9143:6, offset: 0x01ce55ff, size: 191 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const ChangeEmailReasons = (require(8957) /* metro dependency 8957: VerificationConstants */).ChangeEmailReasons;
object2 = {};
const DISCORD_EMPLOYEE_ASKED_ME_TO = ChangeEmailReasons.DISCORD_EMPLOYEE_ASKED_ME_TO;
object2[DISCORD_EMPLOYEE_ASKED_ME_TO] = function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t.naBTFO);
};
const SOMEONE_ASKED_ME_TO = ChangeEmailReasons.SOMEONE_ASKED_ME_TO;
object2[SOMEONE_ASKED_ME_TO] = function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t.LQ0RUP);
};
const NEW_EMAIL = ChangeEmailReasons.NEW_EMAIL;
object2[NEW_EMAIL] = function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t.oOqQjw);
};
const SOMETHING_ELSE = ChangeEmailReasons.SOMETHING_ELSE;
object2[SOMETHING_ELSE] = function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t.p38n1b);
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/ChangeEmailUtils.tsx');
exports.getChangeEmailReasonDisplayText = getChangeEmailReasonDisplayText;
}
function getChangeEmailReasonDisplayText(a0) { // fn#69855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9143:496, offset: 0x01ce57be, size: 20 bytes, params: 2, frame: 9
return env0_2[a0]();
}
@@ -0,0 +1,37 @@
/* Metro module 8957; source: modules/verification/VerificationConstants.tsx; dependencies: [2] */
function _fun69849(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9142:6, offset: 0x01ce54b1, size: 334 bytes, params: 8, frame: 18
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {DISCORD_EMPLOYEE_ASKED_ME_TO: 0};
object2[0] = 'DISCORD_EMPLOYEE_ASKED_ME_TO';
object2.SOMEONE_ASKED_ME_TO = 1;
object2[1] = 'SOMEONE_ASKED_ME_TO';
object2.NEW_EMAIL = 2;
object2[2] = 'NEW_EMAIL';
object2.SOMETHING_ELSE = 3;
object2[3] = 'SOMETHING_ELSE';
let DISCORD_EMPLOYEE_ASKED_ME_TO = object2.DISCORD_EMPLOYEE_ASKED_ME_TO;
const items2 = [DISCORD_EMPLOYEE_ASKED_ME_TO];
let SOMEONE_ASKED_ME_TO = object2.SOMEONE_ASKED_ME_TO;
items2[1] = SOMEONE_ASKED_ME_TO;
const NEW_EMAIL = object2.NEW_EMAIL;
items2[2] = NEW_EMAIL;
const SOMETHING_ELSE = object2.SOMETHING_ELSE;
items2[3] = SOMETHING_ELSE;
const Set = global.Set;
DISCORD_EMPLOYEE_ASKED_ME_TO = object2.DISCORD_EMPLOYEE_ASKED_ME_TO;
SOMEONE_ASKED_ME_TO = object2.SOMEONE_ASKED_ME_TO;
const set = new Set([DISCORD_EMPLOYEE_ASKED_ME_TO, SOMEONE_ASKED_ME_TO]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/VerificationConstants.tsx');
exports.ChangeEmailReasons = object2;
exports.CHANGE_EMAIL_REASONS_ORDER = items2;
exports.SUSPICIOUS_CHANGE_EMAIL_REASONS = set;
exports.COMMON_SCAMS_EDUCATION_HC_ARTICLE = 'https://discord.com/safety/understanding-and-avoiding-common-scams';
exports.FREE_TEXT_RESPONSE_MAX_LENGTH = 1024;
exports.VERIFICATION_LAYER_KEY = 'verification';
exports.AGREEMENTS_MODAL_KEY = 'AGREEMENTS_MODAL_KEY';
exports.EMAIL_VERIFICATION_MODAL_KEY = 'Email Verification';
exports.PHONE_THEN_EMAIL_INTERSTITIAL_MODAL_KEY = 'PHONE_THEN_EMAIL_INTERSTITIAL_MODAL_KEY';
}
@@ -0,0 +1,101 @@
/* Metro module 8961; source: modules/verification/VerificationUtils.tsx; dependencies: [661, 1244, 22, 2] */
function _fun69869(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9146:6, offset: 0x01ce6362, size: 454 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const {UserRequiredActions, VerificationTypes} = require(661) /* metro dependency 661: Constants */;
const CAPTCHA = VerificationTypes.CAPTCHA;
const EMAIL = VerificationTypes.EMAIL;
const PHONE = VerificationTypes.PHONE;
const REVERIFY_EMAIL = VerificationTypes.REVERIFY_EMAIL;
const REVERIFY_PHONE = VerificationTypes.REVERIFY_PHONE;
object2 = {};
const REQUIRE_VERIFIED_EMAIL = UserRequiredActions.REQUIRE_VERIFIED_EMAIL;
object2[REQUIRE_VERIFIED_EMAIL] = [EMAIL];
const REQUIRE_VERIFIED_PHONE = UserRequiredActions.REQUIRE_VERIFIED_PHONE;
object2[REQUIRE_VERIFIED_PHONE] = [PHONE];
const REQUIRE_REVERIFIED_EMAIL = UserRequiredActions.REQUIRE_REVERIFIED_EMAIL;
object2[REQUIRE_REVERIFIED_EMAIL] = [REVERIFY_EMAIL];
const REQUIRE_REVERIFIED_PHONE = UserRequiredActions.REQUIRE_REVERIFIED_PHONE;
object2[REQUIRE_REVERIFIED_PHONE] = [REVERIFY_PHONE];
const REQUIRE_VERIFIED_EMAIL_OR_VERIFIED_PHONE = UserRequiredActions.REQUIRE_VERIFIED_EMAIL_OR_VERIFIED_PHONE;
object2[REQUIRE_VERIFIED_EMAIL_OR_VERIFIED_PHONE] = [EMAIL, PHONE];
const REQUIRE_REVERIFIED_EMAIL_OR_VERIFIED_PHONE = UserRequiredActions.REQUIRE_REVERIFIED_EMAIL_OR_VERIFIED_PHONE;
object2[REQUIRE_REVERIFIED_EMAIL_OR_VERIFIED_PHONE] = [PHONE, REVERIFY_EMAIL];
const REQUIRE_VERIFIED_EMAIL_OR_REVERIFIED_PHONE = UserRequiredActions.REQUIRE_VERIFIED_EMAIL_OR_REVERIFIED_PHONE;
object2[REQUIRE_VERIFIED_EMAIL_OR_REVERIFIED_PHONE] = [EMAIL, REVERIFY_PHONE];
const REQUIRE_REVERIFIED_EMAIL_OR_REVERIFIED_PHONE = UserRequiredActions.REQUIRE_REVERIFIED_EMAIL_OR_REVERIFIED_PHONE;
object2[REQUIRE_REVERIFIED_EMAIL_OR_REVERIFIED_PHONE] = [REVERIFY_EMAIL, REVERIFY_PHONE];
const REQUIRE_CAPTCHA = UserRequiredActions.REQUIRE_CAPTCHA;
object2[REQUIRE_CAPTCHA] = [CAPTCHA];
const AGREEMENTS = UserRequiredActions.AGREEMENTS;
object2[AGREEMENTS] = [];
const REQUIRE_SAFETY_FLOWS = UserRequiredActions.REQUIRE_SAFETY_FLOWS;
object2[REQUIRE_SAFETY_FLOWS] = [];
object2 = {isPhoneReverification: isPhoneReverification, isEmailReverification: isEmailReverification,
isFullScreenVerification: isFullScreenVerification, getVerificationTypes: getVerificationTypes,
getButtonTitle: getButtonTitle, areVerificationTypesEqual: areVerificationTypesEqual};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/VerificationUtils.tsx');
exports.default = object2;
}
function isPhoneReverification(a0, a1) { // fn#69870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9146:662, offset: 0x01ce6528, size: 84 bytes, params: 3, frame: 12
var r1;
let r0 = a0 !== undefined && a0.isPhoneVerified();
if (r0) {
r1 = a1 === UserRequiredActions.REQUIRE_REVERIFIED_PHONE || a1 === UserRequiredActions.REQUIRE_REVERIFIED_EMAIL_OR_REVERIFIED_PHONE;
r1 = !r1 ? a1 === UserRequiredActions.REQUIRE_VERIFIED_EMAIL_OR_REVERIFIED_PHONE : r1;
r0 = r1;
}
return r0;
}
function isEmailReverification(a0) { // fn#69871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9146:859, offset: 0x01ce657c, size: 56 bytes, params: 2, frame: 4
const REQUIRE_REVERIFIED_EMAIL = UserRequiredActions.REQUIRE_REVERIFIED_EMAIL;
let r0 = a0 === REQUIRE_REVERIFIED_EMAIL || a0 === UserRequiredActions.REQUIRE_REVERIFIED_EMAIL_OR_REVERIFIED_PHONE;
r0 = !r0 ? a0 === UserRequiredActions.REQUIRE_REVERIFIED_EMAIL_OR_VERIFIED_PHONE : r0;
return r0;
}
function isFullScreenVerification(a0) { // fn#69872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9146:995, offset: 0x01ce65b4, size: 124 bytes, params: 2, frame: 13
const REQUIRE_CAPTCHA = UserRequiredActions.REQUIRE_CAPTCHA;
let r0 = a0 === REQUIRE_CAPTCHA || a0 === UserRequiredActions.REQUIRE_VERIFIED_EMAIL;
r0 = !r0 ? a0 === UserRequiredActions.REQUIRE_VERIFIED_PHONE : r0;
r0 = !r0 ? a0 === UserRequiredActions.REQUIRE_REVERIFIED_PHONE : r0;
r0 = !r0 ? a0 === UserRequiredActions.REQUIRE_REVERIFIED_EMAIL_OR_REVERIFIED_PHONE : r0;
r0 = !r0 ? a0 === UserRequiredActions.REQUIRE_VERIFIED_EMAIL_OR_REVERIFIED_PHONE : r0;
r0 = !r0 ? this.isEmailReverification(a0) : r0;
return r0;
}
function getVerificationTypes(a0) { // fn#69873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9146:1299, offset: 0x01ce6630, size: 39 bytes, params: 2, frame: 3
return a0 == null || typeof a0 === 'symbol' ? [] : env0_5[a0];
}
function getButtonTitle(a0) { // fn#69874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9146:1338, offset: 0x01ce6657, size: 376 bytes, params: 2, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const EMAIL = VerificationTypes.EMAIL;
if (EMAIL === a0) {
return intl.string(t['1MPz27']);
}
const PHONE = VerificationTypes.PHONE;
if (PHONE === a0) {
return intl.string(t.mjJeco);
}
const REVERIFY_EMAIL = VerificationTypes.REVERIFY_EMAIL;
if (REVERIFY_EMAIL === a0) {
return intl.string(t.nmdPFX);
}
const REVERIFY_PHONE = VerificationTypes.REVERIFY_PHONE;
if (REVERIFY_PHONE === a0) {
return intl.string(t.of2125);
}
return intl.string(t['oF6+Ww']);
}
function areVerificationTypesEqual(a0, a1) { // fn#69875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9146:1703, offset: 0x01ce67cf, size: 45 bytes, params: 3, frame: 13
return (importDefault(22) /* metro dependency 22 */).isEqual(a0, a1);
}
@@ -0,0 +1,90 @@
/* Metro module 9008; source: modules/verification/native/ChangeEmailUtils.tsx; dependencies: [5, 8955, 7620, 9009, 676, 2] */
function _fun70086(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9193:6, offset: 0x01cee036, size: 190 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const changeEmailStoreModule = require(8955) /* metro dependency 8955: ChangeEmailStore */;
const env0_4 = changeEmailStoreModule.setChangeEmailError;
const env0_5 = changeEmailStoreModule.ChangeEmailFields;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/ChangeEmailUtils.tsx');
exports.saveEmail = function() {
return _saveEmail.apply(this, arguments);
};
exports.finishChangeEmailFlow = function(a0, a1) {
var CHANGE_EMAIL_COMPLETE = require(dependencyMap[4]).VerificationModalScenes.CHANGE_EMAIL_COMPLETE;
a0.replace(CHANGE_EMAIL_COMPLETE, {email: a1});
};
exports.finishVerifyEmailFlow = finishVerifyEmailFlow;
}
function _saveEmail() { // fn#70087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9193:162, offset: 0x01cee0f4, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun70089).apply(this, arguments);
}
function finishVerifyEmailFlow(a0, a1) { // fn#70092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9193:1239, offset: 0x01cee39c, size: 137 bytes, params: 3, frame: 16
const getState = a0.getState;
const length = Reflect.apply(getState, a0, []).routes.length;
const VerificationModalScenes = (require(676) /* metro dependency 676: ConstantsIOS */).VerificationModalScenes;
const RESEND_EMAIL = VerificationModalScenes.RESEND_EMAIL;
const value2 = a1(RESEND_EMAIL);
if (value2 !== -1) {
a0.pop(length - value2);
} else {
a0.replace(VerificationModalScenes.RESEND_EMAIL);
}
}
function* _fun70089(a0, a1, a2) { // fn#70089, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9193:205, offset: 0x01cee131, size: 556 bytes, params: 4, frame: 22
var length;
var value8;
var value9;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value3 = undefined;
const value4 = binding(env2_2[2]);
yield value4.saveAccountChanges(a0, {close: false});
const value5 = undefined;
if (true) {
if (value5.ok) {
return value5;
}
var body = value5.body;
var username = body == null ? value3 : body.username;
if (username != null) {
env2_0(env2_2[3]).showInvalidUsernameToast();
}
body = value5.body;
if ((body == null ? value3 : body.email) != null) {
binding = env2_4;
binding(env2_5.EMAIL, value5.body.email[0]);
length = a1.getState().routes.length;
binding = env2_0;
value9 = a2(binding(env2_2[4]).VerificationModalScenes.ENTER_EMAIL);
if (value9 !== -1) {
a1.pop(length - value9 - 1);
} else {
a1.replace(env2_0(env2_2[4]).VerificationModalScenes.ENTER_EMAIL);
}
return null;
}
body = value5.body;
if ((body == null ? value3 : body.email_token) != null) {
binding = env2_4;
binding(env2_5.EMAIL_TOKEN, value5.body.email_token[0]);
length = a1.getState().routes.length;
binding = env2_0;
value8 = a2(binding(env2_2[4]).VerificationModalScenes.CONFIRM_EMAIL_CHANGE_CODE);
if (value8 !== -1) {
a1.pop(length - value8 - 1);
} else {
a1.replace(env2_0(env2_2[4]).VerificationModalScenes.CONFIRM_EMAIL_CHANGE_CODE);
}
}
}
return value5;
}
@@ -0,0 +1,458 @@
/* Metro module 9015; source: modules/verification/native/components/AddPhone.tsx; dependencies: [5, 57, 31, 27, 8972, 1373, 1878, 661, 482, 33, 4501, 697, 566, 8961, 9016, 4131, 4573, 1244, 9017, 8993, 5080, 9018, 1962, 4578, 4496, 9023, 2] */
function _fun70131(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:6, offset: 0x01cefc01, size: 460 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(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.ScrollView;
const phoneStore = importDefault(8972) /* metro dependency 8972: PhoneStore */;
const userRequiredActionStore = importDefault(1373) /* metro dependency 1373: UserRequiredActionStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_11 = (require(661) /* metro dependency 661: Constants */).UserFlags;
const env0_12 = (require(482) /* metro dependency 482: Constants */).NOOP_NULL;
value = require(33) /* metro dependency 33 */;
const env0_13 = value.jsx;
const env0_14 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.background = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
object2.container = {'padding': 16, 'flex': 1};
object2.title = {textAlign: 'center'};
object2.input = {marginTop: 24};
const object3 = {};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.redesignInput = object3;
object2.button = {marginTop: 8};
const env0_15 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/AddPhone.tsx');
exports.default = AddPhone;
}
function AddPhone({header, onComplete, onDeletePhone, reason, style}) { // fn#70132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:601, offset: 0x01cefdcd, size: 1496 bytes, params: 2, frame: 40
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const closure = function() {
return AddPhone_handleSubmit.apply(this, arguments);
};
const styles = useStyles();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const action = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserRequiredActionStore],
function() {
return UserRequiredActionStore.getAction();
});
const phone = currentUser?.phone;
const isPhoneReverification2 = (importDefault(8961) /* metro dependency 8961: VerificationUtils */).isPhoneReverification(currentUser,
action);
const env0_4 = isPhoneReverification2;
const r9 = onDeletePhone != null && phone != null && currentUser?.email != null && !isPhoneReverification2;
const countryCode = (require(566) /* metro dependency 566: flux */).useStateFromStores([PhoneStore], function() {
return PhoneStore.getCountryCode();
});
const value9 = env0_4(countryCode.code.split(' '), 2);
const property = value9[0];
const property2 = value9[1];
const env0_5 = property2;
let binding = env0_5;
let useState = binding.useState;
const value10 = '';
const value12 = env0_4(Reflect.apply(useState, binding, [property ?? value10]), 2);
const property3 = value12[0];
const env0_7 = value12[1];
const r7 = phone != null ? phone.replace(property3, value10) : property2 ?? value10;
binding = env0_5;
const value14 = binding.useState(r7);
const binding2 = env0_4;
const value15 = binding2(value14, 2);
const property4 = value15[0];
const env0_9 = value15[1];
useState = binding.useState;
const value16 = binding2(Reflect.apply(useState, binding, [null]), 2);
const property5 = value16[0];
const env0_10 = value16[1];
const env0_11 = binding.useRef(true);
useState = binding.useState;
const value17 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property6 = value17[0];
const env0_12 = value17[1];
binding.useEffect(_fun70140, [property2]);
const items3 = [styles.background, style];
const items2 = [header ?? ((Text) => <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{phone == null || isPhoneReverification2 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hY8QTR) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WO0zBE)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
const FormPhoneOrEmail = importDefault(9017) /* metro dependency 9017: FormPhoneOrEmail */;
const formPhoneOrEmailProps = {style: styles.input, textInputStyle: styles.redesignInput,
label: phone == null || isPhoneReverification2 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['64bX0M']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.K6R0UP),
alpha2: countryCode.alpha2, countryCode: property, value: property4, onChangeText: onChangeText};
const PhoneOrEmailSelectorForceMode = (require(8993) /* metro dependency 8993: PhoneOrEmailUtils */).PhoneOrEmailSelectorForceMode;
const PHONE = PhoneOrEmailSelectorForceMode.PHONE;
formPhoneOrEmailProps.forceMode = PHONE;
formPhoneOrEmailProps.returnKeyType = 'done';
formPhoneOrEmailProps.onSubmitEditing = closure;
formPhoneOrEmailProps.error = property5;
formPhoneOrEmailProps.onPressCountrySelector = onPressCountrySelector;
formPhoneOrEmailProps.autoFocus = true;
items2[1] = <FormPhoneOrEmail {...formPhoneOrEmailProps} />;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const r19 = r9 ? 'md' : 'lg';
const string = intl.string;
const PDTjLN = (require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN;
items2[2] = <View style={styles.button}><Button variant="primary" size={r19} text={Reflect.apply(string, intl,
[PDTjLN])} onPress={closure} loading={property6} /></View>;
items2[3] = r9 ? <View style={styles.button}><Button variant="secondary" size="md" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kYvzoQ)} onPress={onPress_70143} /></View> : null;
return (
<ScrollView
style={items3}
keyboardShouldPersistTaps="handled"
alwaysBounceVertical={false}
>
<View style={styles.container}>
{items2}
</View>
</ScrollView>
);
}
function AddPhone_handleSubmit() { // fn#70134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:1315, owner: AddPhone._handleSubmit, offset: 0x01cf03a5, size: 53 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return env1_3(_fun70136).apply(this, arguments);
}
function _fun70140() { // fn#70140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:1611, offset: 0x01cf052e, size: 65 bytes, params: 1, frame: 12
if (env0_11.current) {
env0_11.current = false;
} else {
env0_9(env0_5 ?? '');
}
}
function AddPhoneOnChangeText(a0, a1) { // fn#70141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:2237, owner: AddPhone.onChangeText, offset: 0x01cf056f, size: 31 bytes, params: 3, frame: 12
env0_9(a0);
env0_7(a1);
}
function AddPhoneOnPressCountrySelector() { // fn#70142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:2392, owner: AddPhone.onPressCountrySelector, offset: 0x01cf058e, size: 72 bytes, params: 1, frame: 15
const value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[20]);
return defaultImport.pushLazy(require(dependencyMap[22])(dependencyMap[21], dependencyMap.paths));
}
function AddPhoneOnPress_70143() { // fn#70143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:2750, owner: AddPhone.onPress, offset: 0x01cf05d6, size: 117 bytes, params: 1, frame: 14
var environment;
var hasFlag;
var value2;
var value;
let currentUserBinding = currentUser;
if (currentUserBinding != null) {
currentUserBinding = currentUser;
hasFlag = currentUserBinding.hasFlag;
value2 = environment.__proto__;
if (Reflect.apply(hasFlag, currentUserBinding, [UserFlags.MFA_SMS])) {
value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
value.openLazy({importer: importer_70144});
} else if (onDeletePhone != null) {
onDeletePhone();
}
}
}
function* _fun70136() { // fn#70136, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:1364, offset: 0x01cf03e5, size: 291 bytes, params: 1, frame: 17
var value;
var value2;
var HermesInternal;
var concat;
var value3;
var binding;
var value4;
var binding2;
var binding3;
var property;
var value5;
var beginAddPhone;
var value6;
var value7;
var value8;
var beginReverifyPhone;
var value9;
var value10;
var value11;
var error;
var value12;
var binding4;
var value13;
var APIError;
var prototype;
var aPIError;
var value15;
var getAnyErrorMessage;
var value16;
exceptionLanding47: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__.__proto__;
HermesInternal = global.HermesInternal;
concat = HermesInternal.concat;
value3 = '' + View + PhoneStore;
NOOP_NULL(true);
reducibleJoin3: while (true) {
reduciblePort46: while (true) {
exceptionLanding29: while (true) {
try {
try {
binding = env2_4;
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
break reducibleJoin3;
}
value12 = environment.__proto__.__proto__.__proto__;
try {
binding = env3_0;
} catch (error) {
break exceptionLanding47;
}
try {
binding4 = env3_2;
} catch (error) {
break exceptionLanding47;
}
try {
property = binding4[15];
} catch (error) {
break exceptionLanding47;
}
try {
value13 = binding(property);
} catch (error) {
break exceptionLanding47;
}
try {
APIError = value13.APIError;
} catch (error) {
break exceptionLanding47;
}
try {
prototype = APIError.prototype;
} catch (error) {
break exceptionLanding47;
}
try {
} catch (error) {
break exceptionLanding47;
}
try {
aPIError = new APIError();
} catch (error) {
break exceptionLanding47;
}
try {
value15 = aPIError instanceof Object ? aPIError : undefined;
} catch (error) {
break exceptionLanding47;
}
try {
} catch (error) {
break exceptionLanding47;
}
try {
getAnyErrorMessage = value15.getAnyErrorMessage;
} catch (error) {
break exceptionLanding47;
}
try {
value16 = Reflect.apply(getAnyErrorMessage, value15, []);
} catch (error) {
break exceptionLanding47;
}
try {
UserStore(value16);
} catch (error) {
break exceptionLanding47;
}
break reduciblePort46;
}
NOOP_NULL(false);
return undefined;
}
value4 = environment.__proto__.__proto__.__proto__;
try {
try {
binding2 = env3_1;
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
try {
try {
binding3 = env3_2;
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
try {
try {
property = binding3[14];
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
try {
try {
value5 = binding2(property);
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
if (binding) {
try {
try {
beginReverifyPhone = value5.beginReverifyPhone;
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
try {
try {
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
try {
try {
value9 = Reflect.apply(beginReverifyPhone, value5, [value3, dependencyMap]);
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
yield value9;
try {
try {
value10 = undefined;
value11 = false;
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
reducibleJoin25: while (true) {
if (value11) {
NOOP_NULL(false);
return value10;
}
break reducibleJoin25;
}
} else {
try {
try {
beginAddPhone = value5.beginAddPhone;
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
try {
try {
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
try {
try {
value6 = Reflect.apply(beginAddPhone, value5, [value3, dependencyMap]);
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
yield value6;
try {
try {
value7 = undefined;
value8 = false;
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
reducibleJoin25: while (true) {
if (value8) {
NOOP_NULL(false);
return value7;
}
break reducibleJoin25;
}
}
try {
try {
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
try {
try {
require(value3);
} catch (error) {
break exceptionLanding29;
}
} catch (error) {
break exceptionLanding47;
}
NOOP_NULL(false);
return undefined;
}
NOOP_NULL(false);
throw error;
}
function onPressImporter() { // fn#70144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:2820, owner: AddPhone.onPress.importer, offset: 0x01cf064b, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__.__proto__;
value = require(dependencyMap[22]);
value = value(dependencyMap[25], dependencyMap.paths);
return value.then(function({default: env0_0}) {
return _fun70146;
});
}
function _fun70145({default: env0_0}) { // fn#70145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:2854, offset: 0x01cf068b, size: 23 bytes, params: 2, frame: 2
return _fun70146;
}
function _fun70146(a0) { // fn#70146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9200:2869, offset: 0x01cf06a2, size: 68 bytes, params: 2, frame: 16
return ((Component) => <Component {...a0} {...{['onConfirm']: onDeletePhone ?? NOOP_NULL}} />)(env0_0);
}
@@ -0,0 +1,121 @@
/* Metro module 8956; source: modules/verification/native/components/ChangeEmailCollectReasons.tsx; dependencies: [31, 27, 1878, 8957, 661, 33, 4501, 697, 566, 1484, 683, 676, 7988, 7987, 8958, 4573, 1244, 4578, 2] */
function _fun69842(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9141:6, offset: 0x01ce4f15, size: 421 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
const env0_5 = value.ScrollView;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
value = require(8957) /* metro dependency 8957: VerificationConstants */;
const env0_7 = value.CHANGE_EMAIL_REASONS_ORDER;
const env0_8 = value.SUSPICIOUS_CHANGE_EMAIL_REASONS;
const env0_9 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.background = {backgroundColor: BACKGROUND_BASE_LOW};
const object4 = {};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.paddingVertical = PX_12;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object2.container = object4;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.radioGroup = {paddingTop: PX_16, paddingBottom: 38};
object2.title = {textAlign: 'center'};
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/ChangeEmailCollectReasons.tsx');
exports.default = ChangeEmailCollectReasons;
}
function ChangeEmailCollectReasons({changeEmailReason, setChangeEmailReason}) { // fn#69843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9141:656, offset: 0x01ce50ba, size: 539 bytes, params: 2, frame: 30
var r0;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var items2;
var Button;
var value;
const styles = useStyles();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_3;
if (currentUser == null) {
r0 = null;
} else {
var scrollViewBindingProps = {'keyboardShouldPersistTaps': 'handled', 'alwaysBounceVertical': false,
style: styles.background};
var viewBindingProps = {style: styles.container};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{intl.string(t['41NIIh'])}</Text>;
items2 = [value];
items2[1] = <View style={styles.radioGroup}>{binding.useMemo(_fun69847, [changeEmailReason,
binding.useCallback(function(a0) {
var defaultImport = importDefault(dependencyMap[10]);
var USER_ACCOUNT_EMAIL_CHANGE_REASON_SELECTED = AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_REASON_SELECTED;
defaultImport.track(USER_ACCOUNT_EMAIL_CHANGE_REASON_SELECTED, {change_email_reason_enum: a0});
setChangeEmailReason(a0);
}, [setChangeEmailReason])])}</View>;
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <Button size="md" variant="primary" onPress={binding.useCallback(_fun69845, [value2,
changeEmailReason])} text={intl.string(t.XiOHRX)} disabled={changeEmailReason == null} />;
value = <ScrollView {...scrollViewBindingProps}><View {...viewBindingProps}>{items2}</View></ScrollView>;
r0 = value;
}
return r0;
}
function _fun69845() { // fn#69845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9141:849, offset: 0x01ce52d5, size: 183 bytes, params: 1, frame: 18
var binding;
const VerificationModalScenes = (require(676) /* metro dependency 676: ConstantsIOS */).VerificationModalScenes;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const USER_ACCOUNT_EMAIL_CHANGE_REASON_CONTINUE = AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_REASON_CONTINUE;
const changeEmailReasonBinding = changeEmailReason;
Reflect.apply(track, defaultImport, [USER_ACCOUNT_EMAIL_CHANGE_REASON_CONTINUE,
{change_email_reason_enum: changeEmailReasonBinding}]);
if (changeEmailReasonBinding == null) {
binding = env0_2;
binding.push(VerificationModalScenes.ENTER_EMAIL);
} else if (SUSPICIOUS_CHANGE_EMAIL_REASONS.has(changeEmailReason)) {
binding = env0_2;
binding.push(VerificationModalScenes.CHANGE_EMAIL_WARNING);
} else {
binding = env0_2;
binding.push(VerificationModalScenes.ENTER_EMAIL);
}
}
function _fun69847() { // fn#69847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9141:1220, offset: 0x01ce53d2, size: 116 bytes, params: 1, frame: 17
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
return (
<TableRadioGroup
value={changeEmailReason ?? ''}
onChange={env0_3}
hasIcons={false}
>
{CHANGE_EMAIL_REASONS_ORDER.map(_fun69848)}
</TableRadioGroup>
);
}
function _fun69848(a0, a1) { // fn#69848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9141:1310, offset: 0x01ce5446, size: 107 bytes, params: 3, frame: 18
const value = environment.__proto__.__proto__;
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
return (
<TableRadioRow
label={(require(8958) /* metro dependency 8958: ChangeEmailUtils */).getChangeEmailReasonDisplayText(a0)}
value={a0}
key={'formrow-' + a1}
/>
);
}
@@ -0,0 +1,70 @@
/* Metro module 9012; source: modules/verification/native/components/ChangeEmailComplete.tsx; dependencies: [31, 27, 8955, 33, 4501, 697, 8953, 8964, 4573, 1244, 4578, 2] */
function _fun70110(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9197:6, offset: 0x01cef180, size: 497 bytes, params: 8, frame: 24
var object3;
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.View;
const env0_4 = value.Image;
const env0_5 = value.ScrollView;
const env0_6 = (require(8955) /* metro dependency 8955: ChangeEmailStore */).resetChangeEmailStore;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {'flexGrow': 2, 'paddingHorizontal': null, 'paddingBottom': null, 'gap': 20, 'alignItems': 'center'};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingBottom = PX_16;
object3.contentContainer = object4;
object3.image = {'height': 190, 'width': 220, 'resizeMode': 'contain'};
object3.title = {textAlign: 'center'};
object3.body = {textAlign: 'center'};
object3.bodyInner = {gap: 2};
const object5 = {'backgroundColor': null, 'width': '100%', 'padding': 12, 'borderWidth': 1, 'borderStyle': 'solid'};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object5.borderColor = BORDER_SUBTLE;
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
copyDataProperties(object5, SHADOW_LOW, undefined);
object3.tooltip = object5;
const env0_9 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/ChangeEmailComplete.tsx');
exports.default = ChangeEmailComplete;
}
function ChangeEmailComplete({email}) { // fn#70112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9197:852, offset: 0x01cef371, size: 563 bytes, params: 2, frame: 31
const styles = useStyles();
const items2 = [<Image style={styles.image} source={importDefault(8964) /* metro dependency 8964 */} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const text = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t['8O+nF7']])}</Text>;
const format = intl.format;
const Zvx0O3 = (require(1244) /* metro dependency 1244: indexNative */).t.Zvx0O3;
items2[1] = <View style={styles.bodyInner}>{text}<Text style={styles.body} variant="text-sm/medium" color="text-default">{Reflect.apply(format,
intl, [Zvx0O3, {email: email}])}</Text></View>;
items2[2] = <Text style={styles.tooltip} variant="text-sm/normal">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yb7itQ)}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const BddRzS = (require(1244) /* metro dependency 1244: indexNative */).t.BddRzS;
items2[3] = <Button text={Reflect.apply(string, intl, [BddRzS])} onPress={handlePress} grow />;
return (
<ScrollView
keyboardShouldPersistTaps="handled"
alwaysBounceVertical={false}
contentContainerStyle={styles.contentContainer}
>
{items2}
</ScrollView>
);
}
@@ -0,0 +1,103 @@
/* Metro module 8959; source: modules/verification/native/components/ChangeEmailWarning.tsx; dependencies: [31, 27, 1878, 8957, 661, 33, 4501, 697, 1484, 566, 683, 676, 5473, 4573, 1244, 6766, 4578, 8953, 2] */
function _fun69856(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9144:6, offset: 0x01ce57d2, size: 443 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
const env0_5 = value.ScrollView;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_7 = (require(8957) /* metro dependency 8957: VerificationConstants */).COMMON_SCAMS_EDUCATION_HC_ARTICLE;
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {'flex': 1, 'padding': null, 'alignItems': 'center', 'justifyContent': 'center', padding: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.title = {marginTop: PX_16};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.body = {marginTop: PX_8, textAlign: 'center'};
const object3 = {flexDirection: 'row'};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.gap = PX_8;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.marginTop = PX_16;
object2.buttonContainer = object3;
const env0_11 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/ChangeEmailWarning.tsx');
exports.default = ChangeEmailWarning;
}
function ChangeEmailWarning({changeEmailReason}) { // fn#69857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9144:653, offset: 0x01ce598d, size: 775 bytes, params: 2, frame: 31
var r0;
var items2;
var Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var TextWithIOSLinkWorkaround;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
var items3;
var value;
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();
});
if (currentUser == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.container};
items2 = [((TrafficConeSpotIllustration) => <TrafficConeSpotIllustration />)((require(5473) /* metro dependency 5473: native */).TrafficConeSpotIllustration)];
Text = (require(4573) /* metro dependency 4573: Text */).Text;
string = intl.string;
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [t.hhR7gX])}</Text>;
TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
var textWithIOSLinkWorkaroundProps = {'style': null, 'accessibilityRole': 'header', 'variant': 'text-md/normal',
'color': 'mobile-text-heading-primary', style: styles.body};
value = intl.format(t.rqWXUf, {hcArticle: COMMON_SCAMS_EDUCATION_HC_ARTICLE});
string = intl.string;
items2[2] = <TextWithIOSLinkWorkaround {...textWithIOSLinkWorkaroundProps}>{[value, '\n\n',
Reflect.apply(string,
intl, [t['3LW10C']])]}</TextWithIOSLinkWorkaround>;
var viewBindingProps2 = {style: styles.buttonContainer};
string = intl.string;
value = <Button size="md" variant="tertiary" text={Reflect.apply(string, intl,
[t.rwTBFs])} onPress={env0_3.useCallback(_fun69859, [value2, changeEmailReason])} shrink />;
items3 = [value];
string = intl.string;
items3[1] = <Button size="md" variant="primary" text={Reflect.apply(string, intl,
[t['ETE/oC']])} onPress={onPress_69860} shrink />;
items2[3] = <View {...viewBindingProps2}>{items3}</View>;
value = <ScrollView keyboardShouldPersistTaps="handled" alwaysBounceVertical={false}><View {...viewBindingProps}>{items2}</View></ScrollView>;
r0 = value;
}
return r0;
}
function _fun69859() { // fn#69859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9144:816, offset: 0x01ce5c94, size: 104 bytes, params: 1, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const USER_ACCOUNT_EMAIL_CHANGE_WARNING_CONTINUE = AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_WARNING_CONTINUE;
Reflect.apply(track, defaultImport, [USER_ACCOUNT_EMAIL_CHANGE_WARNING_CONTINUE,
{change_email_reason_enum: changeEmailReason}]);
const binding = env0_1;
const push = binding.push;
const VerificationModalScenes = (require(676) /* metro dependency 676: ConstantsIOS */).VerificationModalScenes;
const ENTER_EMAIL = VerificationModalScenes.ENTER_EMAIL;
Reflect.apply(push, binding, [ENTER_EMAIL]);
}
function ChangeEmailWarningOnPress() { // fn#69860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9144:1832, owner: ChangeEmailWarning.onPress, offset: 0x01ce5cfc, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(8953) /* metro dependency 8953: EmailVerificationModalActionCreators */).close();
}
@@ -0,0 +1,65 @@
/* Metro module 8965; source: modules/verification/native/components/ConfirmEmailChangeCode.tsx; dependencies: [5, 31, 8955, 33, 1484, 676, 8966, 8963, 1244, 2] */
function _fun69889(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9150:6, offset: 0x01ce6f74, size: 180 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 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(8955) /* metro dependency 8955: ChangeEmailStore */).setEmailToken;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/ConfirmEmailChangeCode.tsx');
exports.default = ConfirmEmailChangeCode;
}
function ConfirmEmailChangeCode({isChangeEmail}) { // fn#69890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9150:263, offset: 0x01ce7028, size: 263 bytes, params: 2, frame: 19
const value3 = env0_4.useCallback(_fun69891, [isChangeEmail,
(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation()]);
const ConfirmEmailCode = importDefault(8966) /* metro dependency 8966: ConfirmEmailCode */;
const defaultImportProps = {onFormSubmit: _fun69892(), onSuccess: value3, onResend: env0_3(_fun69897)};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
defaultImportProps.headerText = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['2x/2Uo']]);
string = intl.string;
const PDTjLN = (require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN;
defaultImportProps.confirmButtonText = Reflect.apply(string, intl, [PDTjLN]);
return <ConfirmEmailCode {...defaultImportProps} />;
}
function _fun69891(a0) { // fn#69891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9150:361, offset: 0x01ce712f, size: 100 bytes, params: 2, frame: 15
const value = a0;
const setEmailTokenBinding = setEmailToken;
const value3 = null;
setEmailTokenBinding(value3 != value ? value : value3);
const isChangeEmailBinding = isChangeEmail;
const binding = env0_1;
const push = binding.push;
const VerificationModalScenes = (require(676) /* metro dependency 676: ConstantsIOS */).VerificationModalScenes;
if (isChangeEmailBinding) {
Reflect.apply(push, binding, [VerificationModalScenes.CHANGE_EMAIL_COLLECT_REASONS]);
} else {
Reflect.apply(push, binding, [VerificationModalScenes.ENTER_EMAIL]);
}
}
function _fun69892() { // fn#69892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9150:546, offset: 0x01ce7193, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun69894);
return _fun69895;
}
function* _fun69897() { // fn#69897, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9150:702, offset: 0x01ce720e, size: 61 bytes, params: 1, frame: 12
if (true) {
value = environment.__proto__.__proto__;
value = env2_0(env2_2[7]);
yield value.sendConfirmationCode();
}
}
function* _fun69894(a0) { // fn#69894, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9150:566, offset: 0x01ce71c2, size: 65 bytes, params: 2, frame: 12
if (true) {
value = environment.__proto__.__proto__.__proto__;
value = env3_0(env3_2[7]);
yield value.confirmEmailChange(a0);
}
}
@@ -0,0 +1,378 @@
/* 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>
);
}
@@ -0,0 +1,743 @@
/* Metro module 8966; source: modules/verification/native/components/ConfirmEmailCode.tsx; dependencies: [5, 57, 31, 27, 1878, 8955, 33, 4501, 697, 566, 4132, 4573, 1244, 8967, 8971, 3857, 4578, 2] */
function _fun69898(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9151:6, offset: 0x01ce724b, size: 467 bytes, params: 8, frame: 22
var object3;
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.ScrollView;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
value = require(8955) /* metro dependency 8955: ChangeEmailStore */;
const env0_9 = value.useChangeEmailError;
const env0_10 = value.ChangeEmailFields;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object4.backgroundColor = BACKGROUND_BASE_LOW;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.paddingVertical = PX_12;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object3.background = object4;
object3.title = {textAlign: 'center'};
object3.prompt = {'marginTop': 8, 'lineHeight': 18, 'textAlign': 'center'};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.input = {marginTop: PX_24};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.contentContainer = {gap: PX_24};
const env0_13 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/ConfirmEmailCode.tsx');
exports.default = ConfirmEmailCode;
}
function ConfirmEmailCode({onFormSubmit, onSuccess, onResend, headerText, confirmButtonText}) { // fn#69899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9151:686, offset: 0x01ce741e, size: 853 bytes, params: 2, frame: 37
var r0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var FreeFormInputGroup;
var LinkButton;
var value;
const styles = useStyles();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const binding = env0_5;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, ['']);
const binding2 = env0_4;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_3 = property;
const property2 = value3[1];
const EMAIL_TOKEN = ChangeEmailFields.EMAIL_TOKEN;
const value4 = binding2(useChangeEmailError(EMAIL_TOKEN), 2);
const property3 = value4[0];
const property4 = value4[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property5 = value5[0];
var env0_5 = value5[1];
const value7 = binding.useCallback(env0_3(_fun69902), [property, property4, onFormSubmit, onSuccess]);
if (currentUser == null) {
r0 = null;
} else {
var scrollViewBindingProps = {'style': null, 'keyboardShouldPersistTaps': 'handled',
'alwaysBounceVertical': false,
style: styles.background, contentContainerStyle: styles.contentContainer};
items2 = [<Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{headerText}</Text>];
string = intl.string;
items2[1] = <Text style={styles.prompt} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl,
[t.SZJowy])}</Text>;
FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */;
items2[2] = <FreeFormInputGroup style={styles.input} label={intl.string(t['8mZX6M'])} textContentType="emailAddress" keyboardType="email-address" value={property} onChangeText={property2} onSubmitEditing={value7} returnKeyType="done" autoCapitalize="none" error={property3} autoFocus />;
LinkButton = (require(8971) /* metro dependency 8971: Login */).LinkButton;
string = intl.string;
items2[3] = <LinkButton text={Reflect.apply(string, intl,
[t.K0NPQ6])} variant="text-sm/medium" onPress={env0_3(_fun69904)} />;
value = <View>{items2}</View>;
value = <ScrollView {...scrollViewBindingProps}>{value}{((Button) => <Button text={confirmButtonText} onPress={value7} loading={property5} disabled={property === ''} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button)}</ScrollView>;
r0 = value;
}
return r0;
}
function* _fun69902() { // fn#69902, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9151:996, offset: 0x01ce777e, size: 213 bytes, params: 1, frame: 16
var token;
var value;
var value2;
var value3;
var binding;
var moduleValue;
var value4;
var value5;
var value6;
var error;
var value7;
var binding2;
var property;
var value8;
var prototype;
var value10;
var value11;
var getAnyErrorMessage;
var value12;
exceptionLanding41: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = undefined;
value3 = environment.__proto__;
reducibleJoin4: while (true) {
reduciblePort40: while (true) {
exceptionLanding23: while (true) {
try {
try {
binding = env1_4;
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
break reducibleJoin4;
}
value7 = environment.__proto__.__proto__;
try {
binding = env2_1;
} catch (error) {
break exceptionLanding41;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding41;
}
try {
property = binding2[10];
} catch (error) {
break exceptionLanding41;
}
try {
value8 = binding(property);
} catch (error) {
break exceptionLanding41;
}
try {
prototype = value8.prototype;
} catch (error) {
break exceptionLanding41;
}
try {
} catch (error) {
break exceptionLanding41;
}
try {
value10 = new value8();
} catch (error) {
break exceptionLanding41;
}
try {
value11 = value10 instanceof Object ? value10 : undefined;
} catch (error) {
break exceptionLanding41;
}
try {
binding = env1_4;
} catch (error) {
break exceptionLanding41;
}
try {
getAnyErrorMessage = value11.getAnyErrorMessage;
} catch (error) {
break exceptionLanding41;
}
try {
value12 = Reflect.apply(getAnyErrorMessage, value11, []);
} catch (error) {
break exceptionLanding41;
}
try {
binding(value12);
} catch (error) {
break exceptionLanding41;
}
break reduciblePort40;
}
env1_5(false);
return value;
}
try {
try {
binding(null);
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
try {
try {
binding = env1_5;
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
try {
try {
binding(true);
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
try {
try {
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
try {
try {
binding = env1_3;
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
try {
try {
moduleValue = require(binding);
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
yield moduleValue;
try {
try {
value4 = undefined;
value5 = false;
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
if (value5) {
env1_5(false);
return value4;
}
try {
try {
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
try {
try {
value6 = value4 == null;
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
reducibleJoin20: while (true) {
if (value6) {
token = value;
break reducibleJoin20;
}
try {
try {
token = value4.token;
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
break reducibleJoin20;
}
try {
try {
importDefault(token);
} catch (error) {
break exceptionLanding23;
}
} catch (error) {
break exceptionLanding41;
}
env1_5(false);
return value;
}
env1_5(false);
throw error;
}
function* _fun69904() { // fn#69904, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9151:1939, offset: 0x01ce785e, size: 261 bytes, params: 1, frame: 20
var value3;
var binding;
var binding2;
var property;
var value4;
var open;
var object2;
var intl;
var string;
var t;
var error;
var value5;
var prototype;
var value6;
var value7;
var value8;
var anyErrorMessage;
if (true) {
value = environment.__proto__;
try {
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
value = dependencyMap();
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
yield value;
try {
value = undefined;
value3 = false;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
if (value3) {
return value;
}
value = environment.__proto__.__proto__;
try {
binding = env2_1;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
property = binding2[15];
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
value4 = binding(property);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
open = value4.open;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
object2 = {};
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
object2.key = 'USER_SETTINGS_ACCOUNT_CHANGE_EMAIL_CONFIRM_CODE_SENT';
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
binding = env2_0;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
property = binding2[12];
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
value = binding(property);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
intl = value.intl;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
string = intl.string;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
property = binding2[12];
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
value = binding(property);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
t = value.t;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
property = t['84yeoz'];
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
value = Reflect.apply(string, intl, [property]);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
object2.content = value;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
return undefined;
}
try {
Reflect.apply(open, value4, [object2]);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_1;
value5 = binding(env2_2[10]);
prototype = value5.prototype;
value6 = Object.create(prototype, {constructor: {value: value5}});
value7 = new value5();
value8 = value7 instanceof Object ? value7 : value6;
anyErrorMessage = value8.getAnyErrorMessage();
if (anyErrorMessage != null) {
binding = env2_1;
value = binding(env2_2[15]);
value.open({key: 'CONFIRM_EMAIL_ERROR', content: anyErrorMessage});
}
}
}
}
@@ -0,0 +1,63 @@
/* Metro module 9018; source: modules/verification/native/components/CountrySelectModal.tsx; dependencies: [31, 33, 1244, 5282, 5080, 9019, 9016, 5459, 9022, 5280, 2] */
function _fun70167(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:6, offset: 0x01cf1396, size: 142 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;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/CountrySelectModal.tsx');
exports.default = CountrySelectModal;
}
function CountrySelectModal() { // fn#70168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:226, offset: 0x01cf1424, size: 109 bytes, params: 1, frame: 15
const binding = env0_3;
const value2 = binding.useMemo(function() {
return _fun70170();
}, []);
binding.useEffect(function() {
return _fun70175;
}, []);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
return <Navigator screens={value2} initialRouteName="COUNTRY_SELECT" />;
}
function _fun70169() { // fn#70169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:273, offset: 0x01cf1491, size: 17 bytes, params: 1, frame: 9
return getScreens_70170();
}
function _fun70174() { // fn#70174, offset: 0x01cf15be, size: 11 bytes, params: 1, frame: 1
return _fun70175;
}
function getScreens_70170() { // fn#70170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:277, offset: 0x01cf14a2, size: 141 bytes, params: 1, frame: 17
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gzXECH);
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object.render = render_70171;
return {COUNTRY_SELECT: object};
}
function _fun70175() { // fn#70175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:550, offset: 0x01cf15c9, size: 63 bytes, params: 1, frame: 15
let value = environment.__proto__.__proto__;
value = importDefault(5459) /* metro dependency 5459: RunAfterInteractionsUtils */;
value.runAfterInteractions((importDefault(9022) /* metro dependency 9022: PhoneVerificationActionCreators */).setCountrySelectorClosed,
400);
}
function getScreens_70170Render() { // fn#70171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:426, owner: getScreens_70170.render, offset: 0x01cf152f, size: 65 bytes, params: 1, frame: 15
var environment;
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={onClose_70172} onCountrySelected={onCountrySelected_70173} />)(importDefault(9019) /* metro dependency 9019: CountryCallingCodeSelect */);
}
function renderOnClose_70172() { // fn#70172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:449, owner: getScreens_70170.render.onClose, offset: 0x01cf1570, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__.__proto__;
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function renderOnCountrySelected(a0) { // fn#70173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:485, owner: getScreens_70170.render.onCountrySelected, offset: 0x01cf1595, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__.__proto__.__proto__;
return (importDefault(9016) /* metro dependency 9016: PhoneActionCreators */).setCountryCode(a0);
}
@@ -0,0 +1,173 @@
/* Metro module 8954; source: modules/verification/native/components/EmailVerificationModal.tsx; dependencies: [57, 31, 1878, 8955, 661, 33, 8953, 480, 5282, 8956, 8959, 8960, 8962, 8965, 9007, 9010, 9012, 566, 6518, 5280, 1244, 2] */
function _fun69816(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:6, offset: 0x01ce4473, size: 229 bytes, params: 8, frame: 19
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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_6 = (require(8955) /* metro dependency 8955: ChangeEmailStore */).resetChangeEmailStore;
const env0_7 = (require(661) /* metro dependency 661: Constants */).VerificationModalScenes;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/EmailVerificationModal.tsx');
exports.default = EmailVerificationModal;
}
function EmailVerificationModal({isChangeEmail}) { // fn#69818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:358, offset: 0x01ce4585, size: 389 bytes, params: 2, frame: 20
var env0_3Binding = undefined;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const defaultImport = importDefault(6518) /* metro dependency 6518: useInitialValue */;
const verified = currentUser?.verified;
const value4 = defaultImport(verified != null && verified);
const binding = env0_4;
var [property, env0_3] = env0_3Binding(binding.useState(), 2);
const value7 = binding.useMemo(_fun69820, [property, isChangeEmail, value4]);
const r4 = isChangeEmail || currentUser?.email == null ? currentUser == null ? VerificationModalScenes.ENTER_EMAIL : currentUser.verified ? VerificationModalScenes.CONFIRM_EMAIL_CHANGE_START : VerificationModalScenes.ENTER_EMAIL : VerificationModalScenes.RESEND_EMAIL;
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
screens={value7}
initialRouteName={r4}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun69820() { // fn#69820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:579, offset: 0x01ce470a, size: 59 bytes, params: 1, frame: 11
return getScreens_69821({initiallyVerified: env0_1, isChangeEmail: isChangeEmail, changeEmailReason: env0_2,
setChangeEmailReason: env0_3});
}
function getScreens_69821({initiallyVerified, isChangeEmail, changeEmailReason, setChangeEmailReason}) { // fn#69821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:583, offset: 0x01ce4745, size: 963 bytes, params: 2, frame: 24
var environment;
const object12 = {};
const value = environment.__proto__.__proto__;
const ImpressionGroups = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionGroups;
const USER_ACCOUNT_EMAIL_CHANGE_FLOW = ImpressionGroups.USER_ACCOUNT_EMAIL_CHANGE_FLOW;
object12.impression_group = USER_ACCOUNT_EMAIL_CHANGE_FLOW;
const object13 = {};
const CHANGE_EMAIL_COLLECT_REASONS = VerificationModalScenes.CHANGE_EMAIL_COLLECT_REASONS;
const object14 = {};
object14.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
const getHeaderCloseButton = navigatorHeaderNativeModule.getHeaderCloseButton;
const closeModalBinding = closeModal;
object14.headerLeft = Reflect.apply(getHeaderCloseButton, navigatorHeaderNativeModule, [closeModalBinding]);
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const USER_ACCOUNT_EMAIL_CHANGE_COLLECT_REASONS = ImpressionNames.USER_ACCOUNT_EMAIL_CHANGE_COLLECT_REASONS;
object14.impressionName = USER_ACCOUNT_EMAIL_CHANGE_COLLECT_REASONS;
object14.impressionProperties = object12;
object14.render = render_69822;
object13[CHANGE_EMAIL_COLLECT_REASONS] = object14;
const CHANGE_EMAIL_WARNING = VerificationModalScenes.CHANGE_EMAIL_WARNING;
const object15 = {};
object15.headerTitle = navigatorHeaderNativeModule.getHeaderNoTitle();
object15.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton(closeModalBinding);
const USER_ACCOUNT_EMAIL_CHANGE_WARNING = ImpressionNames.USER_ACCOUNT_EMAIL_CHANGE_WARNING;
object15.impressionName = USER_ACCOUNT_EMAIL_CHANGE_WARNING;
object15.impressionProperties = object12;
object15.render = render_69823;
object13[CHANGE_EMAIL_WARNING] = object15;
const RESEND_EMAIL = VerificationModalScenes.RESEND_EMAIL;
const object16 = {};
object16.headerTitle = navigatorHeaderNativeModule.getHeaderNoTitle();
object16.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton(closeModalBinding);
const USER_ACCOUNT_EMAIL_RESEND_VERIFICATION_EMAIL = ImpressionNames.USER_ACCOUNT_EMAIL_RESEND_VERIFICATION_EMAIL;
object16.impressionName = USER_ACCOUNT_EMAIL_RESEND_VERIFICATION_EMAIL;
object16.impressionProperties = object12;
object16.render = render_69824;
object13[RESEND_EMAIL] = object16;
const CONFIRM_EMAIL_CHANGE_START = VerificationModalScenes.CONFIRM_EMAIL_CHANGE_START;
const object17 = {};
object17.headerTitle = navigatorHeaderNativeModule.getHeaderNoTitle();
object17.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton(closeModalBinding);
const USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE = ImpressionNames.USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE;
object17.impressionName = USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE;
object17.impressionProperties = object12;
object17.render = render_69825;
object13[CONFIRM_EMAIL_CHANGE_START] = object17;
const CONFIRM_EMAIL_CHANGE_CODE = VerificationModalScenes.CONFIRM_EMAIL_CHANGE_CODE;
const object18 = {};
object18.headerTitle = navigatorHeaderNativeModule.getHeaderNoTitle();
object18.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton(closeModalBinding);
const USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE = ImpressionNames.USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE;
object18.impressionName = USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE;
object18.impressionProperties = object12;
object18.render = render_69826;
object13[CONFIRM_EMAIL_CHANGE_CODE] = object18;
const ENTER_EMAIL = VerificationModalScenes.ENTER_EMAIL;
const object19 = {};
object19.headerTitle = navigatorHeaderNativeModule.getHeaderNoTitle();
object19.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton(closeModalBinding);
const USER_ACCOUNT_EMAIL_CHANGE_ENTER_EMAIL = ImpressionNames.USER_ACCOUNT_EMAIL_CHANGE_ENTER_EMAIL;
object19.impressionName = USER_ACCOUNT_EMAIL_CHANGE_ENTER_EMAIL;
const object20 = {};
copyDataProperties(object20, object12, initiallyVerified);
object20['email_verified'] = initiallyVerified;
object19.impressionProperties = object20;
object19.render = render_69827;
object13[ENTER_EMAIL] = object19;
const VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
const object21 = {};
object21.headerTitle = navigatorHeaderNativeModule.getHeaderNoTitle();
object21.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton(closeModalBinding);
const USER_ACCOUNT_PASSWORD_VERIFY = ImpressionNames.USER_ACCOUNT_PASSWORD_VERIFY;
object21.impressionName = USER_ACCOUNT_PASSWORD_VERIFY;
object21.impressionProperties = object12;
object21.render = render_69828;
object13[VERIFY_PASSWORD] = object21;
const CHANGE_EMAIL_COMPLETE = VerificationModalScenes.CHANGE_EMAIL_COMPLETE;
const object22 = {};
object22.headerTitle = navigatorHeaderNativeModule.getHeaderNoTitle();
object22.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton(closeModalBinding);
const USER_ACCOUNT_EMAIL_CHANGE_COMPLETE = ImpressionNames.USER_ACCOUNT_EMAIL_CHANGE_COMPLETE;
object22.impressionName = USER_ACCOUNT_EMAIL_CHANGE_COMPLETE;
object22.impressionProperties = object12;
object22.render = render_69829;
object13[CHANGE_EMAIL_COMPLETE] = object22;
return object13;
}
function getScreens_69821Render() { // fn#69822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:1009, owner: getScreens_69821.render, offset: 0x01ce4b08, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component changeEmailReason={changeEmailReason} setChangeEmailReason={setChangeEmailReason} />)(importDefault(8956) /* metro dependency 8956: ChangeEmailCollectReasons */);
}
function getScreens_69821Render_69823() { // fn#69823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:1290, owner: getScreens_69821.render, offset: 0x01ce4b44, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component changeEmailReason={changeEmailReason} />)(importDefault(8959) /* metro dependency 8959: ChangeEmailWarning */);
}
function getScreens_69821Render_69824() { // fn#69824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:1552, owner: getScreens_69821.render, offset: 0x01ce4b77, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(8960) /* metro dependency 8960: ResendEmail */);
}
function getScreens_69821Render_69825() { // fn#69825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:1800, owner: getScreens_69821.render, offset: 0x01ce4b9e, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(8962) /* metro dependency 8962: ConfirmEmailChangeStart */);
}
function getScreens_69821Render_69826() { // fn#69826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:2049, owner: getScreens_69821.render, offset: 0x01ce4bc5, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component isChangeEmail={isChangeEmail} />)(importDefault(8965) /* metro dependency 8965: ConfirmEmailChangeCode */);
}
function getScreens_69821Render_69827() { // fn#69827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:2321, owner: getScreens_69821.render, offset: 0x01ce4bf8, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component isChangeEmail={isChangeEmail} changeEmailReason={changeEmailReason} />)(importDefault(9007) /* metro dependency 9007: EnterEmail */);
}
function getScreens_69821Render_69828(a0) { // fn#69828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:2586, owner: getScreens_69821.render, offset: 0x01ce4c34, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(9010) /* metro dependency 9010: UserSettingsConfirmPassword */);
}
function getScreens_69821Render_69829(a0) { // fn#69829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9139:2831, owner: getScreens_69821.render, offset: 0x01ce4c65, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(9012) /* metro dependency 9012: ChangeEmailComplete */);
}
@@ -0,0 +1,141 @@
/* Metro module 9007; source: modules/verification/native/components/EnterEmail.tsx; dependencies: [5, 57, 31, 27, 1878, 8955, 661, 33, 4501, 697, 1484, 566, 676, 9008, 683, 4573, 1244, 8967, 4578, 2] */
function _fun70076(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9192:6, offset: 0x01ced86b, size: 430 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(5) /* metro dependency 5 */;
const env0_5 = importDefault(57) /* metro dependency 57 */;
const env0_6 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_7 = value.View;
const env0_8 = value.ScrollView;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
value = require(8955) /* metro dependency 8955: ChangeEmailStore */;
const env0_10 = value.useChangeEmailError;
const env0_11 = value.useChangeEmailStore;
const env0_12 = value.ChangeEmailFields;
const env0_13 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
value = require(33) /* metro dependency 33 */;
const env0_14 = value.jsx;
const env0_15 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
const env0_16 = Reflect.apply(createStyles, value, [{background: {backgroundColor: BACKGROUND_BASE_LOW},
container: {'paddingVertical': 12, 'paddingHorizontal': 16}, title: {textAlign: 'center'},
prompt: {'marginTop': 8, 'lineHeight': 18, 'textAlign': 'center'}, input: {'marginTop': 24,
'marginBottom': 16}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/EnterEmail.tsx');
exports.default = EnterEmail;
}
function EnterEmail({isChangeEmail, changeEmailReason}) { // fn#70077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9192:660, offset: 0x01ceda19, size: 1109 bytes, params: 2, frame: 35
var r0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var email;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var Vm8akB;
var items2;
var FreeFormInputGroup;
var Button;
var value;
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_6;
const value3 = binding.useState('');
const binding2 = env0_5;
const value4 = binding2(value3, 2);
const property = value4[0];
const property2 = value4[1];
const EMAIL = ChangeEmailFields.EMAIL;
const value5 = binding2(useChangeEmailError(EMAIL), 2);
const property3 = value5[0];
const value7 = binding.useCallback(_fun70081, [value2, currentUser, value5[1], property,
useChangeEmailStore().emailToken, binding.useCallback(_fun70079, [value2]), isChangeEmail, changeEmailReason]);
if (currentUser == null) {
r0 = null;
} else {
var scrollViewBindingProps = {'style': null, 'keyboardShouldPersistTaps': 'handled',
'alwaysBounceVertical': false,
style: styles.background};
var viewBindingProps = {style: styles.container};
email = currentUser.email;
items2 = [<Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{email != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Vm8akB) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['CDTD/K'])}</Text>];
email = currentUser.email;
items2[1] = <Text style={styles.prompt} variant="text-sm/medium" color="text-default">{email != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.Z7CaI7,
{email: currentUser.email}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.YXXMxK)}</Text>;
FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */;
items2[2] = <FreeFormInputGroup style={styles.input} label={intl.string(t['w/qqKK'])} textContentType="emailAddress" keyboardType="email-address" value={property} onChangeText={property2} onSubmitEditing={value7} placeholder={intl.string(t.dI4d4S)} returnKeyType="done" autoCapitalize="none" error={property3} autoFocus />;
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
Vm8akB = t.Vm8akB;
value = property === '';
items2[3] = <Button text={Reflect.apply(string, intl,
[Vm8akB])} onPress={value7} disabled={value || property === currentUser.email} />;
value = <ScrollView {...scrollViewBindingProps}><View {...viewBindingProps}>{items2}</View></ScrollView>;
r0 = value;
}
return r0;
}
function _fun70079(a0) { // fn#70079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9192:926, offset: 0x01cede6e, size: 52 bytes, params: 2, frame: 11
const env0_0 = a0;
const binding = env0_2;
const getState = binding.getState;
return Reflect.apply(getState, binding, []).routes.findIndex(_fun70080);
}
function _fun70081() { // fn#70081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9192:999, offset: 0x01cedea2, size: 112 bytes, params: 1, frame: 17
const binding = env0_2;
const push = binding.push;
const VerificationModalScenes = (require(676) /* metro dependency 676: ConstantsIOS */).VerificationModalScenes;
const VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
const env0_0 = env1_4(_fun70083);
Reflect.apply(push, binding, [VERIFY_PASSWORD, {onSubmit: onSubmit, onSuccess: onSuccess_70085,
hideUnverifiedBanner: true}]);
}
function* _fun70083(a0) { // fn#70083, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9192:1082, offset: 0x01cedf1d, size: 130 bytes, params: 2, frame: 17
var r1;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const value3 = null;
if (value3 == dependencyMap) {
r1 = value3;
} else {
env2_5(value3);
var value5 = env3_2(env3_3[13]);
yield value5.saveEmail({email: env2_4, password: a0, emailToken: env2_6}, importAll, View);
value = undefined;
if (false) {
return value;
}
r1 = value;
}
return r1;
}
function onSuccess_70085() { // fn#70085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9192:1246, offset: 0x01cedf9f, size: 151 bytes, params: 1, frame: 18
var moduleValue;
var defaultImport;
var moduleValue2;
if (isChangeEmail) {
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_SAVE_NEW_EMAIL,
{change_email_reason_enum: changeEmailReason});
moduleValue2 = importAll(9008) /* metro dependency 9008: ChangeEmailUtils */;
moduleValue2.finishChangeEmailFlow(env1_2, env1_4);
} else {
moduleValue = importAll(9008) /* metro dependency 9008: ChangeEmailUtils */;
moduleValue.finishVerifyEmailFlow(env1_2, env1_7);
}
}
@@ -0,0 +1,142 @@
/* Metro module 15854; source: modules/verification/native/components/Overview.tsx; dependencies: [31, 27, 1373, 1878, 661, 33, 4501, 697, 1948, 566, 8961, 1484, 4571, 4578, 1244, 15638, 507, 7620, 4573, 6766, 13935, 2] */
function _fun121928(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16062:6, offset: 0x02554650, size: 515 bytes, params: 8, frame: 24
var object2;
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(27) /* metro dependency 27 */).View;
const userRequiredActionStore = importDefault(1373) /* metro dependency 1373: UserRequiredActionStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
let value = require(661) /* metro dependency 661: Constants */;
const env0_7 = value.Endpoints;
const env0_8 = value.VerificationModalScenes;
const env0_9 = value.VerificationTypes;
const HelpdeskArticles = value.HelpdeskArticles;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.Fragment;
const env0_12 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
object2.containerInner = {'flex': 1, 'padding': 20, 'justifyContent': 'center', 'alignItems': 'center'};
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object2.title = {'marginTop': 20, 'fontSize': 17, 'textAlign': 'center', color: MOBILE_TEXT_HEADING_PRIMARY};
const PRIMARY_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400;
object2.body = {'marginTop': 4, 'marginBottom': 20, 'fontSize': 14, 'textAlign': 'center', color: PRIMARY_400};
object2.blocks = {'width': '60%', 'justifyContent': 'center'};
object2.verificationType = {marginBottom: 20};
object2.button = {'marginBottom': 20, 'marginHorizontal': 20, 'alignSelf': 'center'};
const env0_13 = Reflect.apply(createStyles, value, [object2]);
value = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = value.getArticleURL;
const VERIFICATION_FAQ = HelpdeskArticles.VERIFICATION_FAQ;
const env0_14 = Reflect.apply(getArticleURL, value, [VERIFICATION_FAQ]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/Overview.tsx');
exports.default = Overview;
}
function Overview() { // fn#121929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16062:945, offset: 0x02554853, size: 665 bytes, params: 1, frame: 30
const styles = useStyles();
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserRequiredActionStore],
_fun121930, [], (importDefault(8961) /* metro dependency 8961: VerificationUtils */).areVerificationTypesEqual);
const value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const defaultImport = importDefault(4571) /* metro dependency 4571: useBackPressHandler */;
const BackPressHandler = (require(4571) /* metro dependency 4571: useBackPressHandler */).BackPressHandler;
defaultImport(BackPressHandler.minimize);
const value4 = env0_3.useCallback(_fun121931, [value3, value2, styles.verificationType]);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Iz0kDg = (require(1244) /* metro dependency 1244: indexNative */).t.Iz0kDg;
const items2 = [<Text variant="heading-lg/semibold" style={styles.title} accessibilityRole="header">{Reflect.apply(string,
intl, [Iz0kDg])}</Text>];
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
items2[1] = <TextWithIOSLinkWorkaround variant="text-sm/medium" style={styles.body}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0rqMV5'],
{helpCenterURL: env0_14})}</TextWithIOSLinkWorkaround>;
items2[2] = <View style={styles.blocks}>{value4()}</View>;
const view = <View style={styles.containerInner}>{items2}</View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View style={styles.container}>
{view}
<View style={styles.button} accessibilityRole="link">
<Button
variant="secondary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Yl/Riu'])}
onPress={(require(13935) /* metro dependency 13935: SupportUtils */).emailSupport}
/>
</View>
</View>
);
}
function _fun121930() { // fn#121930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16062:1009, offset: 0x02554aec, size: 52 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (importDefault(8961) /* metro dependency 8961: VerificationUtils */).getVerificationTypes(UserRequiredActionStore.getAction());
}
function _fun121931() { // fn#121931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16062:1208, offset: 0x02554b20, size: 53 bytes, params: 1, frame: 15
return (
<>
{env0_1.map(_fun121932)}
</>
);
}
function _fun121932(a0) { // fn#121932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16062:1233, offset: 0x02554b55, size: 265 bytes, params: 2, frame: 22
var environment;
var r0;
var object2;
var value2;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
var intl;
const env0_0 = a0;
let value = environment.__proto__.__proto__;
const CAPTCHA = VerificationTypes.CAPTCHA;
if (a0 === CAPTCHA) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = <Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3413d0'])} onPress={onPress_121933} grow />;
} else {
object2 = {};
value2 = environment.__proto__;
object2.style = styles.verificationType;
value = importDefault(8961) /* metro dependency 8961: VerificationUtils */;
value = <View {...object2} key={a0}><Button text={value.getButtonTitle(a0)} onPress={onPress_121935} grow /></View>;
r0 = value;
}
return r0;
}
function onPress_121933() { // fn#121933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16062:1325, offset: 0x02554c5e, size: 56 bytes, params: 1, frame: 12
var environment;
let value = environment.__proto__.__proto__.__proto__;
value = importDefault(15638) /* metro dependency 15638: CaptchaUtils */;
value = value.showCaptcha();
value.then(function(a0) {
var HTTP = require(dependencyMap[16]).HTTP;
HTTP.post({url: Endpoints.CAPTCHA, body: {captcha_key: a0}, oldFormErrors: true, rejectWithError: true});
});
}
function onPress_121935() { // fn#121935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16062:1568, offset: 0x02554cea, size: 189 bytes, params: 1, frame: 14
var r2;
var value6;
var currentUser;
const ADD_PHONE = VerificationModalScenes.ADD_PHONE;
const binding = env0_0;
const EMAIL_OR_PHONE = VerificationTypes.EMAIL_OR_PHONE;
if (binding !== EMAIL_OR_PHONE && env0_0 !== VerificationTypes.EMAIL && env0_0 !== VerificationTypes.REVERIFY_EMAIL) {
r2 = ADD_PHONE;
} else {
value6 = undefined;
(require(7620) /* metro dependency 7620: UserSettingsAccountActionCreators */).accountDetailsInit();
currentUser = UserStore.getCurrentUser();
r2 = (currentUser == null ? value6 : currentUser.email) != null ? VerificationModalScenes.RESEND_EMAIL : VerificationModalScenes.ENTER_EMAIL;
}
env2_2.push(r2);
}
@@ -0,0 +1,215 @@
/* Metro module 9013; source: modules/verification/native/components/PhoneVerificationModal.tsx; dependencies: [5, 31, 661, 9014, 33, 5282, 9015, 9016, 5080, 480, 9024, 9010, 5280, 1244, 2] */
function _fun70113(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:6, offset: 0x01cef5a4, size: 198 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 */;
importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).VerificationModalScenes;
const env0_5 = (require(9014) /* metro dependency 9014: PhoneConstants */).PHONE_VERIFICATION_MODAL_KEY;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/PhoneVerificationModal.tsx');
exports.default = PhoneVerificationModal;
}
function PhoneVerificationModal(a0) { // fn#70114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:316, offset: 0x01cef66a, size: 338 bytes, params: 2, frame: 24
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const env0_0 = a0;
const object = {};
let ADD_PHONE = VerificationModalScenes.ADD_PHONE;
const object6 = {};
object6.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object6.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(a0.onClose);
object6.render = render_70115;
object[ADD_PHONE] = object6;
const VERIFY_PHONE = VerificationModalScenes.VERIFY_PHONE;
const object7 = {};
object7.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const USER_VERIFY_PHONE = ImpressionNames.USER_VERIFY_PHONE;
object7.impressionName = USER_VERIFY_PHONE;
object7.render = render_70123;
object[VERIFY_PHONE] = object7;
const VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
const object8 = {};
object8.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object8.render = render_70129;
object[VERIFY_PASSWORD] = object8;
ADD_PHONE = VerificationModalScenes.ADD_PHONE;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
screens={object}
initialRouteName={ADD_PHONE}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function PhoneVerificationModalRender(a0, a1) { // fn#70115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:499, owner: PhoneVerificationModal.render, offset: 0x01cef7bc, size: 160 bytes, params: 3, frame: 18
var environment;
const env0_0 = a0;
const env0_1 = a1;
let value = environment.__proto__;
value = undefined;
const AddPhone = importDefault(9015) /* metro dependency 9015: AddPhone */;
const value2 = null;
let reason = value2 == a0 ? value : a0.reason;
reason = value2 == reason ? env0_0.reason : reason;
return (
<AddPhone
{...a0}
{...{['reason']: reason}}
{...{['onComplete']: function(a0) {
var VERIFY_PHONE = VerificationModalScenes.VERIFY_PHONE;
return require.push(VERIFY_PHONE, {phone: a0, onVerified: _fun70117});
}}}
{...{['onDeletePhone']: env0_0.allowDeletePhone ? function() {
var VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
require.push(VERIFY_PASSWORD, {hideUnverifiedBanner: true, onSubmit: _fun70121, onSuccess: _fun70122});
} : value2}}
/>
);
}
function PhoneVerificationModalRender_70123(a0, a1) { // fn#70123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:1184, owner: PhoneVerificationModal.render, offset: 0x01cefa29, size: 85 bytes, params: 3, frame: 16
var environment;
const env0_0 = a1;
const value = environment.__proto__;
return ((Component) => <Component {...a0} {...{['disableKeyboardAvoidingView']: true}} {...{['onVerified']: renderOnVerified}} />)(importDefault(9024) /* metro dependency 9024: VerifyPhone */);
}
function PhoneVerificationModalRender_70129(a0) { // fn#70129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:1563, owner: PhoneVerificationModal.render, offset: 0x01cefb73, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(9010) /* metro dependency 9010: UserSettingsConfirmPassword */);
}
function renderOnComplete(a0) { // fn#70116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:603, owner: PhoneVerificationModal.render.onComplete, offset: 0x01cef85c, size: 57 bytes, params: 2, frame: 14
const push = require.push;
const VERIFY_PHONE = VerificationModalScenes.VERIFY_PHONE;
return Reflect.apply(push, require, [VERIFY_PHONE, {phone: a0, onVerified: function(a0) {
var env0_0 = a0;
var VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
require.push(VERIFY_PASSWORD, {hideUnverifiedBanner: true, onSubmit: _fun70118, onSuccess: _fun70119});
}}]);
}
function _fun70120() { // fn#70120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:871, offset: 0x01cef969, size: 70 bytes, params: 1, frame: 15
const push = require.push;
const VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
Reflect.apply(push, require, [VERIFY_PASSWORD, {hideUnverifiedBanner: true, onSubmit: onSubmit_70121,
onSuccess: onSuccess_70122}]);
}
function renderOnVerified(a0) { // fn#70124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:1250, owner: PhoneVerificationModal.render.onVerified, offset: 0x01cefa7e, size: 97 bytes, params: 2, frame: 17
const env0_0 = a0;
const push = require.push;
const VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
const env0_1 = env2_3(_fun70126);
Reflect.apply(push, require, [VERIFY_PASSWORD, {hideUnverifiedBanner: true, onSubmit: onSubmit_70127,
onSuccess: function() {
importDefault(dependencyMap[8]).popWithKey(PHONE_VERIFICATION_MODAL_KEY);
}}]);
}
function onCompleteOnVerified(a0) { // fn#70117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:637, owner: PhoneVerificationModal.render.onComplete.onVerified, offset: 0x01cef895, size: 77 bytes, params: 2, frame: 15
const env0_0 = a0;
const push = require.push;
const VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
Reflect.apply(push, require, [VERIFY_PASSWORD, {hideUnverifiedBanner: true, onSubmit: onSubmit_70118,
onSuccess: function() {
importDefault(dependencyMap[8]).popWithKey(PHONE_VERIFICATION_MODAL_KEY);
}}]);
}
function onSubmit_70121(a0) { // fn#70121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:935, offset: 0x01cef9af, size: 85 bytes, params: 2, frame: 15
let value = environment.__proto__.__proto__.__proto__;
value = undefined;
const defaultImport = importDefault(9016) /* metro dependency 9016: PhoneActionCreators */;
const removePhone = defaultImport.removePhone;
let reason = env1_0 == null ? value : env1_0.reason;
reason = reason ?? env2_0.reason;
return Reflect.apply(removePhone, defaultImport, [a0, reason]);
}
function onSuccess_70122() { // fn#70122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:1031, offset: 0x01cefa04, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function* _fun70126(a0) { // fn#70126, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:1325, offset: 0x01cefaea, size: 95 bytes, params: 2, frame: 16
var binding;
var binding2;
var property;
var addPhone;
var reason;
var value5;
var error;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__.__proto__.__proto__;
try {
binding = env4_1;
} catch (error) {
return error;
}
try {
binding2 = env4_2;
} catch (error) {
return error;
}
try {
property = binding2[7];
} catch (error) {
return error;
}
try {
value = binding(property);
} catch (error) {
return error;
}
try {
addPhone = value.addPhone;
} catch (error) {
return error;
}
try {
} catch (error) {
return error;
}
try {
} catch (error) {
return error;
}
try {
reason = require.reason;
} catch (error) {
return error;
}
try {
value = Reflect.apply(addPhone, value, [require, a0, reason]);
} catch (error) {
return error;
}
yield value;
try {
value = undefined;
value5 = false;
} catch (error) {
return error;
}
return value5 ? value : value;
}
function onVerifiedOnSubmit_70118(a0) { // fn#70118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9198:710, owner: PhoneVerificationModal.render.onComplete.onVerified.onSubmit, offset: 0x01cef8e2, size: 93 bytes, params: 2, frame: 17
let value = environment.__proto__.__proto__.__proto__.__proto__;
value = undefined;
const defaultImport = importDefault(9016) /* metro dependency 9016: PhoneActionCreators */;
const addPhone = defaultImport.addPhone;
const binding = env0_0;
let reason = env2_0 == null ? value : env2_0.reason;
reason = reason ?? env3_0.reason;
return Reflect.apply(addPhone, defaultImport, [binding, a0, reason]);
}
@@ -0,0 +1,97 @@
/* Metro module 8960; source: modules/verification/native/components/ResendEmail.tsx; dependencies: [57, 31, 27, 1373, 1878, 661, 33, 4501, 1484, 566, 44, 8961, 8953, 5473, 4573, 1244, 4578, 5076, 3857, 2] */
function _fun69861(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9145:6, offset: 0x01ce5d21, size: 358 bytes, params: 8, frame: 19
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 userRequiredActionStore = importDefault(1373) /* metro dependency 1373: UserRequiredActionStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_8 = (require(661) /* metro dependency 661: Constants */).VerificationModalScenes;
const value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
'padding': 16, 'justifyContent': 'center', 'alignItems': 'center'}, title: {'marginTop': 16,
'textAlign': 'center'}, body: {'marginTop': 8, 'lineHeight': 18, 'textAlign': 'center'},
resend: {'marginTop': 16, 'width': '100%'}, change: {'marginTop': 8, 'width': '100%'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/ResendEmail.tsx');
exports.default = ResendEmail;
}
function ResendEmail() { // fn#69862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9145:572, offset: 0x01ce5e87, size: 924 bytes, params: 1, frame: 31
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const {email, verified} = Reflect.apply(useStateFromStores, fluxModule, [[UserStore], _fun69863]);
const moduleValue3 = fluxModule;
useStateFromStores = moduleValue3.useStateFromStores;
const isEmailReverification2 = (importDefault(8961) /* metro dependency 8961: VerificationUtils */).isEmailReverification(Reflect.apply(useStateFromStores,
moduleValue3, [[UserRequiredActionStore], function() {
return UserRequiredActionStore.getAction();
}]));
const value3 = !isEmailReverification2;
const binding = env0_4;
const [property, env0_2] = env0_3(binding.useState(false), 2);
var env0_3 = binding.useRef(verified);
binding.useEffect(_fun69865, [verified]);
binding.useEffect(_fun69866);
const value6 = binding.useCallback(_fun69867, [value2]);
const EnvelopeOpenSpotIllustration = (require(5473) /* metro dependency 5473: native */).EnvelopeOpenSpotIllustration;
const items2 = [<EnvelopeOpenSpotIllustration scale={0.75} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.fUtddV])}</Text>;
items2[2] = <Text style={styles.body} variant="text-sm/medium" color="text-default">{property ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t.JqLgQL,
{email: email}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tSXg8O)}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const WnX4J2 = (require(1244) /* metro dependency 1244: indexNative */).t.WnX4J2;
items2[3] = <View style={styles.resend}><Button text={Reflect.apply(string, intl,
[WnX4J2])} variant="primary" onPress={onPress_69868} grow /></View>;
items2[4] = isEmailReverification2 ? value3 : <View style={styles.change}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Vm8akB)} variant="secondary" onPress={value6} grow /></View>;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function _fun69863() { // fn#69863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9145:665, offset: 0x01ce6223, size: 58 bytes, params: 1, frame: 14
const value = environment.__proto__;
const currentUser = UserStore.getCurrentUser();
(importDefault(44) /* metro dependency 44 */)(currentUser != null, 'ResendEmail: user cannot be undefined');
return currentUser;
}
function _fun69865() { // fn#69865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9145:946, offset: 0x01ce6270, size: 67 bytes, params: 1, frame: 11
var value;
if (verified && env0_3.current === false) {
value = environment.__proto__;
value = importDefault(8953) /* metro dependency 8953: EmailVerificationModalActionCreators */;
value.close();
}
}
function _fun69867() { // fn#69867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9145:1048, offset: 0x01ce62b3, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const ENTER_EMAIL = VerificationModalScenes.ENTER_EMAIL;
Reflect.apply(push, binding, [ENTER_EMAIL]);
}
function ResendEmailOnPress() { // fn#69868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9145:1649, owner: ResendEmail.onPress, offset: 0x01ce62d5, size: 141 bytes, params: 1, frame: 17
env0_2(true);
(importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).verifyResend();
const defaultImport2 = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport2.open;
const object2 = {key: 'USER_SETTINGS_ACCOUNT_CHANGE_EMAIL_CONFIRM_CODE_SENT'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['84yeoz']);
Reflect.apply(open, defaultImport2, [object2]);
}
@@ -0,0 +1,565 @@
/* Metro module 15848; source: modules/verification/native/components/VerificationModal.tsx; dependencies: [5, 31, 27, 15849, 1373, 1878, 661, 33, 4501, 1305, 15850, 1244, 4578, 480, 5282, 5277, 9139, 6802, 5076, 15854, 8960, 8965, 8962, 9007, 9015, 9016, 8961, 15855, 9024, 9010, 566, 4080, 4015, 5280, 2] */
function _fun121874(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:6, offset: 0x025533c5, size: 317 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 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const phoneVerificationStore = importDefault(15849) /* metro dependency 15849: PhoneVerificationStore */;
const userRequiredActionStore = importDefault(1373) /* metro dependency 1373: UserRequiredActionStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_9 = constantsModule.UserRequiredActions;
const env0_10 = constantsModule.VerificationModalScenes;
const env0_11 = (require(33) /* metro dependency 33 */).jsx;
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({button: {'position': 'absolute',
'right': 32, 'bottom': 32, 'left': 32}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/VerificationModal.tsx');
exports.default = VerificationModal;
}
function PhoneThenEmailInterstitial({navigation}) { // fn#121875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:321, offset: 0x02553502, size: 318 bytes, params: 2, frame: 25
const styles = useStyles();
const EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
const object2 = {};
const VerifyPhone = (require(15850) /* metro dependency 15850: VerifyPhone */).VerifyPhone;
object2.Illustration = VerifyPhone;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const KLnLIP = (require(1244) /* metro dependency 1244: indexNative */).t.KLnLIP;
object2.title = Reflect.apply(string, intl, [KLnLIP]);
string = intl.string;
const XGbCq3 = (require(1244) /* metro dependency 1244: indexNative */).t.XGbCq3;
object2.body = Reflect.apply(string, intl, [XGbCq3]);
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<EmptyState {...object2}>
<View style={styles.button}>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3oK4qw'])}
onPress={function() {
var value2 = UserStore.getCurrentUser();
var value3 = undefined;
navigation.push((value2 == null ? value3 : value2.email) != null ? VerificationModalScenes.RESEND_EMAIL : VerificationModalScenes.ENTER_EMAIL);
return value3;
}}
/>
</View>
</EmptyState>
);
}
function VerificationModal() { // fn#121877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:867, offset: 0x02553690, size: 229 bytes, params: 1, frame: 20
var object2;
const countrySelectorOpened = (require(566) /* metro dependency 566: flux */).useStateFromStores([PhoneVerificationStore],
function() {
return PhoneVerificationStore.getCountrySelectorOpened();
});
const binding = env0_4;
const value2 = binding.useMemo(function() {
var items = [{name: VerificationModalScenes.OVERVIEW}];
if (countrySelectorOpened) {
items.push({name: VerificationModalScenes.ADD_PHONE});
}
return items;
}, [countrySelectorOpened]);
binding.useEffect(_fun121880, []);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
object2 = {screens: binding.useMemo(function() {
return _fun121882();
}, []), initialRouteStack: value2};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.headerBackTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']);
return <Navigator {...object2} />;
}
function _fun121880() { // fn#121880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:1080, offset: 0x025537cb, size: 63 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
(require(4015) /* metro dependency 4015: ChatInputUtils */).dismissKeyboard();
}
function _fun121881() { // fn#121881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:1186, offset: 0x0255380a, size: 17 bytes, params: 1, frame: 9
return getScreens_121882();
}
function getScreens_121882() { // fn#121882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:1190, offset: 0x0255381b, size: 1251 bytes, params: 1, frame: 21
var environment;
const closure = function(a0) {
var object = {};
object.impression_group = require(dependencyMap[13]).ImpressionGroups.USER_VERIFICATION_MODAL_FLOW;
object.step = a0;
return object;
};
const object14 = {};
const value = environment.__proto__.__proto__;
const CHANGE_EMAIL_COLLECT_REASONS = VerificationModalScenes.CHANGE_EMAIL_COLLECT_REASONS;
const object15 = {};
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
let USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object15.impressionName = USER_VERIFICATION_MODAL;
const CHANGE_EMAIL_COLLECT_REASONS2 = VerificationModalScenes.CHANGE_EMAIL_COLLECT_REASONS;
object15.impressionProperties = closure(CHANGE_EMAIL_COLLECT_REASONS2);
object15.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object15.render = function() {
return null;
};
object14[CHANGE_EMAIL_COLLECT_REASONS] = object15;
const CHANGE_EMAIL_WARNING = VerificationModalScenes.CHANGE_EMAIL_WARNING;
const object16 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object16.impressionName = USER_VERIFICATION_MODAL;
const CHANGE_EMAIL_WARNING2 = VerificationModalScenes.CHANGE_EMAIL_WARNING;
object16.impressionProperties = closure(CHANGE_EMAIL_WARNING2);
object16.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object16.render = function() {
return null;
};
object14[CHANGE_EMAIL_WARNING] = object16;
const OVERVIEW = VerificationModalScenes.OVERVIEW;
const object17 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object17.impressionName = USER_VERIFICATION_MODAL;
const OVERVIEW2 = VerificationModalScenes.OVERVIEW;
object17.impressionProperties = closure(OVERVIEW2);
object17.gestureEnabled = false;
object17.headerLeft = function() {
return null;
};
object17.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object17.headerRight = headerRight_121887;
object17.render = render_121890;
object14[OVERVIEW] = object17;
let RESEND_EMAIL = VerificationModalScenes.RESEND_EMAIL;
const object18 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object18.impressionName = USER_VERIFICATION_MODAL;
const RESEND_EMAIL2 = VerificationModalScenes.RESEND_EMAIL;
object18.impressionProperties = closure(RESEND_EMAIL2);
object18.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object18.render = render_121891;
object14[RESEND_EMAIL] = object18;
const CHANGE_EMAIL_COMPLETE = VerificationModalScenes.CHANGE_EMAIL_COMPLETE;
const object19 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object19.impressionName = USER_VERIFICATION_MODAL;
RESEND_EMAIL = VerificationModalScenes.RESEND_EMAIL;
object19.impressionProperties = closure(RESEND_EMAIL);
object19.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object19.render = render_121892;
object14[CHANGE_EMAIL_COMPLETE] = object19;
const CONFIRM_EMAIL_CHANGE_CODE = VerificationModalScenes.CONFIRM_EMAIL_CHANGE_CODE;
const object20 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object20.impressionName = USER_VERIFICATION_MODAL;
const CONFIRM_EMAIL_CHANGE_CODE2 = VerificationModalScenes.CONFIRM_EMAIL_CHANGE_CODE;
object20.impressionProperties = closure(CONFIRM_EMAIL_CHANGE_CODE2);
object20.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object20.render = render_121893;
object14[CONFIRM_EMAIL_CHANGE_CODE] = object20;
const CONFIRM_EMAIL_CHANGE_START = VerificationModalScenes.CONFIRM_EMAIL_CHANGE_START;
const object21 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object21.impressionName = USER_VERIFICATION_MODAL;
const CONFIRM_EMAIL_CHANGE_START2 = VerificationModalScenes.CONFIRM_EMAIL_CHANGE_START;
object21.impressionProperties = closure(CONFIRM_EMAIL_CHANGE_START2);
object21.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object21.render = render_121894;
object14[CONFIRM_EMAIL_CHANGE_START] = object21;
const ENTER_EMAIL = VerificationModalScenes.ENTER_EMAIL;
const object22 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object22.impressionName = USER_VERIFICATION_MODAL;
const ENTER_EMAIL2 = VerificationModalScenes.ENTER_EMAIL;
object22.impressionProperties = closure(ENTER_EMAIL2);
object22.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object22.render = render_121895;
object14[ENTER_EMAIL] = object22;
const ADD_PHONE = VerificationModalScenes.ADD_PHONE;
const object23 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object23.impressionName = USER_VERIFICATION_MODAL;
const ADD_PHONE2 = VerificationModalScenes.ADD_PHONE;
object23.impressionProperties = closure(ADD_PHONE2);
object23.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object23.render = render_121896;
object14[ADD_PHONE] = object23;
const VERIFY_PHONE = VerificationModalScenes.VERIFY_PHONE;
const object24 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object24.impressionName = USER_VERIFICATION_MODAL;
const VERIFY_PHONE2 = VerificationModalScenes.VERIFY_PHONE;
object24.impressionProperties = closure(VERIFY_PHONE2);
object24.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object24.render = render_121906;
object14[VERIFY_PHONE] = object24;
const VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
const object25 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object25.impressionName = USER_VERIFICATION_MODAL;
const VERIFY_PASSWORD2 = VerificationModalScenes.VERIFY_PASSWORD;
object25.impressionProperties = closure(VERIFY_PASSWORD2);
object25.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object25.render = render_121907;
object14[VERIFY_PASSWORD] = object25;
const PHONE_THEN_EMAIL_INTERSTITIAL = VerificationModalScenes.PHONE_THEN_EMAIL_INTERSTITIAL;
const object26 = {};
USER_VERIFICATION_MODAL = ImpressionNames.USER_VERIFICATION_MODAL;
object26.impressionName = USER_VERIFICATION_MODAL;
const PHONE_THEN_EMAIL_INTERSTITIAL2 = VerificationModalScenes.PHONE_THEN_EMAIL_INTERSTITIAL;
object26.impressionProperties = closure(PHONE_THEN_EMAIL_INTERSTITIAL2);
object26.headerTitle = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderNoTitle();
object26.render = render_121908;
object14[PHONE_THEN_EMAIL_INTERSTITIAL] = object26;
return object14;
}
function getScreens_121882HeaderRight() { // fn#121887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:1994, owner: getScreens_121882.headerRight, offset: 0x02553d34, size: 129 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const headerActionButtonProps = {source: importDefault(9139) /* metro dependency 9139 */};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const PdRCRg = (require(1244) /* metro dependency 1244: indexNative */).t.PdRCRg;
headerActionButtonProps.accessibilityLabel = Reflect.apply(string, intl, [PdRCRg]);
headerActionButtonProps.onPress = onPress_121888;
return <HeaderActionButton {...headerActionButtonProps} />;
}
function getScreens_121882Render_121890() { // fn#121890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:2332, owner: getScreens_121882.render, offset: 0x02553e6c, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(15854) /* metro dependency 15854: Overview */);
}
function getScreens_121882Render_121891() { // fn#121891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:2539, owner: getScreens_121882.render, offset: 0x02553e93, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(8960) /* metro dependency 8960: ResendEmail */);
}
function getScreens_121882Render_121893() { // fn#121893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:2988, owner: getScreens_121882.render, offset: 0x02553eba, size: 46 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component isChangeEmail={false} />)(importDefault(8965) /* metro dependency 8965: ConfirmEmailChangeCode */);
}
function getScreens_121882Render_121894() { // fn#121894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:3239, owner: getScreens_121882.render, offset: 0x02553ee8, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(8962) /* metro dependency 8962: ConfirmEmailChangeStart */);
}
function getScreens_121882Render_121895() { // fn#121895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:3444, owner: getScreens_121882.render, offset: 0x02553f0f, size: 46 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component isChangeEmail={false} />)(importDefault(9007) /* metro dependency 9007: EnterEmail */);
}
function getScreens_121882Render_121896(a0, a1) { // fn#121896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:3661, owner: getScreens_121882.render, offset: 0x02553f3d, size: 111 bytes, params: 3, frame: 17
const env0_0 = a1;
const AddPhone = importDefault(9015) /* metro dependency 9015: AddPhone */;
const defaultImportProps = {...a0};
const ChangePhoneReason = (require(9016) /* metro dependency 9016: PhoneActionCreators */).ChangePhoneReason;
const USER_ACTION_REQUIRED = ChangePhoneReason.USER_ACTION_REQUIRED;
defaultImportProps['reason'] = USER_ACTION_REQUIRED;
defaultImportProps['onComplete'] = function(a0) {
var VERIFY_PHONE = VerificationModalScenes.VERIFY_PHONE;
return require.push(VERIFY_PHONE, {phone: a0, onVerified: _fun121898});
};
return <AddPhone {...defaultImportProps} />;
}
function getScreens_121882Render_121906(a0) { // fn#121906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:4629, owner: getScreens_121882.render, offset: 0x0255421a, size: 56 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component disableKeyboardAvoidingView {...a0} />)(importDefault(9024) /* metro dependency 9024: VerifyPhone */);
}
function getScreens_121882Render_121907(a0) { // fn#121907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:4876, owner: getScreens_121882.render, offset: 0x02554252, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(9010) /* metro dependency 9010: UserSettingsConfirmPassword */);
}
function getScreens_121882Render_121908(a0, a1) { // fn#121908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:5120, owner: getScreens_121882.render, offset: 0x02554283, size: 31 bytes, params: 3, frame: 13
return <PhoneThenEmailInterstitial navigation={a1} />;
}
function headerRightOnPress_121888() { // fn#121888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:2112, owner: getScreens_121882.headerRight.onPress, offset: 0x02553db5, size: 139 bytes, params: 1, frame: 18
var environment;
let value = environment.__proto__.__proto__.__proto__.__proto__;
value = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
const showSimpleActionSheet = value.showSimpleActionSheet;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer']);
object.isDestructive = true;
object.onPress = onPress_121889;
Reflect.apply(showSimpleActionSheet, value, [{'key': 'VerificationOverviewMore', 'options': null, 'hasIcons': false,
options: [object]}]);
}
function renderOnComplete_121897(a0) { // fn#121897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:3751, owner: getScreens_121882.render.onComplete, offset: 0x02553fac, size: 57 bytes, params: 2, frame: 14
const push = require.push;
const VERIFY_PHONE = VerificationModalScenes.VERIFY_PHONE;
return Reflect.apply(push, require, [VERIFY_PHONE, {phone: a0, onVerified: onVerified_121898}]);
}
function onPress_body() { // fn#121889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:2264, owner: getScreens_121882.headerRight.onPress.body, offset: 0x02553e40, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
return (importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).logout('verification_modal');
}
function onCompleteOnVerified_121898(a0) { // fn#121898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:3785, owner: getScreens_121882.render.onComplete.onVerified, offset: 0x02553fe5, size: 113 bytes, params: 2, frame: 17
const env0_0 = a0;
const push = require.push;
const VERIFY_PASSWORD = VerificationModalScenes.VERIFY_PASSWORD;
const object2 = {hideUnverifiedBanner: true};
const binding = env5_3;
const env0_2 = binding(_fun121900);
object2.onSubmit = onSubmit_121901;
const env0_1 = binding(_fun121903);
object2.onSuccess = onSuccess_121905;
Reflect.apply(push, require, [VERIFY_PASSWORD, object2]);
}
function* _fun121900(a0) { // fn#121900, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:3872, offset: 0x02554061, size: 239 bytes, params: 2, frame: 22
var binding;
var binding2;
var property;
var value3;
var isPhoneReverification;
var getCurrentUser;
var value4;
var getAction;
var value5;
var isPhoneReverification2;
var binding3;
var value6;
var addPhone;
var binding4;
var ChangePhoneReason;
var USER_ACTION_REQUIRED;
var value8;
var reverifyPhone;
var value9;
var binding5;
var value10;
var error;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
try {
binding = env7_1;
} catch (error) {
return error;
}
try {
binding2 = env7_2;
} catch (error) {
return error;
}
try {
property = binding2[26];
} catch (error) {
return error;
}
try {
value3 = binding(property);
} catch (error) {
return error;
}
try {
isPhoneReverification = value3.isPhoneReverification;
} catch (error) {
return error;
}
try {
binding = env7_8;
} catch (error) {
return error;
}
try {
getCurrentUser = binding.getCurrentUser;
} catch (error) {
return error;
}
try {
value4 = Reflect.apply(getCurrentUser, binding, []);
} catch (error) {
return error;
}
try {
binding = env7_7;
} catch (error) {
return error;
}
try {
getAction = binding.getAction;
} catch (error) {
return error;
}
try {
value5 = Reflect.apply(getAction, binding, []);
} catch (error) {
return error;
}
try {
isPhoneReverification2 = Reflect.apply(isPhoneReverification, value3, [value4, value5]);
} catch (error) {
return error;
}
try {
binding = env7_1;
} catch (error) {
return error;
}
try {
binding3 = env7_2;
} catch (error) {
return error;
}
try {
property = binding3[25];
} catch (error) {
return error;
}
try {
value6 = binding(property);
} catch (error) {
return error;
}
if (isPhoneReverification2) {
try {
reverifyPhone = value6.reverifyPhone;
} catch (error) {
return error;
}
value9 = environment.__proto__;
try {
binding = env1_0;
} catch (error) {
return error;
}
try {
binding5 = env7_0;
} catch (error) {
return error;
}
try {
property = binding3[25];
} catch (error) {
return error;
}
try {
value = binding5(property);
} catch (error) {
return error;
}
try {
ChangePhoneReason = value.ChangePhoneReason;
} catch (error) {
return error;
}
try {
USER_ACTION_REQUIRED = ChangePhoneReason.USER_ACTION_REQUIRED;
} catch (error) {
return error;
}
try {
value = Reflect.apply(reverifyPhone, value6, [binding, a0, USER_ACTION_REQUIRED]);
} catch (error) {
return error;
}
yield value;
try {
value = undefined;
value10 = false;
} catch (error) {
return error;
}
if (value10) {
return value;
}
} else {
try {
addPhone = value6.addPhone;
} catch (error) {
return error;
}
try {
binding = env1_0;
} catch (error) {
return error;
}
try {
binding4 = env7_0;
} catch (error) {
return error;
}
try {
property = binding3[25];
} catch (error) {
return error;
}
try {
value = binding4(property);
} catch (error) {
return error;
}
try {
ChangePhoneReason = value.ChangePhoneReason;
} catch (error) {
return error;
}
try {
USER_ACTION_REQUIRED = ChangePhoneReason.USER_ACTION_REQUIRED;
} catch (error) {
return error;
}
try {
value = Reflect.apply(addPhone, value6, [binding, a0, USER_ACTION_REQUIRED]);
} catch (error) {
return error;
}
yield value;
try {
value = undefined;
value8 = false;
} catch (error) {
return error;
}
if (value8) {
return value;
}
}
return value;
}
function* _fun121903() { // fn#121903, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:4202, offset: 0x0255415b, size: 158 bytes, params: 1, frame: 15
var environment;
var value7;
var value8;
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
var binding = env7_0;
var value3 = binding(env7_2[27]);
yield value3.waitUntil(_fun121904);
if (false) {
return undefined;
}
var action = env7_7.getAction();
var REQUIRE_VERIFIED_EMAIL = env7_9.REQUIRE_VERIFIED_EMAIL;
if (action === REQUIRE_VERIFIED_EMAIL) {
value8 = environment.__proto__.__proto__.__proto__;
binding = env3_0;
binding.push(env7_10.PHONE_THEN_EMAIL_INTERSTITIAL);
} else {
value7 = environment.__proto__.__proto__.__proto__;
binding = env3_0;
binding.push(env7_10.OVERVIEW);
}
}
}
function _fun121904() { // fn#121904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16056:4240, offset: 0x025541f9, size: 33 bytes, params: 1, frame: 10
const action = env8_7.getAction();
const REQUIRE_VERIFIED_PHONE = env8_9.REQUIRE_VERIFIED_PHONE;
return action !== REQUIRE_VERIFIED_PHONE;
}
@@ -0,0 +1,209 @@
/* Metro module 9024; source: modules/verification/native/components/VerifyPhone.tsx; dependencies: [5, 57, 31, 33, 9016, 9025, 9026, 1244, 2] */
function _fun70198(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:6, offset: 0x01cf24f6, size: 174 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 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/VerifyPhone.tsx');
exports.default = VerifyPhone;
}
function VerifyPhone({phone, loading, error, onCodeEnteredIntercept, onVerified, backgroundStyle, disableKeyboardAvoidingView}) { // fn#70199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:241, offset: 0x01cf25a4, size: 456 bytes, params: 2, frame: 29
var object2;
loading = !(loading === undefined) && loading;
let env0_4 = undefined;
const binding = undefined;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [null]);
const binding2 = env0_4;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_3 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value4[0];
env0_4 = value4[1];
const value6 = binding.useCallback(_fun70200(), [onCodeEnteredIntercept, onVerified, phone]);
(importDefault(9025) /* metro dependency 9025: useSmsAutofillAndroid */)(binding.useCallback(_fun70204(), [value6]));
const CodeField = importDefault(9026) /* metro dependency 9026: CodeField */;
object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Xclkxp = (require(1244) /* metro dependency 1244: indexNative */).t.Xclkxp;
object2.title = Reflect.apply(string, intl, [Xclkxp]);
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4qMI6A']);
object2.error = error ?? property;
object2.backgroundStyle = backgroundStyle;
object2.loading = loading;
object2.onCodeEntered = value6;
const CodeType = (require(9026) /* metro dependency 9026: CodeField */).CodeType;
const NUMERIC = CodeType.NUMERIC;
object2.codeType = NUMERIC;
object2.disabled = property2;
object2.disableKeyboardAvoidingView = disableKeyboardAvoidingView;
return <CodeField {...object2} />;
}
function _fun70200() { // fn#70200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:482, offset: 0x01cf276c, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun70202);
return _fun70203;
}
function _fun70204() { // fn#70204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:738, offset: 0x01cf284f, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun70206);
return _fun70207;
}
function* _fun70202(a0) { // fn#70202, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:502, offset: 0x01cf279b, size: 180 bytes, params: 2, frame: 20
var message;
var value4;
var defaultImport;
var value5;
var value6;
var binding;
var binding2;
var property;
var value8;
var verifyPhone;
var value9;
var value10;
var value11;
var token;
var error;
var body;
let value = undefined;
if (true) {
value = undefined;
reducibleJoin4: while (true) {
reduciblePort35: while (true) {
exceptionLanding32: while (true) {
try {
} catch (error) {
break exceptionLanding32;
}
break reducibleJoin4;
}
binding = env2_3;
body = error.body;
reducibleJoin34: while (true) {
if (body == null) {
message = value;
break reducibleJoin34;
}
message = body.message;
break reducibleJoin34;
}
binding(message);
break reduciblePort35;
}
return value;
}
try {
value4 = importDefault == null;
} catch (error) {
break exceptionLanding32;
}
if (!value4) {
try {
} catch (error) {
break exceptionLanding32;
}
try {
defaultImport = importDefault(a0);
} catch (error) {
break exceptionLanding32;
}
yield defaultImport;
try {
value5 = undefined;
value6 = false;
} catch (error) {
break exceptionLanding32;
}
if (value6) {
return value5;
}
reducibleJoin13: while (true) {
if (value5) {
return value;
}
break reducibleJoin13;
}
}
try {
binding = env3_1;
} catch (error) {
break exceptionLanding32;
}
try {
binding2 = env3_2;
} catch (error) {
break exceptionLanding32;
}
try {
property = binding2[4];
} catch (error) {
break exceptionLanding32;
}
try {
value8 = binding(property);
} catch (error) {
break exceptionLanding32;
}
try {
verifyPhone = value8.verifyPhone;
} catch (error) {
break exceptionLanding32;
}
try {
} catch (error) {
break exceptionLanding32;
}
try {
value9 = Reflect.apply(verifyPhone, value8, [require, a0, false]);
} catch (error) {
break exceptionLanding32;
}
yield value9;
try {
value10 = undefined;
value11 = false;
} catch (error) {
break exceptionLanding32;
}
if (value11) {
return value10;
}
try {
token = value10.token;
} catch (error) {
break exceptionLanding32;
}
try {
} catch (error) {
break exceptionLanding32;
}
try {
dependencyMap(token);
} catch (error) {
break exceptionLanding32;
}
}
return value;
}
function* _fun70206(a0) { // fn#70206, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:758, offset: 0x01cf287e, size: 65 bytes, params: 2, frame: 13
if (true) {
value = environment.__proto__.__proto__;
env2_4(true);
yield env2_5(a0);
if (false) {
return undefined;
}
env2_4(false);
}
}
@@ -0,0 +1,27 @@
/* Metro module 9025; source: modules/verification/native/hooks/useSmsAutofill.android.tsx; dependencies: [31, 27, 2] */
function _fun70208(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9210:6, offset: 0x01cf28bf, size: 169 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importAll(31) /* metro dependency 31 */;
const {NativeModules, NativeEventEmitter} = require(27) /* metro dependency 27 */;
const SmsAutofillManager = NativeModules.SmsAutofillManager;
const nativeEventEmitter = new NativeEventEmitter(SmsAutofillManager);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/hooks/useSmsAutofill.android.tsx');
exports.default = useSmsAutofill;
}
function useSmsAutofill(a0) { // fn#70209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9210:295, offset: 0x01cf2968, size: 74 bytes, params: 2, frame: 14
const binding = a0;
return binding.useEffect(_fun70211, [binding.useCallback(_fun70210, [a0])]);
}
function _fun70210({code}) { // fn#70210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9210:343, offset: 0x01cf29b2, size: 24 bytes, params: 2, frame: 11
return env0_0(code);
}
function _fun70211() { // fn#70211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9210:386, offset: 0x01cf29ca, size: 63 bytes, params: 1, frame: 15
const env0_0 = env1_2.addListener('verificationCodeReceived', env0_1);
SmsAutofillManager.startSmsRetriever();
return _fun70212;
}