Files
2026-07-28 01:06:53 +03:00

1740 lines
75 KiB
TypeScript

/* Metro module 8061; source: actions/UserActionCreators.tsx; dependencies: [5, 1885, 1878, 661, 662, 3, 507, 694, 5046, 648, 44, 4131, 2] */
import Logger from '../modules/debug/Logger.tsx'; /* Metro dependency 3 */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00044 from '../by-id/module-00044.js'; /* Metro dependency 44 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UserRecord from '../records/UserRecord.tsx'; /* Metro dependency 1885 */
import TrackedHTTPUtils from '../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as AnalyticsSchemaModule from '../external/discord_common/js/packages/analytics-utils/AnalyticsSchema.tsx'; /* Metro dependency 648 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as RouteConstantsModule from '../modules/routing/RouteConstants.tsx'; /* Metro dependency 662 */
function _fun63994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:6, offset: 0x01b9896f, size: 320 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = Logger;
value = new value('UserProfileModalActionCreators');
(FileImportTrackerModule).fileFinishedImporting('actions/UserActionCreators.tsx');
exports.fetchCurrentUser = fetchCurrentUser;
exports.acceptAgreements = acceptAgreements;
exports.setFlag = setFlag_64006;
exports.getUser = getUser;
exports.insertStaticUser = function(a0) {
importDefault(dependencyMap[7]).dispatch({type: 'USER_UPDATE', user: a0});
return UserStore.getUser(a0.id);
};
exports.fetchProfile = function() {
return _fetchProfile.apply(this, arguments);
};
exports.fetchMutualFriends = function() {
return _fetchMutualFriends.apply(this, arguments);
};
function _fetchProfile() { // fn#63995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:222, offset: 0x01b98aaf, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun63997).apply(this, arguments);
async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:271, offset: 0x01b98af1, size: 833 bytes, params: 2, frame: 37
var r1;
var r5;
var r22;
var r21;
var r10;
var body;
var value;
var value2;
var value3;
var value4;
var object;
var type;
var withMutualGuilds;
var withMutualFriendsCount;
var withMutualFriends;
var guildId;
var connectionsRoleId;
var joinRequestId;
var abortSignal;
var value5;
var Date;
var now;
var value6;
var binding;
var value7;
var dispatch;
var value8;
var includes;
var value9;
var binding2;
var property;
var value10;
var HTTP;
var get;
var USER_PROFILE;
var value11;
var object2;
var value12;
var value13;
var value14;
var value15;
var value16;
var value17;
var binding3;
var value18;
var user;
var value19;
var value20;
var guild_member;
var value21;
var binding4;
var value22;
var error;
var value23;
var warn;
var code;
var message;
var concat;
var binding5;
var value25;
var APIError;
var prototype;
var value26;
var aPIError;
var value27;
exceptionSkip107: while (true) {
exceptionLanding107: while (true) {
value = a1;
value2 = undefined;
value3 = false;
if (value3) {
return value2;
}
value4 = undefined;
if (value !== value4) {
r1 = value;
} else {
r1 = {};
}
type = r1.type;
withMutualGuilds = r1.withMutualGuilds;
withMutualFriendsCount = r1.withMutualFriendsCount;
withMutualFriends = r1.withMutualFriends;
guildId = r1.guildId;
connectionsRoleId = r1.connectionsRoleId;
joinRequestId = r1.joinRequestId;
abortSignal = r1.abortSignal;
await value4;
value = undefined;
value5 = false;
if (value5) {
return value;
}
Date = global.Date;
now = Date.now;
value = Reflect.apply(now, Date, []);
value6 = environment.__proto__.__proto__;
binding = env2_1;
value7 = binding(env2_2[7]);
dispatch = value7.dispatch;
Reflect.apply(dispatch, value7, [{type: 'USER_PROFILE_FETCH_START', userId: a0, guildId: guildId,
withMutualFriends: withMutualFriends}]);
try {
value8 = guildId == null;
} catch (error) {
break exceptionLanding107;
}
if (!value8) {
try {
binding = env2_7;
} catch (error) {
break exceptionLanding107;
}
try {
includes = binding.includes;
} catch (error) {
break exceptionLanding107;
}
try {
value9 = Reflect.apply(includes, binding, [guildId]);
} catch (error) {
break exceptionLanding107;
}
if (value9) {
r5 = value4;
break;
}
r5 = guildId;
break;
}
r5 = value4;
try {
binding = env2_0;
} catch (error) {
break exceptionLanding107;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding107;
}
try {
property = binding2[6];
} catch (error) {
break exceptionLanding107;
}
try {
value10 = binding(property);
} catch (error) {
break exceptionLanding107;
}
try {
HTTP = value10.HTTP;
} catch (error) {
break exceptionLanding107;
}
try {
get = HTTP.get;
} catch (error) {
break exceptionLanding107;
}
try {
object = {};
} catch (error) {
break exceptionLanding107;
}
try {
binding = env2_6;
} catch (error) {
break exceptionLanding107;
}
try {
USER_PROFILE = binding.USER_PROFILE;
} catch (error) {
break exceptionLanding107;
}
try {
value11 = Reflect.apply(USER_PROFILE, binding, [a0]);
} catch (error) {
break exceptionLanding107;
}
try {
object.url = value11;
} catch (error) {
break exceptionLanding107;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding107;
}
try {
object2.type = type;
} catch (error) {
break exceptionLanding107;
}
try {
object2.with_mutual_guilds = withMutualGuilds;
} catch (error) {
break exceptionLanding107;
}
try {
object2.with_mutual_friends = withMutualFriends;
} catch (error) {
break exceptionLanding107;
}
if (withMutualFriendsCount) {
try {
value12 = withMutualFriends == null;
} catch (error) {
break exceptionLanding107;
}
if (value12) {
r22 = value12;
continue;
}
value13 = !withMutualFriends;
r22 = value13;
r21 = r22;
} else {
r21 = withMutualFriendsCount;
}
try {
object2.with_mutual_friends_count = r21;
} catch (error) {
break exceptionLanding107;
}
try {
object2.guild_id = r5;
} catch (error) {
break exceptionLanding107;
}
try {
object2.connections_role_id = connectionsRoleId;
} catch (error) {
break exceptionLanding107;
}
try {
object2.join_request_id = joinRequestId;
} catch (error) {
break exceptionLanding107;
}
try {
object.query = object2;
} catch (error) {
break exceptionLanding107;
}
try {
object.signal = abortSignal;
} catch (error) {
break exceptionLanding107;
}
try {
object.rejectWithError = true;
} catch (error) {
break exceptionLanding107;
}
try {
value14 = Reflect.apply(get, HTTP, [object]);
} catch (error) {
break exceptionLanding107;
}
await value14;
try {
value15 = undefined;
value16 = false;
} catch (error) {
break exceptionLanding107;
}
if (value16) {
return value15;
}
try {
value17 = a2 == null;
} catch (error) {
break exceptionLanding107;
}
if (!value17) {
try {
body = value15.body;
} catch (error) {
break exceptionLanding107;
}
try {
a2(body, guildId);
} catch (error) {
break exceptionLanding107;
}
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding107;
}
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding107;
}
try {
property = binding3[7];
} catch (error) {
break exceptionLanding107;
}
try {
value18 = binding(property);
} catch (error) {
break exceptionLanding107;
}
try {
dispatch = value18.dispatch;
} catch (error) {
break exceptionLanding107;
}
try {
object = {};
} catch (error) {
break exceptionLanding107;
}
try {
object.type = 'USER_UPDATE';
} catch (error) {
break exceptionLanding107;
}
try {
body = value15.body;
} catch (error) {
break exceptionLanding107;
}
try {
user = body.user;
} catch (error) {
break exceptionLanding107;
}
try {
object.user = user;
} catch (error) {
break exceptionLanding107;
}
try {
Reflect.apply(dispatch, value18, [object]);
} catch (error) {
break exceptionLanding107;
}
try {
property = binding3[7];
} catch (error) {
break exceptionLanding107;
}
try {
value19 = binding(property);
} catch (error) {
break exceptionLanding107;
}
try {
dispatch = value19.dispatch;
} catch (error) {
break exceptionLanding107;
}
try {
object = {};
} catch (error) {
break exceptionLanding107;
}
try {
object.type = 'USER_PROFILE_FETCH_SUCCESS';
} catch (error) {
break exceptionLanding107;
}
try {
body = value15.body;
} catch (error) {
break exceptionLanding107;
}
try {
object.userProfile = body;
} catch (error) {
break exceptionLanding107;
}
try {
object.fetchStartedAt = value;
} catch (error) {
break exceptionLanding107;
}
try {
object.guildId = guildId;
} catch (error) {
break exceptionLanding107;
}
try {
Reflect.apply(dispatch, value19, [object]);
} catch (error) {
break exceptionLanding107;
}
try {
value20 = guildId != null;
} catch (error) {
break exceptionLanding107;
}
if (value20) {
try {
body = value15.body;
} catch (error) {
break exceptionLanding107;
}
try {
guild_member = body.guild_member;
} catch (error) {
break exceptionLanding107;
}
try {
value21 = guild_member != null;
} catch (error) {
break exceptionLanding107;
}
r10 = value21;
} else {
r10 = value20;
}
if (r10) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding107;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding107;
}
try {
property = binding4[7];
} catch (error) {
break exceptionLanding107;
}
try {
value22 = binding(property);
} catch (error) {
break exceptionLanding107;
}
try {
dispatch = value22.dispatch;
} catch (error) {
break exceptionLanding107;
}
try {
object = {};
} catch (error) {
break exceptionLanding107;
}
try {
object.type = 'GUILD_MEMBER_PROFILE_UPDATE';
} catch (error) {
break exceptionLanding107;
}
try {
object.guildId = guildId;
} catch (error) {
break exceptionLanding107;
}
try {
body = value15.body;
} catch (error) {
break exceptionLanding107;
}
try {
guild_member = body.guild_member;
} catch (error) {
break exceptionLanding107;
}
try {
object.guildMember = guild_member;
} catch (error) {
break exceptionLanding107;
}
try {
Reflect.apply(dispatch, value22, [object]);
} catch (error) {
break exceptionLanding107;
}
}
return value4;
break exceptionSkip107;
}
value23 = error != null;
if (value23) {
if (error == null) {
body = value4;
if (body != null) {
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
concat = global.HermesInternal.concat;
Reflect.apply(warn, binding, ['fetchProfile error: ' + code + ' - ' + message]);
binding = env2_1;
binding5 = env2_2;
value25 = binding(binding5[7]);
dispatch = value25.dispatch;
binding = env2_0;
APIError = binding(binding5[11]).APIError;
value26 = Object.create(APIError.prototype, {constructor: {value: APIError}});
aPIError = new APIError();
Reflect.apply(dispatch, value25, [{type: 'USER_PROFILE_FETCH_FAILURE',
apiError: aPIError instanceof Object ? aPIError : value26, fetchStartedAt: value, userId: a0,
guildId: guildId}]);
throw error;
}
binding = env2_1;
binding5 = env2_2;
value25 = binding(binding5[7]);
dispatch = value25.dispatch;
binding = env2_0;
APIError = binding(binding5[11]).APIError;
value26 = Object.create(APIError.prototype, {constructor: {value: APIError}});
aPIError = new APIError();
Reflect.apply(dispatch, value25, [{type: 'USER_PROFILE_FETCH_FAILURE',
apiError: aPIError instanceof Object ? aPIError : value26, fetchStartedAt: value, userId: a0,
guildId: guildId}]);
throw error;
}
body = error.body;
if (body != null) {
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
concat = global.HermesInternal.concat;
Reflect.apply(warn, binding, ['fetchProfile error: ' + code + ' - ' + message]);
binding = env2_1;
binding5 = env2_2;
value25 = binding(binding5[7]);
dispatch = value25.dispatch;
binding = env2_0;
APIError = binding(binding5[11]).APIError;
value26 = Object.create(APIError.prototype, {constructor: {value: APIError}});
aPIError = new APIError();
Reflect.apply(dispatch, value25, [{type: 'USER_PROFILE_FETCH_FAILURE',
apiError: aPIError instanceof Object ? aPIError : value26, fetchStartedAt: value, userId: a0,
guildId: guildId}]);
throw error;
}
binding = env2_1;
binding5 = env2_2;
value25 = binding(binding5[7]);
dispatch = value25.dispatch;
binding = env2_0;
APIError = binding(binding5[11]).APIError;
value26 = Object.create(APIError.prototype, {constructor: {value: APIError}});
aPIError = new APIError();
Reflect.apply(dispatch, value25, [{type: 'USER_PROFILE_FETCH_FAILURE',
apiError: aPIError instanceof Object ? aPIError : value26, fetchStartedAt: value, userId: a0,
guildId: guildId}]);
throw error;
}
r5 = value23;
if (r5) {
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
concat = global.HermesInternal.concat;
Reflect.apply(warn, binding, ['fetchProfile error: ' + code + ' - ' + message]);
binding = env2_1;
binding5 = env2_2;
value25 = binding(binding5[7]);
dispatch = value25.dispatch;
binding = env2_0;
APIError = binding(binding5[11]).APIError;
value26 = Object.create(APIError.prototype, {constructor: {value: APIError}});
aPIError = new APIError();
Reflect.apply(dispatch, value25, [{type: 'USER_PROFILE_FETCH_FAILURE',
apiError: aPIError instanceof Object ? aPIError : value26, fetchStartedAt: value, userId: a0,
guildId: guildId}]);
throw error;
}
binding = env2_1;
binding5 = env2_2;
value25 = binding(binding5[7]);
dispatch = value25.dispatch;
binding = env2_0;
APIError = binding(binding5[11]).APIError;
prototype = APIError.prototype;
value26 = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value27 = aPIError instanceof Object ? aPIError : value26;
Reflect.apply(dispatch, value25, [{type: 'USER_PROFILE_FETCH_FAILURE', apiError: value27, fetchStartedAt: value,
userId: a0, guildId: guildId}]);
throw error;
break exceptionSkip107;
}
}
}
function _fetchMutualFriends() { // fn#63998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:1386, offset: 0x01b98e32, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun64000).apply(this, arguments);
function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:1447, offset: 0x01b98e6b, size: 364 bytes, params: 3, frame: 23
var body;
var binding2;
var property;
var value5;
var HTTP;
var get;
var USER_RELATIONSHIPS;
var value6;
var value7;
var value8;
var value9;
var binding3;
var value10;
var error;
var warn;
var code;
var message;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value3 = undefined;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_START', userId: a0});
try {
binding = env2_0;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
binding2 = env2_2;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
property = binding2[6];
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
value5 = binding(property);
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
HTTP = value5.HTTP;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
get = HTTP.get;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object = {};
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
binding = env2_6;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
USER_RELATIONSHIPS = binding.USER_RELATIONSHIPS;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
value6 = Reflect.apply(USER_RELATIONSHIPS, binding, [a0]);
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object.url = value6;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object.oldFormErrors = true;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object.signal = a1;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object.rejectWithError = false;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
value7 = Reflect.apply(get, HTTP, [object]);
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
yield value7;
try {
value8 = undefined;
value9 = false;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
if (value9) {
return value8;
}
try {
binding = env2_1;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
binding3 = env2_2;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
property = binding3[7];
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
value10 = binding(property);
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
dispatch = value10.dispatch;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object = {};
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object.type = 'MUTUAL_FRIENDS_FETCH_SUCCESS';
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object.userId = a0;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
body = value8.body;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
object.mutualFriends = body;
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
try {
Reflect.apply(dispatch, value10, [object]);
} catch (error) {
if (error == null) {
body = value3;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + body.message]);
binding = env2_1;
binding(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
body = error.body;
if (body == null) {
env2_1(env2_2[7]).dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
binding = env2_8;
warn = binding.warn;
body = error.body;
code = body.code;
body = error.body;
message = body.message;
Reflect.apply(warn, binding, ['fetchMutualFriends error: ' + code + ' - ' + message]);
binding = env2_1;
value = binding(env2_2[7]);
value.dispatch({type: 'MUTUAL_FRIENDS_FETCH_FAILURE', userId: a0});
throw error;
}
return value3;
}
}
function fetchCurrentUser() { // fn#64001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2015, offset: 0x01b98fd7, size: 137 bytes, params: 1, frame: 15
const value = a0;
const withAnalyticsToken = (value !== undefined ? value : {}).withAnalyticsToken;
const r5 = withAnalyticsToken !== undefined && withAnalyticsToken;
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const ME = Endpoints.ME;
return Reflect.apply(get, HTTP, [{url: ME, query: {with_analytics_token: r5}, oldFormErrors: true,
rejectWithError: false}]).then(_fun64002);
function _fun64002(a0) { // fn#64002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2199, offset: 0x01b99060, size: 114 bytes, params: 2, frame: 15
let value = environment.__proto__;
const value2 = undefined;
const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch;
let body = a0.body;
Reflect.apply(dispatch, defaultImport, [{type: 'CURRENT_USER_UPDATE', user: body,
analyticsToken: env0_0 ? a0.body.analytics_token : value2}]);
const userRecordBinding = UserRecord;
body = a0.body;
value = Object.create(userRecordBinding.prototype, {constructor: {value: userRecordBinding}});
const userRecord2 = new userRecordBinding(body);
return userRecord2 instanceof Object ? userRecord2 : value;
}
}
function acceptAgreements() { // fn#64003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2346, offset: 0x01b990d2, size: 164 bytes, params: 1, frame: 20
const value = a0;
const value2 = a1;
const r6 = !(value !== undefined) || value;
const r5 = !(value2 !== undefined) || value2;
const defaultImport = TrackedHTTPUtils;
const patch = defaultImport.patch;
const object = {};
const USER_AGREEMENTS = Endpoints.USER_AGREEMENTS;
object.url = USER_AGREEMENTS;
const NetworkActionNames = (AnalyticsSchemaModule).NetworkActionNames;
const USER_ACCEPT_AGREEMENTS = NetworkActionNames.USER_ACCEPT_AGREEMENTS;
object.trackedActionData = {event: USER_ACCEPT_AGREEMENTS};
object.body = {terms: r6, privacy: r5};
object.oldFormErrors = true;
object.rejectWithError = false;
return Reflect.apply(patch, defaultImport, [object]).then(function() {
return true;
}, function() {
return false;
});
}
function setFlag_64006(a0, a1) { // fn#64006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2601, offset: 0x01b99176, size: 160 bytes, params: 3, frame: 16
const currentUser = UserStore.getCurrentUser();
(Module00044)(currentUser != null, 'setFlag: user cannot be undefined');
const flags = currentUser.flags;
const r4 = a1 ? flags | a0 : flags & ~a0;
const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch;
const ME = Endpoints.ME;
return Reflect.apply(patch, HTTP, [{url: ME, oldFormErrors: true, body: {flags: r4}, rejectWithError: false}]);
}
function getUser(a0) { // fn#64007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2831, offset: 0x01b99216, size: 138 bytes, params: 2, frame: 16
var r0;
var HTTP;
var get;
var object;
const env0_0 = a0;
var value;
const user = UserStore.getUser(a0);
if (user != null) {
r0 = global.Promise.resolve(user);
} else {
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get;
object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.USER(a0);
value = Reflect.apply(get, HTTP, [object]);
value = value.then(_fun64008);
r0 = value;
}
return r0;
function _fun64008({body}) { // fn#64008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2980, offset: 0x01b992a0, size: 81 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'USER_UPDATE', user: body});
return UserStore.getUser(env0_0);
}
}
}
global.__d(_fun63994, 8061, [5, 1885, 1878, 661, 662, 3, 507, 694, 5046, 648, 44, 4131,
2]) /* metro module 8061, dependencies: [5, 1885, 1878, 661, 662, 3, 507, 694, 5046, 648, 44, 4131, 2] */;