Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,21 @@
|
||||
/* Metro module 14324; source: modules/auth/native/components/utils/emailFirstCountries.tsx; dependencies: [2] */
|
||||
function _fun108410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14521:6, offset: 0x0231f8c5, size: 114 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const Set = global.Set;
|
||||
const set = new Set(['FI', 'ID', 'NG', 'BJ', 'BI', 'MH', 'LS', 'IR', 'AS', 'CU', 'GI', 'SC', 'AX', 'BL', 'FK', 'GG',
|
||||
'IO', 'NU', 'PM', 'TK', 'TM', 'TV', 'WF', 'BD', 'PK', 'PH', 'MM', 'UA', 'UZ', 'KZ', 'KG', 'SA', 'MA', 'PE',
|
||||
'NL', 'KH', 'VE', 'NP', 'DZ', 'IL', 'MN', 'AZ', 'SV', 'RO', 'BY', 'EC', 'GE', 'ZA', 'RS', 'GR', 'LB', 'YE',
|
||||
'GT', 'BG', 'JO', 'NO', 'LK', 'BE', 'KW', 'PA', 'HR', 'SE', 'ET', 'KE', 'NZ', 'AO', 'HN', 'TN', 'IE', 'DO',
|
||||
'GH', 'SG', 'MG', 'DK', 'PS', 'SI', 'NI', 'HU', 'OM', 'BA', 'TJ', 'UG', 'ZM', 'CL', 'RE', 'LY', 'AM', 'JM',
|
||||
'ZW', 'QA', 'PY', 'BT', 'XK', 'PT', 'CR', 'SN', 'CM', 'TZ', 'HT', 'GN', 'CN', 'UY', 'SY', 'SK', 'CD', 'GA',
|
||||
'LT', 'ME', 'SO', 'CZ', 'TT', 'MD', 'CI', 'AL', 'MK', 'BF', 'PF', 'LU', 'RU', 'LV', 'BH', 'EE', 'SL', 'MU',
|
||||
'TR', 'GM', 'CV', 'TG', 'SD', 'BW', 'SS', 'LA', 'BZ', 'PG', 'NE', 'BS', 'SZ', 'MO', 'PR', 'GD', 'AW', 'GY',
|
||||
'CG', 'SR', 'TC', 'IS', 'TD', 'GQ', 'TO', 'GU', 'GP', 'WS', 'MQ', 'NC', 'KN', 'MW', 'BN', 'MR', 'ST', 'RW',
|
||||
'VU', 'FO', 'LR', 'GL', 'BM', 'CF', 'MC', 'VI', 'MP', 'YT', 'FM', 'IM', 'GW', 'AD', 'MV', 'SB', 'BB', 'DM',
|
||||
'MT', 'AG', 'CW', 'JE', 'KI', 'DJ', 'MF', 'CK', 'LC', 'CY', 'KY', 'VC', 'ML', 'VG', 'GF', 'FJ', 'MZ', 'EG',
|
||||
'AF', 'KM', 'AI', 'BQ', 'ER', 'LI', 'MS', 'NR', 'PW', 'SM', 'SX', 'TL']);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/emailFirstCountries.tsx');
|
||||
exports.EMAIL_FIRST_COUNTRIES = set;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 14323; source: modules/auth/native/components/utils/getDeviceCountry.tsx; dependencies: [27, 477, 651, 2] */
|
||||
function _fun108408(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14520:6, offset: 0x0231f7ac, size: 117 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/getDeviceCountry.tsx');
|
||||
exports.getDeviceCountry = getDeviceCountry;
|
||||
}
|
||||
|
||||
function getDeviceCountry() { // fn#108409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14520:230, offset: 0x0231f821, size: 164 bytes, params: 1, frame: 14
|
||||
const value2 = undefined;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
const r2 = platformUtilsModule.isAndroid() ? (require(651) /* metro dependency 651: NativeDeviceLocaleModule */).default : NativeModules.LocalizationManager;
|
||||
const value = null;
|
||||
const Language = value == r2 ? value2 : r2.getConstants().Language;
|
||||
if (value == Language) {
|
||||
return value;
|
||||
}
|
||||
const value3 = Language.split('-');
|
||||
return value3.length >= 2 ? value3[value3.length - 1].toUpperCase() : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,283 @@
|
||||
/* Metro module 14352; source: modules/auth/native/components/utils/handleRegisterErrorRedirection.tsx; dependencies: [14305, 661, 676, 8986, 14303, 14312, 2] */
|
||||
function _fun108623(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14549:6, offset: 0x023276d1, size: 316 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_108626 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const registrationConstantsModule = require(14305) /* metro dependency 14305: RegistrationConstants */;
|
||||
const env0_3 = registrationConstantsModule.RegisterTransitionSteps;
|
||||
const env0_4 = registrationConstantsModule.RegistrationTransitionActionTypes;
|
||||
const env0_5 = registrationConstantsModule.authStateToRegisterTransitionStep;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AbortCodes;
|
||||
object2 = {};
|
||||
const AuthStates = (require(676) /* metro dependency 676: ConstantsIOS */).AuthStates;
|
||||
const REGISTER_IDENTITY = AuthStates.REGISTER_IDENTITY;
|
||||
object2[REGISTER_IDENTITY] = ['email', 'phoneToken'];
|
||||
const REGISTER_DISPLAY_NAME = AuthStates.REGISTER_DISPLAY_NAME;
|
||||
object2[REGISTER_DISPLAY_NAME] = ['global_name'];
|
||||
const REGISTER_ACCOUNT_INFORMATION = AuthStates.REGISTER_ACCOUNT_INFORMATION;
|
||||
object2[REGISTER_ACCOUNT_INFORMATION] = ['username', 'password'];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/handleRegisterErrorRedirection.tsx');
|
||||
exports.default = handleRegisterErrorRedirection;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_108624(a0, a1) { // fn#108624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14549:237, offset: 0x0232780d, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun108625;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_108626(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_108626(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_108626(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun108625;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function getRedirectStepForErrorKey(a0) { // fn#108627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14549:1380, offset: 0x02327981, size: 164 bytes, params: 2, frame: 11
|
||||
const AuthStates = (require(676) /* metro dependency 676: ConstantsIOS */).AuthStates;
|
||||
if (a0 === 'email') {
|
||||
return AuthStates.REGISTER_IDENTITY;
|
||||
}
|
||||
if (a0 === 'phoneToken') {
|
||||
return AuthStates.REGISTER_IDENTITY;
|
||||
}
|
||||
if (a0 === 'global_name') {
|
||||
return AuthStates.REGISTER_DISPLAY_NAME;
|
||||
}
|
||||
if (a0 === 'username') {
|
||||
return AuthStates.REGISTER_ACCOUNT_INFORMATION;
|
||||
}
|
||||
if (a0 === 'password') {
|
||||
return AuthStates.REGISTER_ACCOUNT_INFORMATION;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function handleRegisterErrorRedirection(a0, a1, a2, a3) { // fn#108628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14549:1760, offset: 0x02327a25, size: 607 bytes, params: 5, frame: 30
|
||||
var r10;
|
||||
var r1;
|
||||
var r16;
|
||||
var _createForOfIteratorHelperLoose_108624Binding;
|
||||
var moduleValue;
|
||||
var getRegistrationSteps;
|
||||
var value4;
|
||||
var value5;
|
||||
var done;
|
||||
var value6;
|
||||
var property;
|
||||
var object2;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var redirectStepForErrorKey;
|
||||
var value12;
|
||||
var RESPONSE_ERROR;
|
||||
var items2;
|
||||
var getCommonErrorDetails;
|
||||
var error_code;
|
||||
var value13;
|
||||
var value14;
|
||||
var message;
|
||||
var value15;
|
||||
let value = environment;
|
||||
if ((importDefault(8986) /* metro dependency 8986: getError */)('date_of_birth', a2) == null) {
|
||||
reducibleJoin16: while (true) {
|
||||
if (global.Number(a2.code) !== AbortCodes.UNDER_MINIMUM_AGE) {
|
||||
_createForOfIteratorHelperLoose_108624Binding = _createForOfIteratorHelperLoose_108624;
|
||||
moduleValue = require(14303) /* metro dependency 14303: RegistrationStepsUtils */;
|
||||
getRegistrationSteps = moduleValue.getRegistrationSteps;
|
||||
value4 = _createForOfIteratorHelperLoose_108624Binding(Reflect.apply(getRegistrationSteps, moduleValue,
|
||||
[]));
|
||||
value5 = value4();
|
||||
done = value5.done;
|
||||
if (!done) {
|
||||
r10 = value5;
|
||||
reducibleLoop3: while (true) {
|
||||
value6 = r10.value;
|
||||
_createForOfIteratorHelperLoose_108624Binding = _createForOfIteratorHelperLoose_108624;
|
||||
property = env0_7[value6];
|
||||
reducibleJoin5: while (true) {
|
||||
if (property != null) {
|
||||
r1 = property;
|
||||
break reducibleJoin5;
|
||||
}
|
||||
r1 = [];
|
||||
break reducibleJoin5;
|
||||
}
|
||||
value7 = _createForOfIteratorHelperLoose_108624Binding(r1);
|
||||
value8 = value7();
|
||||
done = value8.done;
|
||||
if (!done) {
|
||||
r16 = value8;
|
||||
reducibleLoop6: while (true) {
|
||||
value9 = r16.value;
|
||||
value10 = (importDefault(8986) /* metro dependency 8986: getError */)(value9, a2);
|
||||
if (value10 != null) {
|
||||
redirectStepForErrorKey = getRedirectStepForErrorKey(value9);
|
||||
reducibleJoin8: while (true) {
|
||||
if (redirectStepForErrorKey != null) {
|
||||
object2 = {};
|
||||
object2.step = authStateToRegisterTransitionStep(redirectStepForErrorKey);
|
||||
object2.actionType = RegistrationTransitionActionTypes.RESPONSE_ERROR;
|
||||
items2 = [value10];
|
||||
value = require(14312) /* metro dependency 14312: RegistrationUtils */;
|
||||
items2[1] = value.getCommonErrorDetails(a2.error_code);
|
||||
object2.details = items2;
|
||||
a1(object2);
|
||||
a0.navigate(redirectStepForErrorKey);
|
||||
return undefined;
|
||||
}
|
||||
break reducibleJoin8;
|
||||
}
|
||||
}
|
||||
value12 = value7();
|
||||
done = value12.done;
|
||||
if (done) {
|
||||
break reducibleLoop6;
|
||||
}
|
||||
r16 = value12;
|
||||
continue reducibleLoop6;
|
||||
}
|
||||
}
|
||||
value13 = value4();
|
||||
done = value13.done;
|
||||
if (done) {
|
||||
break reducibleLoop3;
|
||||
}
|
||||
r10 = value13;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
}
|
||||
error_code = a2.error_code;
|
||||
value14 = error_code != null;
|
||||
reducibleJoin13: while (true) {
|
||||
if (value14) {
|
||||
message = a2.message;
|
||||
value15 = message != null;
|
||||
r1 = value15;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
r1 = value14;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
reducibleJoin15: while (true) {
|
||||
if (r1) {
|
||||
object2 = {step: a3};
|
||||
RESPONSE_ERROR = RegistrationTransitionActionTypes.RESPONSE_ERROR;
|
||||
object2.actionType = RESPONSE_ERROR;
|
||||
value = require(14312) /* metro dependency 14312: RegistrationUtils */;
|
||||
getCommonErrorDetails = value.getCommonErrorDetails;
|
||||
error_code = a2.error_code;
|
||||
value = Reflect.apply(getCommonErrorDetails, value, [error_code]);
|
||||
object2.details = [value];
|
||||
a1(object2);
|
||||
break reducibleJoin15;
|
||||
}
|
||||
break reducibleJoin15;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
break reducibleJoin16;
|
||||
}
|
||||
}
|
||||
let AGE_GATE_UNDERAGE = RegisterTransitionSteps.AGE_GATE_UNDERAGE;
|
||||
const VIEWED = RegistrationTransitionActionTypes.VIEWED;
|
||||
a1({step: AGE_GATE_UNDERAGE, actionType: VIEWED});
|
||||
const push = a0.push;
|
||||
const AuthStates = (require(676) /* metro dependency 676: ConstantsIOS */).AuthStates;
|
||||
AGE_GATE_UNDERAGE = AuthStates.AGE_GATE_UNDERAGE;
|
||||
Reflect.apply(push, a0, [AGE_GATE_UNDERAGE, {'fromRegister': true, 'disableSwipe': true}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 14320; source: modules/auth/native/components/utils/useAuthFlowBackHandler.tsx; dependencies: [31, 14305, 14302, 5286, 2] */
|
||||
function _fun108392(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14517:6, offset: 0x0231ef74, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(14305) /* metro dependency 14305: RegistrationConstants */).RegistrationTransitionActionTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/useAuthFlowBackHandler.tsx');
|
||||
exports.default = useAuthFlowBackHandler;
|
||||
}
|
||||
|
||||
function useAuthFlowBackHandler(a0) { // fn#108393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14517:257, offset: 0x0231effc, size: 91 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
const binding = env0_2;
|
||||
const useContext = binding.useContext;
|
||||
const TrackRegistrationContext = (require(14302) /* metro dependency 14302: Auth */).TrackRegistrationContext;
|
||||
const env0_1 = Reflect.apply(useContext, binding, [TrackRegistrationContext]);
|
||||
(require(5286) /* metro dependency 5286: useNavigatorBackPressHandlerNative */).useNavigatorBackPressHandler(_fun108394);
|
||||
}
|
||||
|
||||
function _fun108394() { // fn#108394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14517:383, offset: 0x0231f057, size: 47 bytes, params: 1, frame: 11
|
||||
const binding = env0_1;
|
||||
const VIEWED = RegistrationTransitionActionTypes.VIEWED;
|
||||
binding({step: env0_0, actionType: VIEWED});
|
||||
return false;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,40 @@
|
||||
/* Metro module 14353; source: modules/auth/native/components/utils/useIsHCaptchaModalOpenTracking.tsx; dependencies: [31, 14304, 14305, 14302, 4008, 4007, 2] */
|
||||
function _fun108629(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14550:6, offset: 0x02327c84, size: 168 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(14304) /* metro dependency 14304: RegistrationUIStore */).doesRegistrationHaveIdentityType;
|
||||
const registrationConstantsModule = require(14305) /* metro dependency 14305: RegistrationConstants */;
|
||||
const env0_4 = registrationConstantsModule.RegisterTransitionSteps;
|
||||
const env0_5 = registrationConstantsModule.RegistrationTransitionActionTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/useIsHCaptchaModalOpenTracking.tsx');
|
||||
exports.useIsHCaptchaModalOpenTracking = useIsHCaptchaModalOpenTracking;
|
||||
}
|
||||
|
||||
function useIsHCaptchaModalOpenTracking() { // fn#108630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14550:363, offset: 0x02327d2c, size: 81 bytes, params: 1, frame: 15
|
||||
const binding = env0_2;
|
||||
const useContext = binding.useContext;
|
||||
const TrackRegistrationContext = (require(14302) /* metro dependency 14302: Auth */).TrackRegistrationContext;
|
||||
binding.useLayoutEffect(_fun108631, [Reflect.apply(useContext, binding, [TrackRegistrationContext])]);
|
||||
}
|
||||
|
||||
function _fun108631() { // fn#108631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14550:477, offset: 0x02327d7d, size: 84 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef();
|
||||
if ((rootNavigationRef == null ? value : rootNavigationRef.current) != null) {
|
||||
return rootNavigationRef.addListener('state', _fun108632);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun108632() { // fn#108632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14550:585, offset: 0x02327dd1, size: 102 bytes, params: 1, frame: 13
|
||||
var value3;
|
||||
if ((require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).isModalOpen('hcaptcha') && doesRegistrationHaveIdentityType()) {
|
||||
value3 = environment.__proto__;
|
||||
env1_0({step: RegisterTransitionSteps.CAPTCHA, actionType: RegistrationTransitionActionTypes.VIEWED});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,219 @@
|
||||
/* Metro module 14327; source: modules/auth/native/components/utils/usePasswordRegistrationStep.tsx; dependencies: [5, 57, 31, 14304, 8986, 14328, 1244, 14315, 2] */
|
||||
function _fun108441(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14524:6, offset: 0x02320c16, size: 175 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(14304) /* metro dependency 14304: RegistrationUIStore */).useRegistrationUIStore;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/usePasswordRegistrationStep.tsx');
|
||||
exports.usePasswordRegistrationStep = usePasswordRegistrationStep;
|
||||
}
|
||||
|
||||
function usePasswordRegistrationStep() { // fn#108442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14524:291, offset: 0x02320cc5, size: 288 bytes, params: 1, frame: 21
|
||||
const value2 = useRegistrationUIStore(function(a0) {
|
||||
return a0.registrationOptions;
|
||||
});
|
||||
let binding = env0_5;
|
||||
const useState = binding.useState;
|
||||
const value5 = env0_4(Reflect.apply(useState, binding, [value2.password ?? '']), 2);
|
||||
const property = value5[0];
|
||||
const property2 = value5[1];
|
||||
const value7 = (importDefault(8986) /* metro dependency 8986: getError */)('password',
|
||||
useRegistrationUIStore(function(a0) {
|
||||
return a0.errors;
|
||||
}));
|
||||
const {passwordScore,
|
||||
passwordValid} = (require(14328) /* metro dependency 14328: usePasswordScore */).usePasswordScore(property);
|
||||
binding = env0_5;
|
||||
const value9 = binding.useMemo(_fun108445, [property, value7, passwordValid]);
|
||||
const useCallback = binding.useCallback;
|
||||
let value = env0_3(_fun108447);
|
||||
value = Reflect.apply(useCallback, binding, [value, [property, value7]]);
|
||||
return {password: property, setPassword: property2, passwordScore: passwordScore, preventSubmitPassword: value9,
|
||||
validatePassword: value};
|
||||
}
|
||||
|
||||
function _fun108445() { // fn#108445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14524:553, offset: 0x02320de5, size: 76 bytes, params: 1, frame: 5
|
||||
var r1;
|
||||
let r0 = env0_0 == null || env0_0 === '';
|
||||
if (!r0) {
|
||||
r1 = env0_0.length < 8 || env0_1 != null;
|
||||
r1 = !r1 ? passwordValid === false : r1;
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun108447() { // fn#108447, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14524:633, offset: 0x02320e3c, size: 339 bytes, params: 1, frame: 18
|
||||
var length;
|
||||
var value3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var scorePassword;
|
||||
var value5;
|
||||
var valid;
|
||||
var binding3;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var DfaKHr;
|
||||
var error;
|
||||
var binding4;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
if (require != null) {
|
||||
reducibleJoin39: while (true) {
|
||||
if (require !== '') {
|
||||
length = require.length;
|
||||
if (length < 8) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding(binding4[6]).intl;
|
||||
return intl.string(binding(binding4[6]).t.DfaKHr);
|
||||
}
|
||||
if (importDefault != null) {
|
||||
return importDefault;
|
||||
}
|
||||
value3 = environment.__proto__.__proto__;
|
||||
reducibleJoin7: while (true) {
|
||||
reduciblePort36: while (true) {
|
||||
exceptionLanding35: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
break reducibleJoin7;
|
||||
}
|
||||
break reduciblePort36;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
scorePassword = value4.scorePassword;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(scorePassword, value4, [require]);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
if (value5) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
valid = value.valid;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value = valid === false;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
if (value) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
property = binding3[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
intl = value.intl;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
string = intl.string;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
property = binding3[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
t = value.t;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
DfaKHr = t.DfaKHr;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(string, intl, [DfaKHr]);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
break reducibleJoin39;
|
||||
}
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
const binding5 = env2_2;
|
||||
intl = binding(binding5[6]).intl;
|
||||
string = intl.string;
|
||||
const R98xD5 = binding(binding5[6]).t.R98xD5;
|
||||
return Reflect.apply(string, intl, [R98xD5]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,198 @@
|
||||
/* Metro module 14328; source: modules/auth/native/components/utils/usePasswordScore.tsx; dependencies: [5, 57, 31, 22, 14315, 2] */
|
||||
function _fun108448(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14525:6, offset: 0x02320f8f, size: 205 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
object2 = {WEAK: 2};
|
||||
object2[2] = 'WEAK';
|
||||
object2.MEDIUM = 3;
|
||||
object2[3] = 'MEDIUM';
|
||||
object2.STRONG = 4;
|
||||
object2[4] = 'STRONG';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/usePasswordScore.tsx');
|
||||
exports.PasswordScore = object2;
|
||||
exports.usePasswordScore = usePasswordScore;
|
||||
}
|
||||
|
||||
function usePasswordScore(a0) { // fn#108449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14525:347, offset: 0x0232105c, size: 164 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_3;
|
||||
let value = binding2(value2, 2);
|
||||
const property = value[0];
|
||||
const env0_1 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property2 = value[0];
|
||||
const env0_2 = value[1];
|
||||
var env0_3 = binding.useRef(null);
|
||||
binding.useEffect(_fun108450, []);
|
||||
binding.useEffect(_fun108456, [a0]);
|
||||
return {passwordScore: property, passwordValid: property2};
|
||||
}
|
||||
|
||||
function _fun108450() { // fn#108450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14525:501, offset: 0x02321100, size: 75 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
const binding = env0_3;
|
||||
let value = environment.__proto__;
|
||||
value = require(22) /* metro dependency 22 */;
|
||||
binding.current = value.throttle(_fun108451(), 250);
|
||||
return _fun108455;
|
||||
}
|
||||
|
||||
function _fun108456() { // fn#108456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14525:846, offset: 0x02321250, size: 61 bytes, params: 1, frame: 12
|
||||
if (env0_3.current != null && env0_0.length > 0) {
|
||||
env0_3.current(env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun108451() { // fn#108451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14525:533, offset: 0x0232114b, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_2(_fun108453);
|
||||
return _fun108454;
|
||||
}
|
||||
|
||||
function _fun108455() { // fn#108455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14525:751, offset: 0x02321218, size: 56 bytes, params: 1, frame: 13
|
||||
const current = env1_3.current;
|
||||
const value2 = undefined;
|
||||
if ((current == null ? value2 : current.cancel) != null) {
|
||||
env1_3.current.cancel();
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function* _fun108453(a0) { // fn#108453, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14525:553, offset: 0x0232117a, size: 158 bytes, params: 2, frame: 15
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var scorePassword;
|
||||
var value3;
|
||||
var value4;
|
||||
var password_strength;
|
||||
var valid;
|
||||
var error;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (a0 != null) {
|
||||
if (a0.length > 0) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env4_0;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env4_1;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[4];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
scorePassword = value.scorePassword;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(scorePassword, value, [a0]);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value3 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
if (value3) {
|
||||
return value;
|
||||
}
|
||||
value4 = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
password_strength = value.password_strength;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
dependencyMap(password_strength);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env3_2;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
valid = value.valid;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding(valid);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
dependencyMap(null);
|
||||
env3_2(null);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 14329; source: modules/auth/native/components/utils/useUsernameRegistrationStep.tsx; dependencies: [57, 31, 13285, 14304, 14305, 14302, 1484, 8986, 13283, 13282, 14303, 1244, 2] */
|
||||
function _fun108457(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14526:6, offset: 0x0232128d, size: 207 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 uniqueUsernamesStore = importDefault(13285) /* metro dependency 13285: UniqueUsernamesStore */;
|
||||
const env0_6 = (require(14304) /* metro dependency 14304: RegistrationUIStore */).useRegistrationUIStore;
|
||||
const registrationConstantsModule = require(14305) /* metro dependency 14305: RegistrationConstants */;
|
||||
const env0_7 = registrationConstantsModule.authStateToRegisterTransitionStep;
|
||||
const env0_8 = registrationConstantsModule.RegistrationTransitionActionTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/useUsernameRegistrationStep.tsx');
|
||||
exports.useUsernameRegistrationStep = useUsernameRegistrationStep;
|
||||
}
|
||||
|
||||
function useUsernameRegistrationStep(a0) { // fn#108458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14526:378, offset: 0x0232135c, size: 486 bytes, params: 2, frame: 25
|
||||
var r4;
|
||||
var object;
|
||||
const env0_0 = a0;
|
||||
let binding = env0_4;
|
||||
const useContext = binding.useContext;
|
||||
const value2 = undefined;
|
||||
const TrackRegistrationContext = (require(14302) /* metro dependency 14302: Auth */).TrackRegistrationContext;
|
||||
const value3 = Reflect.apply(useContext, binding, [TrackRegistrationContext]);
|
||||
const value4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const value5 = useRegistrationUIStore(function(a0) {
|
||||
return a0.registrationOptions;
|
||||
});
|
||||
const useState = binding.useState;
|
||||
const username = value5.username;
|
||||
const value9 = env0_3(Reflect.apply(useState, binding,
|
||||
[username ?? UniqueUsernamesStore.registrationUsernameSuggestion() ?? '']), 2);
|
||||
const property = value9[0];
|
||||
const property2 = value9[1];
|
||||
const value11 = (importDefault(8986) /* metro dependency 8986: getError */)('username',
|
||||
useRegistrationUIStore(function(a0) {
|
||||
return a0.errors;
|
||||
}));
|
||||
const value12 = (require(13283) /* metro dependency 13283: useUsernameStatus */).useUsernameStatus(property, true,
|
||||
true);
|
||||
var env0_4 = value12;
|
||||
if (value11 == null) {
|
||||
r4 = value12;
|
||||
} else {
|
||||
object = {};
|
||||
object.type = (require(13282) /* metro dependency 13282: UniqueUsernamesTypes */).NameValidationState.ERROR;
|
||||
object.message = value11;
|
||||
env0_4 = object;
|
||||
r4 = object;
|
||||
}
|
||||
binding = env0_4;
|
||||
let useCallback = binding.useCallback;
|
||||
const value = Reflect.apply(useCallback, binding, [_fun108461, [r4, value4, value3, a0]]);
|
||||
const value13 = binding.useMemo(_fun108462, [property, r4]);
|
||||
useCallback = binding.useCallback;
|
||||
object = [property];
|
||||
object[1] = r4 == null ? value2 : r4.message;
|
||||
object[2] = r4 == null ? value2 : r4.type;
|
||||
object = {username: property, setUsername: property2, usernameStatus: r4, transitionToNextStepOrSubmit: value,
|
||||
preventSubmitUsername: value13, validateUsername: Reflect.apply(useCallback, binding, [_fun108463, object])};
|
||||
return object;
|
||||
}
|
||||
|
||||
function _fun108461(a0) { // fn#108461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14526:812, offset: 0x02321542, size: 299 bytes, params: 2, frame: 21
|
||||
var object2;
|
||||
var authStateToRegisterTransitionStepBinding;
|
||||
var binding2;
|
||||
var nextAuthState;
|
||||
var moduleValue3;
|
||||
let binding = env0_4;
|
||||
const value2 = undefined;
|
||||
const type = binding == null ? value2 : binding.type;
|
||||
const NameValidationState = (require(13282) /* metro dependency 13282: UniqueUsernamesTypes */).NameValidationState;
|
||||
const ERROR = NameValidationState.ERROR;
|
||||
if (type === ERROR) {
|
||||
binding = env0_1;
|
||||
object2 = {};
|
||||
object2.step = authStateToRegisterTransitionStep(env0_0);
|
||||
object2.actionType = RegistrationTransitionActionTypes.INPUT_ERROR;
|
||||
object2.details = [env0_4.message];
|
||||
binding(object2);
|
||||
}
|
||||
if (a0) {
|
||||
moduleValue3 = require(14303) /* metro dependency 14303: RegistrationStepsUtils */;
|
||||
moduleValue3.handleRegistrationSubmit(env0_0, env0_2, env0_1);
|
||||
} else {
|
||||
binding = env0_1;
|
||||
object2 = {};
|
||||
authStateToRegisterTransitionStepBinding = authStateToRegisterTransitionStep;
|
||||
binding2 = env0_0;
|
||||
object2.step = authStateToRegisterTransitionStepBinding(binding2);
|
||||
object2.toStep = (require(14303) /* metro dependency 14303: RegistrationStepsUtils */).getNextRegistrationTransitionStep(binding2);
|
||||
object2.actionType = RegistrationTransitionActionTypes.SUCCESS;
|
||||
binding(object2);
|
||||
nextAuthState = (require(14303) /* metro dependency 14303: RegistrationStepsUtils */).getNextAuthState(binding2);
|
||||
binding = env0_2;
|
||||
binding.push(nextAuthState);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun108462() { // fn#108462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14526:1159, offset: 0x0232166d, size: 92 bytes, params: 1, frame: 14
|
||||
var type;
|
||||
var binding;
|
||||
var value4;
|
||||
var value;
|
||||
let r0 = env0_3 == null || env0_3 === '';
|
||||
if (!r0) {
|
||||
binding = env0_4;
|
||||
value = undefined;
|
||||
type = binding == null ? value : binding.type;
|
||||
value4 = environment.__proto__;
|
||||
value = type === (require(13282) /* metro dependency 13282: UniqueUsernamesTypes */).NameValidationState.ERROR;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun108463() { // fn#108463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14526:1284, offset: 0x023216c9, size: 161 bytes, params: 1, frame: 15
|
||||
var type;
|
||||
var r0;
|
||||
var binding;
|
||||
var value4;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value;
|
||||
const value2 = null;
|
||||
if (value2 == env0_3) {
|
||||
value = environment.__proto__;
|
||||
value = intl.string(t.GPfy3L);
|
||||
r0 = value;
|
||||
} else if (env0_3 === '') {
|
||||
value = environment.__proto__;
|
||||
value = intl.string(t.GPfy3L);
|
||||
r0 = value;
|
||||
} else {
|
||||
binding = env0_4;
|
||||
type = value2 == binding ? undefined : binding.type;
|
||||
value4 = environment.__proto__;
|
||||
r0 = type !== (require(13282) /* metro dependency 13282: UniqueUsernamesTypes */).NameValidationState.ERROR ? value2 : env0_4.message;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
/* Metro module 8984; source: modules/auth/native/components/utils/useWithPostLoginRouting.tsx; dependencies: [5, 57, 31, 1226, 661, 566, 1244, 8985, 5076, 2] */
|
||||
function _fun70006(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9169:6, offset: 0x01ceb1c2, size: 201 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 authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = constantsModule.LoginStates;
|
||||
const env0_8 = constantsModule.AuthStates;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/utils/useWithPostLoginRouting.tsx');
|
||||
exports.default = useWithPostLoginRouting;
|
||||
}
|
||||
|
||||
function useWithPostLoginRouting(a0, a1) { // fn#70007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9169:285, offset: 0x01ceb28b, size: 169 bytes, params: 3, frame: 19
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const binding = env0_5;
|
||||
const [property, env0_3] = env0_4(binding.useState(), 2);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
|
||||
binding.useEffect(_fun70009, [a0, a1, Reflect.apply(useStateFromStoresObject, fluxModule, [[AuthenticationStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.loginStatus = AuthenticationStore.getLoginStatus();
|
||||
return object;
|
||||
}]).loginStatus, property]);
|
||||
}
|
||||
|
||||
function _fun70009() { // fn#70009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9169:471, offset: 0x01ceb34e, size: 712 bytes, params: 1, frame: 24
|
||||
var loginStatusBinding;
|
||||
var push;
|
||||
var object2;
|
||||
var credentials;
|
||||
var login;
|
||||
var password;
|
||||
var VERIFY_PHONE;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var replace;
|
||||
let binding = env0_2;
|
||||
const LOGGING_IN = LoginStates.LOGGING_IN;
|
||||
if (binding === LOGGING_IN) {
|
||||
loginStatusBinding = loginStatus;
|
||||
if (LoginStates.MFA_STEP === loginStatusBinding) {
|
||||
binding = env0_0;
|
||||
binding.push(AuthStates.MFA);
|
||||
} else if (LoginStates.ACCOUNT_SCHEDULED_FOR_DELETION === loginStatusBinding) {
|
||||
binding = env0_0;
|
||||
binding.push(AuthStates.ACCOUNT_DISABLED_OR_DELETION_SCHEDULED, {handleLogin: require});
|
||||
} else if (LoginStates.ACCOUNT_DISABLED === loginStatusBinding) {
|
||||
binding = env0_0;
|
||||
binding.push(AuthStates.ACCOUNT_DISABLED_OR_DELETION_SCHEDULED, {handleLogin: require});
|
||||
} else if (LoginStates.LOGIN_AGE_GATE === loginStatusBinding) {
|
||||
binding = env0_0;
|
||||
binding.push(AuthStates.AGE_GATE_UNDERAGE, {existingUser: true});
|
||||
}
|
||||
loginStatusBinding = loginStatus;
|
||||
if (LoginStates.PASSWORD_RECOVERY_PHONE_VERIFICATION === loginStatusBinding) {
|
||||
login = AuthenticationStore.getCredentials().login;
|
||||
binding = env0_0;
|
||||
replace = binding.replace;
|
||||
VERIFY_PHONE = AuthStates.VERIFY_PHONE;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t['+xqy3d']);
|
||||
object2.description = intl.string(t.myKyqh);
|
||||
object2.phone = login;
|
||||
object2.onPhoneTokenReceived = onPhoneTokenReceived;
|
||||
object2.onClose = onClose_70011;
|
||||
Reflect.apply(replace, binding, [VERIFY_PHONE, object2]);
|
||||
} else if (LoginStates.PHONE_IP_AUTHORIZATION === loginStatusBinding) {
|
||||
credentials = AuthenticationStore.getCredentials();
|
||||
login = credentials.login;
|
||||
var env0_0 = login;
|
||||
password = credentials.password;
|
||||
binding = env0_0;
|
||||
push = binding.push;
|
||||
VERIFY_PHONE = AuthStates.VERIFY_PHONE;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.w55Oco);
|
||||
object2.description = intl.string(t['0/ALaJ']);
|
||||
login = AuthenticationStore.getCredentials().login;
|
||||
object2.phone = login;
|
||||
var env0_2 = env1_3(_fun70013);
|
||||
object2.onPhoneTokenReceived = onPhoneTokenReceived_70015;
|
||||
object2.onClose = onClose_70016;
|
||||
Reflect.apply(push, binding, [VERIFY_PHONE, object2]);
|
||||
}
|
||||
binding = env0_3;
|
||||
binding(loginStatus);
|
||||
} else {
|
||||
binding = env0_2;
|
||||
if (binding === LoginStates.FORGOT_PASSWORD) {
|
||||
loginStatusBinding = loginStatus;
|
||||
if (LoginStates.MFA_STEP === loginStatusBinding) {
|
||||
binding = env0_0;
|
||||
binding.push(AuthStates.MFA);
|
||||
} else if (LoginStates.ACCOUNT_SCHEDULED_FOR_DELETION === loginStatusBinding) {
|
||||
binding = env0_0;
|
||||
binding.push(AuthStates.ACCOUNT_DISABLED_OR_DELETION_SCHEDULED, {handleLogin: require});
|
||||
} else if (LoginStates.ACCOUNT_DISABLED === loginStatusBinding) {
|
||||
binding = env0_0;
|
||||
binding.push(AuthStates.ACCOUNT_DISABLED_OR_DELETION_SCHEDULED, {handleLogin: require});
|
||||
} else if (LoginStates.LOGIN_AGE_GATE === loginStatusBinding) {
|
||||
binding = env0_0;
|
||||
binding.push(AuthStates.AGE_GATE_UNDERAGE, {existingUser: true});
|
||||
}
|
||||
loginStatusBinding = loginStatus;
|
||||
if (LoginStates.PASSWORD_RECOVERY_PHONE_VERIFICATION === loginStatusBinding) {
|
||||
login = AuthenticationStore.getCredentials().login;
|
||||
binding = env0_0;
|
||||
replace = binding.replace;
|
||||
VERIFY_PHONE = AuthStates.VERIFY_PHONE;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t['+xqy3d']);
|
||||
object2.description = intl.string(t.myKyqh);
|
||||
object2.phone = login;
|
||||
object2.onPhoneTokenReceived = onPhoneTokenReceived;
|
||||
object2.onClose = onClose_70011;
|
||||
Reflect.apply(replace, binding, [VERIFY_PHONE, object2]);
|
||||
} else if (LoginStates.PHONE_IP_AUTHORIZATION === loginStatusBinding) {
|
||||
credentials = AuthenticationStore.getCredentials();
|
||||
login = credentials.login;
|
||||
var env0_0 = login;
|
||||
password = credentials.password;
|
||||
binding = env0_0;
|
||||
push = binding.push;
|
||||
VERIFY_PHONE = AuthStates.VERIFY_PHONE;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.w55Oco);
|
||||
object2.description = intl.string(t['0/ALaJ']);
|
||||
login = AuthenticationStore.getCredentials().login;
|
||||
object2.phone = login;
|
||||
var env0_2 = env1_3(_fun70013);
|
||||
object2.onPhoneTokenReceived = onPhoneTokenReceived_70015;
|
||||
object2.onClose = onClose_70016;
|
||||
Reflect.apply(push, binding, [VERIFY_PHONE, object2]);
|
||||
}
|
||||
binding = env0_3;
|
||||
binding(loginStatus);
|
||||
} else {
|
||||
env0_3(loginStatus);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onPhoneTokenReceived(a0) { // fn#70010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9169:1004, offset: 0x01ceb616, size: 70 bytes, params: 2, frame: 15
|
||||
const value2 = (importDefault(8985) /* metro dependency 8985: makePasswordResetLink */)(a0);
|
||||
const binding = env1_0;
|
||||
const replace = binding.replace;
|
||||
const EXTERNAL_LINK = AuthStates.EXTERNAL_LINK;
|
||||
Reflect.apply(replace, binding, [EXTERNAL_LINK, {externalURL: value2}]);
|
||||
}
|
||||
|
||||
function onClose_70011() { // fn#70011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9169:1077, offset: 0x01ceb65c, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).loginReset();
|
||||
}
|
||||
|
||||
function* _fun70013(a0) { // fn#70013, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9169:1368, offset: 0x01ceb68c, size: 148 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = env3_1(env3_2[8]);
|
||||
yield value.authorizeIPAddress(a0);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var getState = require.getState;
|
||||
var index = Reflect.apply(getState, require, []).routes.findIndex(_fun70014);
|
||||
if (index >= 0) {
|
||||
require.pop(index);
|
||||
} else {
|
||||
require.pop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onClose_70016(a0) { // fn#70016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9169:1553, offset: 0x01ceb73b, size: 101 bytes, params: 2, frame: 13
|
||||
var value;
|
||||
var value4;
|
||||
if (a0) {
|
||||
if (password != null && password !== '') {
|
||||
value4 = environment.__proto__;
|
||||
require(login, password);
|
||||
}
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */;
|
||||
value.loginReset();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun70014({name}) { // fn#70014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9169:1454, offset: 0x01ceb720, size: 27 bytes, params: 2, frame: 2
|
||||
const LOGIN = env4_8.LOGIN;
|
||||
return name === LOGIN;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user