// Module ID: 9894 // Function ID: 9895 // Dependencies: [5, 676, 530, 709, 2] // Module 9894 import asyncGeneratorStep from "asyncGeneratorStep"; import { Endpoints } from "ME"; const require = arg1; const result = require("sendRequest").fileFinishedImporting("actions/ChannelFollowerActionCreators.tsx"); export default { createChannelFollower(webhook_channel_id, closure_1) { const HTTP = require(530) /* sendRequest */.HTTP; obj = { url: Endpoints.CHANNEL_FOLLOWERS(closure_1), body: obj, oldFormErrors: true, rejectWithError: null }; obj = { webhook_channel_id }; obj[3] = require(530) /* sendRequest */.rejectWithMigratedError(); return HTTP.post(obj); }, fetchChannelFollowerStats(closure_0) { return callback(function*() { if (c5 === 2) { c5 = 3; HermesBuiltin.throwTypeError(); } else if (tmp6 === 3) { if (arg0 === 1) { throw arg1; } else if (arg0 === 2) { let obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { return { value: "HermesInternal", done: null }; } } else { try { c5 = 2; if (0 === c4) { if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 === 2) { c5 = 3; obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { let closure_1 = tmp3; let body = tmp7; body = undefined; outer1_1(outer1_2[3]).dispatch({ type: "CHANNEL_FOLLOWER_STATS_FETCH_START" }); let c3 = 1; const HTTP = outer1_0(outer1_2[2]).HTTP; const obj1 = { url: null, body: null, oldFormErrors: true, rejectWithError: true }; obj1[0] = c4.CHANNEL_FOLLOWER_STATS(outer1_0); const obj2 = { channel_id: null }; obj2[0] = outer1_0; obj1[1] = obj2; c4 = 2; c5 = 1; let obj3 = { value: null, done: false }; obj3[0] = HTTP.get(obj1); return obj3; } } else { if (1 === tmp7) { c3 = 0; obj3 = outer1_1(outer1_2[3]); const obj4 = { type: "CHANNEL_FOLLOWER_STATS_FETCH_FAILURE", channelId: null }; obj4[1] = body; obj3.dispatch(obj4); c5 = 3; } else if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 !== 2) { body = arg1; obj = outer1_1(outer1_2[3]); const obj5 = { type: "CHANNEL_FOLLOWER_STATS_FETCH_SUCCESS", stats: null, channelId: null }; obj5[1] = body.body; obj5[2] = body; obj.dispatch(obj5); c3 = 0; } c3 = 0; c5 = 3; const obj6 = { value: null, done: true }; obj6[0] = arg1; return obj6; } } catch (tmp21) { let closure_2 = tmp21; if (tmp4 === c3) { c5 = tmp2; throw tmp21; } else { c4 = tmp; } } } })(); }, dismissPublishBump(messageId) { let obj = importDefault(709); obj = { type: "CHANNEL_FOLLOWING_PUBLISH_BUMP_DISMISSED", messageId }; obj.dispatch(obj); }, permanentlyHidePublishBump(channelId) { let obj = importDefault(709); obj = { type: "CHANNEL_FOLLOWING_PUBLISH_BUMP_HIDE_PERMANENTLY", channelId }; obj.dispatch(obj); } };