1730 lines
62 KiB
TypeScript
1730 lines
62 KiB
TypeScript
/* Metro module 8061; source: actions/UserActionCreators.tsx; dependencies: [5, 1885, 1878, 661, 662, 3, 507, 694, 5046, 648, 44, 4131, 2] */
|
|
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});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const env0_6 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
const env0_7 = (require(662) /* metro dependency 662: RouteConstants */).PSEUDO_GUILD_IDS;
|
|
let value = importDefault(3) /* metro dependency 3: Logger */;
|
|
value = new value('UserProfileModalActionCreators');
|
|
(require(2) /* metro dependency 2 */).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 env0_3(_fun63997).apply(this, arguments);
|
|
}
|
|
|
|
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 env0_3(_fun64000).apply(this, arguments);
|
|
}
|
|
|
|
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 = (require(507) /* metro dependency 507: HTTPUtils */).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 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 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
|
|
const patch = defaultImport.patch;
|
|
const object2 = {};
|
|
const USER_AGREEMENTS = Endpoints.USER_AGREEMENTS;
|
|
object2.url = USER_AGREEMENTS;
|
|
const NetworkActionNames = (require(648) /* metro dependency 648: AnalyticsSchema */).NetworkActionNames;
|
|
const USER_ACCEPT_AGREEMENTS = NetworkActionNames.USER_ACCEPT_AGREEMENTS;
|
|
object2.trackedActionData = {event: USER_ACCEPT_AGREEMENTS};
|
|
object2.body = {terms: r6, privacy: r5};
|
|
object2.oldFormErrors = true;
|
|
object2.rejectWithError = false;
|
|
return Reflect.apply(patch, defaultImport, [object2]).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();
|
|
(importDefault(44) /* metro dependency 44 */)(currentUser != null, 'setFlag: user cannot be undefined');
|
|
const flags = currentUser.flags;
|
|
const r4 = a1 ? flags | a0 : flags & ~a0;
|
|
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).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 object2;
|
|
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;
|
|
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
|
|
object2.url = Endpoints.USER(a0);
|
|
value = Reflect.apply(get, HTTP, [object2]);
|
|
value = value.then(_fun64008);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
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 object3;
|
|
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 object4;
|
|
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 {
|
|
object3 = {};
|
|
} 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 {
|
|
object3.url = value11;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object4.type = type;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object4.with_mutual_guilds = withMutualGuilds;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object4.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 {
|
|
object4.with_mutual_friends_count = r21;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object4.guild_id = r5;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object4.connections_role_id = connectionsRoleId;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object4.join_request_id = joinRequestId;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.query = object4;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.signal = abortSignal;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.rejectWithError = true;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(get, HTTP, [object3]);
|
|
} 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 {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.type = 'USER_UPDATE';
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
body = value15.body;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
user = body.user;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.user = user;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value18, [object3]);
|
|
} 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 {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.type = 'USER_PROFILE_FETCH_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
body = value15.body;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.userProfile = body;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.fetchStartedAt = value;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.guildId = guildId;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value19, [object3]);
|
|
} 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 {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.type = 'GUILD_MEMBER_PROFILE_UPDATE';
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
object3.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 {
|
|
object3.guildMember = guild_member;
|
|
} catch (error) {
|
|
break exceptionLanding107;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value22, [object3]);
|
|
} 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* _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 object2;
|
|
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 {
|
|
object2 = {};
|
|
} 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 {
|
|
object2.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 {
|
|
object2.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 {
|
|
object2.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 {
|
|
object2.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, [object2]);
|
|
} 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 {
|
|
object2 = {};
|
|
} 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 {
|
|
object2.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 {
|
|
object2.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 {
|
|
object2.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, [object2]);
|
|
} 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 _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 = importDefault(694) /* metro dependency 694: 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}]);
|
|
body = a0.body;
|
|
value = Object.create(UserRecord.prototype, {constructor: {value: UserRecord}});
|
|
const userRecord = new UserRecord(body);
|
|
return userRecord instanceof Object ? userRecord : value;
|
|
}
|
|
|
|
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
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_UPDATE', user: body});
|
|
return UserStore.getUser(env0_0);
|
|
}
|
|
|