978 lines
46 KiB
TypeScript
978 lines
46 KiB
TypeScript
/* Metro module 15804; source: modules/age_assurance/native/ParentalConsentManager.tsx; dependencies: [5, 6, 7, 15, 17, 18, 1878, 661, 4092, 477, 15805, 15806, 507, 683, 1216, 4860, 2] */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import AutomaticLifecycleManager from '../../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun121453(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:6, offset: 0x025488fe, size: 284 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun121457(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/ParentalConsentManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_121454() { // fn#121454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:193, offset: 0x02548a1a, size: 98 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_121454_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun121457(a0) { // fn#121457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:405, offset: 0x02548a7c, size: 135 bytes, params: 2, frame: 17
|
|
const ParentalConsentManager2 = ParentalConsentManager;
|
|
Inherits(ParentalConsentManager2, a0);
|
|
const env0_1 = Module00005(_fun121461);
|
|
const items2 = [{key: 'onPostConnectionOpen', value: value_121462}];
|
|
const env0_0 = Module00005(_fun121464);
|
|
items2[1] = {key: 'performAgeCheck', value: value_121465};
|
|
return CreateClass(ParentalConsentManager2, items2);
|
|
function ParentalConsentManager(a0) { // fn#121458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:417, offset: 0x02548b03, size: 152 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_4;
|
|
binding(this, ParentalConsentManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_7(ParentalConsentManager);
|
|
binding = env1_6;
|
|
if (_isNativeReflectConstruct_121454()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_7(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121459};
|
|
return value;
|
|
function ParentalConsentManagerPOST_CONNECTION_OPEN() { // fn#121459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:701, owner: ParentalConsentManager.POST_CONNECTION_OPEN, offset: 0x0253b48c, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0.onPostConnectionOpen();
|
|
}
|
|
|
|
}
|
|
|
|
function* _fun121461() { // fn#121461, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:834, offset: 0x02548ba6, size: 331 bytes, params: 1, frame: 21
|
|
var r1;
|
|
var r4;
|
|
var value11;
|
|
var parseInt;
|
|
var int;
|
|
var int2;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
r1 = binding(env2_2[10]).isParentalConsentCheckEnabled('ParentalConsentManager') && env2_9.getCurrentUser() != null;
|
|
if (r1) {
|
|
binding = env2_0;
|
|
if (binding(env2_2[8]).getIsRunningOnSimulator()) {
|
|
r4 = false;
|
|
} else {
|
|
binding = env2_0;
|
|
value11 = binding(env2_2[8]).getSystemVersion().split('.');
|
|
parseInt = global.parseInt;
|
|
int = parseInt(value11[0], 10);
|
|
parseInt = global.parseInt;
|
|
int2 = parseInt(value11[1] ?? '0', 10);
|
|
binding = env2_0;
|
|
value = binding(env2_2[9]);
|
|
r4 = value.isIOS() ? int > 26 || int === 26 && int2 >= 2 : int >= 35;
|
|
}
|
|
r1 = r4;
|
|
}
|
|
if (r1) {
|
|
yield this.performAgeCheck();
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_121462() { // fn#121462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:1205, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13
|
|
return env0_1.apply(this, arguments);
|
|
}
|
|
|
|
function* _fun121464() { // fn#121464, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:1306, offset: 0x02548cfc, size: 386 bytes, params: 1, frame: 22
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var setAgeRangeThresholds;
|
|
var getIsConsideredOlderThan;
|
|
var value4;
|
|
var isIOS;
|
|
var isIOS2;
|
|
var object;
|
|
var isConsideredOlderThan;
|
|
var value6;
|
|
var value7;
|
|
var binding3;
|
|
var value8;
|
|
var HTTP;
|
|
var post;
|
|
var object2;
|
|
var value9;
|
|
var getNativePlatform;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var body;
|
|
var should_block;
|
|
var binding4;
|
|
var value14;
|
|
var track;
|
|
var PARENTAL_CONSENT_CHECKED;
|
|
var value15;
|
|
var value16;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[11];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
setAgeRangeThresholds = value3.setAgeRangeThresholds;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
getIsConsideredOlderThan = value3.getIsConsideredOlderThan;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[9];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
isIOS = value4.isIOS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
isIOS2 = Reflect.apply(isIOS, value4, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
if (isIOS2) {
|
|
try {
|
|
object = [18];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
setAgeRangeThresholds(object);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
isConsideredOlderThan = getIsConsideredOlderThan(18);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
yield isConsideredOlderThan;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[12];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
HTTP = value8.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {'url': '/users/@me/parental-consent-status', 'body': null, 'rejectWithError': true};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[9];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
getNativePlatform = value9.getNativePlatform;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(getNativePlatform, value9, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.platform = value10;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.parental_consent = value6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
yield value11;
|
|
try {
|
|
value12 = undefined;
|
|
value13 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
if (value13) {
|
|
return value12;
|
|
}
|
|
try {
|
|
body = value12.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
should_block = body.should_block;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding4[13];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value14 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
track = value14.track;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
PARENTAL_CONSENT_CHECKED = binding.PARENTAL_CONSENT_CHECKED;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.eligible = value6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.should_block = should_block;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding4[9];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
getNativePlatform = value15.getNativePlatform;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value16 = Reflect.apply(getNativePlatform, value15, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.platform = value16;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(track, value14, [PARENTAL_CONSENT_CHECKED, object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
}
|
|
} else {
|
|
try {
|
|
isConsideredOlderThan = getIsConsideredOlderThan(18);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
yield isConsideredOlderThan;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[12];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
HTTP = value8.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {'url': '/users/@me/parental-consent-status', 'body': null, 'rejectWithError': true};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[9];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
getNativePlatform = value9.getNativePlatform;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(getNativePlatform, value9, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.platform = value10;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.parental_consent = value6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
yield value11;
|
|
try {
|
|
value12 = undefined;
|
|
value13 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
if (value13) {
|
|
return value12;
|
|
}
|
|
try {
|
|
body = value12.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
should_block = body.should_block;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding4[13];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value14 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
track = value14.track;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
PARENTAL_CONSENT_CHECKED = binding.PARENTAL_CONSENT_CHECKED;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.eligible = value6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.should_block = should_block;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding4[9];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
getNativePlatform = value15.getNativePlatform;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value16 = Reflect.apply(getNativePlatform, value15, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.platform = value16;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(track, value14, [PARENTAL_CONSENT_CHECKED, object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[14]);
|
|
value.captureException(error, {tags: {'source': 'parental_consent_manager',
|
|
'step': 'perform_age_check'}});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_121465() { // fn#121465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:1826, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun121453, 15804, [5, 6, 7, 15, 17, 18, 1878, 661, 4092, 477, 15805, 15806, 507, 683, 1216, 4860,
|
|
2]) /* metro module 15804, dependencies: [5, 6, 7, 15, 17, 18, 1878, 661, 4092, 477, 15805, 15806, 507, 683, 1216, 4860, 2] */;
|