decord/source/modules/friend_suggestions/FriendSuggestionActionCreators.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

42 lines
1.3 KiB
TypeScript

// Module ID: 7714
// Function ID: 7715
// Name: FriendSuggestionActionCreators
// Dependencies: [5, 1074, 1272, 573, 2]
// Module 7714 (FriendSuggestionActionCreators)
import HTTPUtils from "HTTPUtils" /* 1272 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
require = fn;
const Endpoints = fn(1074).Endpoints;
const size = fn(2);
const result = size.fileFinishedImporting("modules/friend_suggestions/FriendSuggestionActionCreators.tsx");
export default {
fetch() {
return (async () => {
closure_1 = tmp3;
const HTTP = HTTPUtils.HTTP;
await HTTP.get({ url: constants.FRIEND_SUGGESTIONS, rejectWithError: true });
if (1 === tmp7) {
c3 = 0;
closure_129_1(closure_129_2[3]).dispatch({ type: "LOAD_FRIEND_SUGGESTIONS_FAILURE" });
c5 = 3;
closure_129_1(closure_129_2[3]);
} else if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 !== 2) {
closure_128_0 = arg1;
closure_129_1(closure_129_2[3]).dispatch({ type: "LOAD_FRIEND_SUGGESTIONS_SUCCESS", suggestions: closure_128_0.body });
c3 = 0;
closure_129_1(closure_129_2[3]);
}
return arg1;
})();
},
ignore(id) {
const HTTP = HTTPUtils.HTTP;
HTTP.del({ url: Endpoints.FRIEND_SUGGESTION(id), rejectWithError: true });
}
};