531 lines
27 KiB
TypeScript
531 lines
27 KiB
TypeScript
/* Metro module 14303; source: modules/auth/native/RegistrationStepsUtils.tsx; dependencies: [5, 31, 13285, 5077, 14304, 14305, 661, 33, 480, 14306, 14312, 14313, 14325, 14326, 14332, 8971, 14334, 14335, 9019, 9016, 14339, 14340, 14344, 14345, 1861, 14315, 4131, 8977, 14352, 2] */
|
|
function _fun108207(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:6, offset: 0x02318942, size: 522 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const headerTitle_108208 = function() {
|
|
return null;
|
|
};
|
|
const closure = function() {
|
|
return _handleRegistrationSubmit.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
importAll(31) /* metro dependency 31 */;
|
|
const uniqueUsernamesStore = importDefault(13285) /* metro dependency 13285: UniqueUsernamesStore */;
|
|
const env0_5 = (require(5077) /* metro dependency 5077: PromoEmailConsentStore */).usePromoEmailConsentStore;
|
|
let value = require(14304) /* metro dependency 14304: RegistrationUIStore */;
|
|
const env0_6 = value.setRegistrationErrors;
|
|
const env0_7 = value.setSubmitting;
|
|
const env0_8 = value.useRegistrationUIStore;
|
|
const env0_9 = value.clearRegistrationErrorMessage;
|
|
value = require(14305) /* metro dependency 14305: RegistrationConstants */;
|
|
const env0_10 = value.authStateToRegisterTransitionStep;
|
|
const env0_11 = value.RegisterTransitionSteps;
|
|
const env0_12 = value.RegistrationSteps;
|
|
const env0_13 = value.RegistrationTransitionActionTypes;
|
|
const AuthStates = (require(661) /* metro dependency 661: Constants */).AuthStates;
|
|
const env0_15 = (require(33) /* metro dependency 33 */).jsx;
|
|
const WELCOME = AuthStates.WELCOME;
|
|
items = [WELCOME];
|
|
const REGISTER_IDENTITY = AuthStates.REGISTER_IDENTITY;
|
|
items[1] = REGISTER_IDENTITY;
|
|
const REGISTER_DISPLAY_NAME = AuthStates.REGISTER_DISPLAY_NAME;
|
|
items[2] = REGISTER_DISPLAY_NAME;
|
|
const REGISTER_ACCOUNT_INFORMATION = AuthStates.REGISTER_ACCOUNT_INFORMATION;
|
|
items[3] = REGISTER_ACCOUNT_INFORMATION;
|
|
const AGE_GATE = AuthStates.AGE_GATE;
|
|
items[4] = AGE_GATE;
|
|
const closure2 = getRegistrationSteps;
|
|
const closure3 = getNextAuthState;
|
|
const closure4 = getPreviousAuthState;
|
|
const closure5 = function(a0) {
|
|
var value2 = getPreviousAuthState(a0);
|
|
if (value2 != null) {
|
|
return authStateToRegisterTransitionStep(value2);
|
|
}
|
|
};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/RegistrationStepsUtils.tsx');
|
|
exports.getRegistrationSteps = closure2;
|
|
exports.getAllAuthScreens = getAllAuthScreens;
|
|
exports.getNextAuthState = closure3;
|
|
exports.getPreviousAuthState = closure4;
|
|
exports.getPreviousRegistrationTransitionStep = closure5;
|
|
exports.getNextRegistrationTransitionStep = function(a0) {
|
|
var value2 = getNextAuthState(a0);
|
|
if (value2 != null) {
|
|
return authStateToRegisterTransitionStep(value2);
|
|
}
|
|
};
|
|
exports.handleNextOrSubmitRegistration = function() {
|
|
return _handleNextOrSubmitRegistration.apply(this, arguments);
|
|
};
|
|
exports.handleRegistrationSubmit = closure;
|
|
}
|
|
|
|
function _handleNextOrSubmitRegistration() { // fn#108209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:919, offset: 0x02318b4c, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun108211).apply(this, arguments);
|
|
}
|
|
|
|
function _handleRegistrationSubmit() { // fn#108213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:1274, offset: 0x02318c0f, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun108215).apply(this, arguments);
|
|
}
|
|
|
|
function getRegistrationSteps() { // fn#108216, offset: 0x02318e34, size: 9 bytes, params: 1, frame: 1
|
|
return env0_16;
|
|
}
|
|
|
|
function getNextAuthState(a0) { // fn#108217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:633, offset: 0x02318e3d, size: 65 bytes, params: 2, frame: 13
|
|
const registrationSteps = getRegistrationSteps();
|
|
const value2 = registrationSteps.indexOf(a0);
|
|
if (value2 !== -1) {
|
|
if (value2 !== registrationSteps.length - 1) {
|
|
return registrationSteps[value2 + 1];
|
|
}
|
|
}
|
|
}
|
|
|
|
function getPreviousAuthState(a0) { // fn#108218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:743, offset: 0x02318e7e, size: 58 bytes, params: 2, frame: 12
|
|
const registrationSteps = getRegistrationSteps();
|
|
const value2 = registrationSteps.indexOf(a0);
|
|
if (value2 !== -1) {
|
|
if (value2 !== 0) {
|
|
return registrationSteps[value2 - 1];
|
|
}
|
|
}
|
|
}
|
|
|
|
function getAllAuthScreens() { // fn#108220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:2088, offset: 0x02318edc, size: 1042 bytes, params: 1, frame: 22
|
|
const object2 = {};
|
|
const WELCOME = AuthStates.WELCOME;
|
|
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
|
const USER_WELCOME = ImpressionNames.USER_WELCOME;
|
|
const headerTitle_108208Binding = headerTitle_108208;
|
|
object2[WELCOME] = {'ignoreKeyboard': true, 'fullscreen': true, 'impressionName': null, 'headerTitle': null,
|
|
'headerShown': false, impressionName: USER_WELCOME, headerTitle: headerTitle_108208Binding,
|
|
render: render_108221};
|
|
const REGISTER_IDENTITY = AuthStates.REGISTER_IDENTITY;
|
|
const object4 = {'ignoreKeyboard': true, 'fullscreen': true};
|
|
let USER_REGISTRATION = ImpressionNames.USER_REGISTRATION;
|
|
object4.impressionName = USER_REGISTRATION;
|
|
const ImpressionGroups = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionGroups;
|
|
let USER_REGISTRATION_FLOW = ImpressionGroups.USER_REGISTRATION_FLOW;
|
|
const IDENTITY = RegistrationSteps.IDENTITY;
|
|
object4.impressionProperties = {impression_group: USER_REGISTRATION_FLOW, step: IDENTITY};
|
|
object4.headerTitle = headerTitle_108208Binding;
|
|
object4.headerLeft = headerLeft_108222;
|
|
object4.render = render_108223;
|
|
object2[REGISTER_IDENTITY] = object4;
|
|
const REGISTER_DISPLAY_NAME = AuthStates.REGISTER_DISPLAY_NAME;
|
|
USER_REGISTRATION = ImpressionNames.USER_REGISTRATION;
|
|
USER_REGISTRATION_FLOW = ImpressionGroups.USER_REGISTRATION_FLOW;
|
|
const DISPLAY_NAME = RegistrationSteps.DISPLAY_NAME;
|
|
object2[REGISTER_DISPLAY_NAME] = {'ignoreKeyboard': true, 'fullscreen': true, impressionName: USER_REGISTRATION,
|
|
impressionProperties: {impression_group: USER_REGISTRATION_FLOW, step: DISPLAY_NAME},
|
|
headerTitle: headerTitle_108208Binding, headerLeft: headerLeft_108224, render: render_108225};
|
|
const REGISTER_ACCOUNT_INFORMATION = AuthStates.REGISTER_ACCOUNT_INFORMATION;
|
|
USER_REGISTRATION = ImpressionNames.USER_REGISTRATION;
|
|
USER_REGISTRATION_FLOW = ImpressionGroups.USER_REGISTRATION_FLOW;
|
|
const ACCOUNT_INFORMATION = RegistrationSteps.ACCOUNT_INFORMATION;
|
|
object2[REGISTER_ACCOUNT_INFORMATION] = {'ignoreKeyboard': true, 'fullscreen': true,
|
|
impressionName: USER_REGISTRATION, impressionProperties: {impression_group: USER_REGISTRATION_FLOW,
|
|
step: ACCOUNT_INFORMATION}, headerTitle: headerTitle_108208Binding, headerLeft: headerLeft_108226,
|
|
render: render_108227};
|
|
const VERIFY_PHONE = AuthStates.VERIFY_PHONE;
|
|
const USER_VERIFY_PHONE = ImpressionNames.USER_VERIFY_PHONE;
|
|
USER_REGISTRATION_FLOW = ImpressionGroups.USER_REGISTRATION_FLOW;
|
|
object2[VERIFY_PHONE] = {ignoreKeyboard: true, impressionName: USER_VERIFY_PHONE,
|
|
impressionProperties: {impression_group: USER_REGISTRATION_FLOW}, headerTitle: headerTitle_108208Binding,
|
|
headerLeft: headerLeft_108228, render: render_108229};
|
|
const LOGIN = AuthStates.LOGIN;
|
|
const USER_LOGIN = ImpressionNames.USER_LOGIN;
|
|
const USER_LOGIN_FLOW = ImpressionGroups.USER_LOGIN_FLOW;
|
|
object2[LOGIN] = {'ignoreKeyboard': true, 'fullscreen': true, impressionName: USER_LOGIN,
|
|
impressionProperties: {impression_group: USER_LOGIN_FLOW}, headerTitle: headerTitle_108208Binding,
|
|
render: render_108230};
|
|
const MFA = AuthStates.MFA;
|
|
object2[MFA] = {'fullscreen': true, 'ignoreKeyboard': true, 'headerTitle': null, 'headerShown': false,
|
|
headerTitle: headerTitle_108208Binding, render: render_108231};
|
|
const ACCOUNT_DISABLED_OR_DELETION_SCHEDULED = AuthStates.ACCOUNT_DISABLED_OR_DELETION_SCHEDULED;
|
|
object2[ACCOUNT_DISABLED_OR_DELETION_SCHEDULED] = {'ignoreKeyboard': true, 'fullscreen': true,
|
|
headerTitle: headerTitle_108208Binding, render: render_108232};
|
|
const COUNTRY_SELECT = AuthStates.COUNTRY_SELECT;
|
|
object2[COUNTRY_SELECT] = {ignoreKeyboard: true, headerTitle: headerTitle_108208Binding, render: render_108233};
|
|
const EXTERNAL_LINK = AuthStates.EXTERNAL_LINK;
|
|
object2[EXTERNAL_LINK] = {ignoreKeyboard: true, headerTitle: headerTitle_108208Binding, render: render_108236};
|
|
const AGE_GATE = AuthStates.AGE_GATE;
|
|
const USER_AGE_GATE = ImpressionNames.USER_AGE_GATE;
|
|
object2[AGE_GATE] = {'ignoreKeyboard': true, 'fullscreen': true, impressionName: USER_AGE_GATE,
|
|
headerTitle: headerTitle_108208Binding, headerLeft: headerLeft_108237, render: render_108238};
|
|
const AGE_GATE_UNDERAGE = AuthStates.AGE_GATE_UNDERAGE;
|
|
const USER_AGE_GATE_UNDERAGE = ImpressionNames.USER_AGE_GATE_UNDERAGE;
|
|
object2[AGE_GATE_UNDERAGE] = {'ignoreKeyboard': true, 'fullscreen': true, impressionName: USER_AGE_GATE_UNDERAGE,
|
|
impressionProperties: function({existingUser}) {
|
|
var object = {};
|
|
object.impression_group = require(dependencyMap[8]).ImpressionGroups.USER_REGISTRATION_FLOW;
|
|
object.existing_user = existingUser;
|
|
return object;
|
|
}, headerTitle: headerTitle_108208Binding, render: render_108240};
|
|
const COMPANION_REMOTE_AUTH = AuthStates.COMPANION_REMOTE_AUTH;
|
|
object2[COMPANION_REMOTE_AUTH] = {'ignoreKeyboard': true, 'fullscreen': true,
|
|
headerTitle: headerTitle_108208Binding, render: render_108242};
|
|
return object2;
|
|
}
|
|
|
|
function* _fun108211(a0, a1, a2) { // fn#108211, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:1004, offset: 0x02318b89, size: 134 bytes, params: 4, frame: 19
|
|
var object2;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_9();
|
|
var value3 = env2_18(a0);
|
|
if (value3 != null) {
|
|
object2 = {step: env2_10(a0), toStep: env2_10(value3)};
|
|
object2.actionType = env2_13.SUCCESS;
|
|
a2(object2);
|
|
a1.push(value3);
|
|
return undefined;
|
|
}
|
|
yield env2_23(a0, a1, a2);
|
|
}
|
|
}
|
|
|
|
function* _fun108215(a0, a1, a2) { // fn#108215, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:1347, offset: 0x02318c4c, size: 488 bytes, params: 4, frame: 27
|
|
var r12;
|
|
var username;
|
|
var value6;
|
|
var binding2;
|
|
var property;
|
|
var value8;
|
|
var registerFull;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var object4;
|
|
var value12;
|
|
var SUCCESS;
|
|
var object5;
|
|
var REGISTER;
|
|
var error;
|
|
var APIError;
|
|
var value13;
|
|
var getAuthenticationErrorsFromAPIError;
|
|
var value14;
|
|
var value15;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_4;
|
|
var value3 = binding.registrationUsernameSuggestion();
|
|
binding = env2_8;
|
|
var getState = binding.getState;
|
|
var registrationOptions = Reflect.apply(getState, binding, []).registrationOptions;
|
|
var isNullOrEmpty2 = env2_0(env2_2[24]).isNullOrEmpty(value3);
|
|
var value5 = null;
|
|
reducibleJoin3: while (true) {
|
|
if (isNullOrEmpty2) {
|
|
r12 = value5;
|
|
break reducibleJoin3;
|
|
}
|
|
username = registrationOptions.username;
|
|
value6 = username === value3;
|
|
r12 = value6;
|
|
break reducibleJoin3;
|
|
}
|
|
var object6 = {};
|
|
copyDataProperties(object6, registrationOptions, undefined);
|
|
object6['usedUsernameSuggestion'] = r12;
|
|
var state = env2_5.getState();
|
|
reducibleJoin5: while (true) {
|
|
if (state.required) {
|
|
object6.promoEmailConsent = state;
|
|
break reducibleJoin5;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
env2_7(true);
|
|
env2_6({});
|
|
reducibleJoin7: while (true) {
|
|
reduciblePort42: while (true) {
|
|
exceptionLanding38: while (true) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
env2_7(false);
|
|
binding = env2_0;
|
|
APIError = binding(env2_2[26]).APIError;
|
|
if (!(error instanceof APIError)) {
|
|
return undefined;
|
|
}
|
|
binding = env2_0;
|
|
value13 = binding(env2_2[27]);
|
|
getAuthenticationErrorsFromAPIError = value13.getAuthenticationErrorsFromAPIError;
|
|
value14 = Reflect.apply(getAuthenticationErrorsFromAPIError, value13, [error]);
|
|
env2_6(value14);
|
|
value15 = env2_10(a0);
|
|
reducibleJoin42: while (true) {
|
|
if (value5 == value15) {
|
|
break reducibleJoin42;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[28])(a1, a2, value14, value15);
|
|
break reducibleJoin42;
|
|
}
|
|
break reduciblePort42;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
property = binding2[25];
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
registerFull = value8.registerFull;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(registerFull, value8, [object6]);
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
yield value9;
|
|
try {
|
|
value10 = undefined;
|
|
value11 = false;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
if (value11) {
|
|
return value10;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
value12 = binding(a0);
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
object4.step = value12;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
binding = env2_13;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
SUCCESS = binding.SUCCESS;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
object4.actionType = SUCCESS;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
object4.overrideRegistrationOptions = object6;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
a2(object4);
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
binding = env2_11;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
REGISTER = binding.REGISTER;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
object5.step = REGISTER;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
binding = env2_13;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
SUCCESS = binding.SUCCESS;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
object5.actionType = SUCCESS;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
object5.overrideRegistrationOptions = object6;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
a2(object5);
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
}
|
|
}
|
|
|
|
function getAllAuthScreensRender() { // fn#108221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:2267, owner: getAllAuthScreens.render, offset: 0x023192ee, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(14306) /* metro dependency 14306: Welcome */);
|
|
}
|
|
|
|
function getAllAuthScreensHeaderLeft(a0) { // fn#108222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:2537, owner: getAllAuthScreens.headerLeft, offset: 0x02319315, size: 85 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
const BackButtonWithTracking = (require(14312) /* metro dependency 14312: RegistrationUtils */).BackButtonWithTracking;
|
|
const backButtonWithTrackingProps = {...a0};
|
|
const getPreviousRegistrationTransitionStepBinding = getPreviousRegistrationTransitionStep;
|
|
const REGISTER_IDENTITY = AuthStates.REGISTER_IDENTITY;
|
|
backButtonWithTrackingProps['destinationStep'] = getPreviousRegistrationTransitionStepBinding(REGISTER_IDENTITY);
|
|
return <BackButtonWithTracking {...backButtonWithTrackingProps} />;
|
|
}
|
|
|
|
function getAllAuthScreensRender_108223() { // fn#108223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:2664, owner: getAllAuthScreens.render, offset: 0x0231936a, size: 45 bytes, params: 1, frame: 13
|
|
const RegisterIdentity = (require(14313) /* metro dependency 14313: RegisterIdentity */).RegisterIdentity;
|
|
return <RegisterIdentity />;
|
|
}
|
|
|
|
function getAllAuthScreensHeaderLeft_108224(a0) { // fn#108224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:2960, owner: getAllAuthScreens.headerLeft, offset: 0x02319397, size: 85 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
const BackButtonWithTracking = (require(14312) /* metro dependency 14312: RegistrationUtils */).BackButtonWithTracking;
|
|
const backButtonWithTrackingProps = {...a0};
|
|
const getPreviousRegistrationTransitionStepBinding = getPreviousRegistrationTransitionStep;
|
|
const REGISTER_DISPLAY_NAME = AuthStates.REGISTER_DISPLAY_NAME;
|
|
backButtonWithTrackingProps['destinationStep'] = getPreviousRegistrationTransitionStepBinding(REGISTER_DISPLAY_NAME);
|
|
return <BackButtonWithTracking {...backButtonWithTrackingProps} />;
|
|
}
|
|
|
|
function getAllAuthScreensRender_108225() { // fn#108225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:3091, owner: getAllAuthScreens.render, offset: 0x023193ec, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(14325) /* metro dependency 14325: RegisterDisplayName */);
|
|
}
|
|
|
|
function getAllAuthScreensHeaderLeft_108226(a0) { // fn#108226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:3384, owner: getAllAuthScreens.headerLeft, offset: 0x02319413, size: 85 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
const BackButtonWithTracking = (require(14312) /* metro dependency 14312: RegistrationUtils */).BackButtonWithTracking;
|
|
const backButtonWithTrackingProps = {...a0};
|
|
const getPreviousRegistrationTransitionStepBinding = getPreviousRegistrationTransitionStep;
|
|
const REGISTER_ACCOUNT_INFORMATION = AuthStates.REGISTER_ACCOUNT_INFORMATION;
|
|
backButtonWithTrackingProps['destinationStep'] = getPreviousRegistrationTransitionStepBinding(REGISTER_ACCOUNT_INFORMATION);
|
|
return <BackButtonWithTracking {...backButtonWithTrackingProps} />;
|
|
}
|
|
|
|
function getAllAuthScreensRender_108227() { // fn#108227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:3522, owner: getAllAuthScreens.render, offset: 0x02319468, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(14326) /* metro dependency 14326: RegisterAccountInformation */);
|
|
}
|
|
|
|
function getAllAuthScreensHeaderLeft_108228(a0) { // fn#108228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:3758, owner: getAllAuthScreens.headerLeft, offset: 0x0231948f, size: 76 bytes, params: 2, frame: 15
|
|
const BackButtonWithTracking = (require(14312) /* metro dependency 14312: RegistrationUtils */).BackButtonWithTracking;
|
|
const ACCOUNT_IDENTITY = RegisterTransitionSteps.ACCOUNT_IDENTITY;
|
|
return <BackButtonWithTracking {...a0} {...{['destinationStep']: ACCOUNT_IDENTITY}} />;
|
|
}
|
|
|
|
function getAllAuthScreensRender_108229(a0) { // fn#108229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:3845, owner: getAllAuthScreens.render, offset: 0x023194db, size: 49 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component {...a0} />)(importDefault(14332) /* metro dependency 14332: VerifyPhone */);
|
|
}
|
|
|
|
function getAllAuthScreensRender_108230() { // fn#108230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:4073, owner: getAllAuthScreens.render, offset: 0x0231950c, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(8971) /* metro dependency 8971: Login */);
|
|
}
|
|
|
|
function getAllAuthScreensRender_108231() { // fn#108231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:4180, owner: getAllAuthScreens.render, offset: 0x02319533, size: 46 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component inContainer />)(importDefault(14334) /* metro dependency 14334: MFA */);
|
|
}
|
|
|
|
function getAllAuthScreensRender_108232(a0) { // fn#108232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:4321, owner: getAllAuthScreens.render, offset: 0x02319561, size: 49 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component {...a0} />)(importDefault(14335) /* metro dependency 14335: AccountDisabledOrDeletionScheduled */);
|
|
}
|
|
|
|
function getAllAuthScreensRender_108233(a0, a1) { // fn#108233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:4413, owner: getAllAuthScreens.render, offset: 0x02319592, size: 72 bytes, params: 3, frame: 15
|
|
var environment;
|
|
const env0_0 = a1;
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component onClose={function() {
|
|
return require.pop();
|
|
}} onCountrySelected={onCountrySelected} />)(importDefault(9019) /* metro dependency 9019: CountryCallingCodeSelect */);
|
|
}
|
|
|
|
function getAllAuthScreensRender_108236(a0) { // fn#108236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:4571, owner: getAllAuthScreens.render, offset: 0x02319603, size: 49 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component {...a0} />)(importDefault(14339) /* metro dependency 14339: ExternalLink */);
|
|
}
|
|
|
|
function getAllAuthScreensHeaderLeft_108237(a0) { // fn#108237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:4728, owner: getAllAuthScreens.headerLeft, offset: 0x02319634, size: 85 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
const BackButtonWithTracking = (require(14312) /* metro dependency 14312: RegistrationUtils */).BackButtonWithTracking;
|
|
const backButtonWithTrackingProps = {...a0};
|
|
const getPreviousRegistrationTransitionStepBinding = getPreviousRegistrationTransitionStep;
|
|
const AGE_GATE = AuthStates.AGE_GATE;
|
|
backButtonWithTrackingProps['destinationStep'] = getPreviousRegistrationTransitionStepBinding(AGE_GATE);
|
|
return <BackButtonWithTracking {...backButtonWithTrackingProps} />;
|
|
}
|
|
|
|
function getAllAuthScreensRender_108238() { // fn#108238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:4846, owner: getAllAuthScreens.render, offset: 0x02319689, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(14340) /* metro dependency 14340: RegisterAgeGate */);
|
|
}
|
|
|
|
function getAllAuthScreensRender_108240(a0, a1) { // fn#108240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:5140, owner: getAllAuthScreens.render, offset: 0x023196ec, size: 70 bytes, params: 3, frame: 14
|
|
var environment;
|
|
const env0_0 = a1;
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component onClose={function() {
|
|
return require.popToTop();
|
|
}} {...a0} />)(importDefault(14344) /* metro dependency 14344: AgeGateUnderage */);
|
|
}
|
|
|
|
function getAllAuthScreensRender_108242() { // fn#108242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:5282, owner: getAllAuthScreens.render, offset: 0x02319745, size: 45 bytes, params: 1, frame: 13
|
|
const CompanionRemoteAuth = (require(14345) /* metro dependency 14345: CompanionRemoteAuth */).CompanionRemoteAuth;
|
|
return <CompanionRemoteAuth />;
|
|
}
|
|
|
|
function onCountrySelected(a0) { // fn#108235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14500:4470, owner: getAllAuthScreens.render.onCountrySelected, offset: 0x023195da, size: 41 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__.__proto__;
|
|
return (importDefault(9016) /* metro dependency 9016: PhoneActionCreators */).setCountryCode(a0);
|
|
}
|
|
|