236 lines
9.7 KiB
TypeScript
236 lines
9.7 KiB
TypeScript
/* Metro module 5245; source: modules/friend_suggestions/FriendSuggestionActionCreators.tsx; dependencies: [5, 661, 507, 694, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun46685(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5423:6, offset: 0x011ad168, size: 155 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {fetch: fetch_46686, ignore: function(a0) {
|
|
var HTTP = require(dependencyMap[2]).HTTP;
|
|
var object = {};
|
|
object.url = Endpoints.FRIEND_SUGGESTION(a0);
|
|
object.rejectWithError = true;
|
|
HTTP.del(object);
|
|
}};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/friend_suggestions/FriendSuggestionActionCreators.tsx');
|
|
exports.default = object;
|
|
function fetch_46686() { // fn#46686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5423:135, offset: 0x011ad203, size: 27 bytes, params: 1, frame: 11
|
|
return Module00005(_fun46688)();
|
|
function* _fun46688() { // fn#46688, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5423:142, offset: 0x011ad227, size: 194 bytes, params: 1, frame: 15
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var HTTP;
|
|
var get;
|
|
var object;
|
|
var FRIEND_SUGGESTIONS;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var binding3;
|
|
var value7;
|
|
var dispatch;
|
|
var body;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
HTTP = value3.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
FRIEND_SUGGESTIONS = binding.FRIEND_SUGGESTIONS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.url = FRIEND_SUGGESTIONS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatch = value7.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.type = 'LOAD_FRIEND_SUGGESTIONS_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
body = value5.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.suggestions = body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value7, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'LOAD_FRIEND_SUGGESTIONS_FAILURE'});
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun46685, 5245, [5, 661, 507, 694, 2]) /* metro module 5245, dependencies: [5, 661, 507, 694, 2] */;
|