566 lines
27 KiB
TypeScript
566 lines
27 KiB
TypeScript
/* 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;
|
|
}
|
|
|