Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
52 lines
2 KiB
TypeScript
52 lines
2 KiB
TypeScript
// Module ID: 11593
|
|
// Function ID: 11594
|
|
// Name: ChannelFollowerActionCreators
|
|
// Dependencies: [5, 1074, 1271, 573, 2]
|
|
|
|
// Module 11593 (ChannelFollowerActionCreators)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import HTTPUtils from "HTTPUtils" /* 1271 */;
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
|
|
require = fn;
|
|
const Endpoints = fn(1074).Endpoints;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("actions/ChannelFollowerActionCreators.tsx");
|
|
|
|
export default {
|
|
createChannelFollower(webhook_channel_id, arg1) {
|
|
const HTTP = HTTPUtils.HTTP;
|
|
const request = { url: Endpoints.CHANNEL_FOLLOWERS(arg1), body: { webhook_channel_id }, oldFormErrors: true, rejectWithError: HTTPUtils.rejectWithMigratedError() };
|
|
return HTTP.post(request);
|
|
},
|
|
fetchChannelFollowerStats(arg0) {
|
|
closure_0 = arg0;
|
|
return (async () => {
|
|
tmp3(tmp21[3]).dispatch({ type: "CHANNEL_FOLLOWER_STATS_FETCH_START" });
|
|
const HTTP = channel_id(tmp21[2]).HTTP;
|
|
const request = { url: c4.CHANNEL_FOLLOWER_STATS(channel_id), body: { channel_id }, oldFormErrors: true, rejectWithError: true };
|
|
await HTTP.get(request);
|
|
if (1 === tmp7) {
|
|
c3 = 0;
|
|
tmp3(tmp21[3]).dispatch({ type: "CHANNEL_FOLLOWER_STATS_FETCH_FAILURE", channelId: closure_129_0 });
|
|
c5 = 3;
|
|
tmp3(tmp21[3]);
|
|
} else if (arg0 === 1) {
|
|
c5 = 3;
|
|
throw arg1;
|
|
} else if (arg0 !== 2) {
|
|
closure_128_0 = arg1;
|
|
tmp3(tmp21[3]).dispatch({ type: "CHANNEL_FOLLOWER_STATS_FETCH_SUCCESS", stats: closure_128_0.body, channelId: closure_129_0 });
|
|
c3 = 0;
|
|
tmp3(tmp21[3]);
|
|
}
|
|
return arg1;
|
|
})();
|
|
},
|
|
dismissPublishBump(messageId) {
|
|
DispatcherDefault.dispatch({ type: "CHANNEL_FOLLOWING_PUBLISH_BUMP_DISMISSED", messageId });
|
|
},
|
|
permanentlyHidePublishBump(channelId) {
|
|
DispatcherDefault.dispatch({ type: "CHANNEL_FOLLOWING_PUBLISH_BUMP_HIDE_PERMANENTLY", channelId });
|
|
}
|
|
};
|