107 lines
4.8 KiB
TypeScript
107 lines
4.8 KiB
TypeScript
/* Metro module 12623; source: modules/parent_tools/FamilyCenterModalRequestRouting.tsx; dependencies: [5, 5117, 5118, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as FamilyCenterConstantsModule from './FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
|
|
|
|
function _fun96855(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:6, offset: 0x02169c17, size: 238 bytes, params: 8, frame: 21
|
|
const getConnectionPrereqTarget2 = getConnectionPrereqTarget;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const FamilyCenterFailureCode = (FamilyCenterConstantsModule).FamilyCenterFailureCode;
|
|
Object = global.Object;
|
|
const value = Object.freeze({'PREREQ_LOADING': 'PREREQ_LOADING', 'CONFIRM_AGE': 'CONFIRM_AGE',
|
|
'VERIFYING': 'VERIFYING', 'REQUEST': 'REQUEST', 'SENT': 'SENT', 'ERROR': 'ERROR',
|
|
'INVALID_CODE': 'INVALID_CODE', 'MUST_BE_ADULT': 'MUST_BE_ADULT', 'TEEN_SCAN': 'TEEN_SCAN'});
|
|
object = {};
|
|
const ERROR = value.ERROR;
|
|
object.section = ERROR;
|
|
const GENERIC_ERROR = FamilyCenterFailureCode.GENERIC_ERROR;
|
|
object.params = {failureCode: GENERIC_ERROR};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterModalRequestRouting.tsx');
|
|
exports.FamilyCenterModalRequestSections = value;
|
|
exports.getConnectionPrereqTarget = getConnectionPrereqTarget2;
|
|
exports.resolveConnectionPrereqTarget = function() {
|
|
return _resolveConnectionPrereqTarget.apply(this, arguments);
|
|
};
|
|
function getConnectionPrereqTarget(a0) { // fn#96856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:420, offset: 0x02169d05, size: 179 bytes, params: 2, frame: 4
|
|
return 'ready' in a0 ? {section: env0_3.REQUEST,
|
|
params: {teenIdentity: a0.teen_identity}} : 'invalid_link_code' in a0 ? {section: env0_3.INVALID_CODE} : 'verified_teen_blocked' in a0 ? {section: env0_3.MUST_BE_ADULT} : 'requires_adult_verification' in a0 ? {section: env0_3.CONFIRM_AGE} : env0_4;
|
|
}
|
|
|
|
function _resolveConnectionPrereqTarget() { // fn#96857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:697, offset: 0x02169db8, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun96859).apply(this, arguments);
|
|
function* _fun96859(a0, a1) { // fn#96859, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:780, offset: 0x02169df5, size: 90 bytes, params: 3, frame: 16
|
|
var binding;
|
|
var binding2;
|
|
var binding3;
|
|
var property;
|
|
var value3;
|
|
var getConnectionPrerequisites;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
try {
|
|
binding2 = env2_0;
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
try {
|
|
binding3 = env2_1;
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
try {
|
|
property = binding3[2];
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
try {
|
|
value3 = binding2(property);
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
try {
|
|
getConnectionPrerequisites = value3.getConnectionPrerequisites;
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(getConnectionPrerequisites, value3, [a0, a1]);
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
value7 = binding(value5);
|
|
} catch (error) {
|
|
return env2_4;
|
|
}
|
|
return value7;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun96855, 12623, [5, 5117, 5118, 2]) /* metro module 12623, dependencies: [5, 5117, 5118, 2] */;
|