963 lines
38 KiB
TypeScript
963 lines
38 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] */
|
|
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});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
|
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
value = _fun121457(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).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 closure = ParentalConsentManager;
|
|
env0_8(closure, a0);
|
|
const binding = env0_5;
|
|
const binding2 = env0_3;
|
|
const env0_1 = binding2(_fun121461);
|
|
const items2 = [{key: 'onPostConnectionOpen', value: value_121462}];
|
|
const env0_0 = binding2(_fun121464);
|
|
items2[1] = {key: 'performAgeCheck', value: value_121465};
|
|
return binding(closure, 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 items = [];
|
|
arraySpread(items, value, 0, items);
|
|
value = env1_7(ParentalConsentManager);
|
|
binding = env1_6;
|
|
if (_isNativeReflectConstruct_121454()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items, env1_7(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121459};
|
|
return value;
|
|
}
|
|
|
|
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* _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 object3;
|
|
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 {
|
|
object3 = {};
|
|
} 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 {
|
|
object3.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 {
|
|
object3.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 = object3;
|
|
} 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 {
|
|
object3 = {};
|
|
} 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 {
|
|
object3.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 {
|
|
object3.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 = object3;
|
|
} 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'}});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|