240 lines
9.4 KiB
TypeScript
240 lines
9.4 KiB
TypeScript
/* Metro module 11166; source: actions/ChannelFollowerActionCreators.tsx; dependencies: [5, 661, 507, 694, 2] */
|
|
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun85255(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:6, offset: 0x01f69009, size: 187 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {createChannelFollower: function(a0, a1) {
|
|
var HTTP = require(dependencyMap[2]).HTTP;
|
|
var object = {};
|
|
object.url = Endpoints.CHANNEL_FOLLOWERS(a1);
|
|
object.body = {webhook_channel_id: a0};
|
|
object.oldFormErrors = true;
|
|
object.rejectWithError = false;
|
|
return HTTP.post(object);
|
|
}, fetchChannelFollowerStats: fetchChannelFollowerStats, dismissPublishBump: dismissPublishBump,
|
|
permanentlyHidePublishBump: permanentlyHidePublishBump};
|
|
(FileImportTrackerModule).fileFinishedImporting('actions/ChannelFollowerActionCreators.tsx');
|
|
exports.default = object;
|
|
function fetchChannelFollowerStats(a0) { // fn#85257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:298, offset: 0x01f69122, size: 36 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return Module00005(_fun85259)();
|
|
function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:304, offset: 0x01f69151, size: 271 bytes, params: 1, frame: 19
|
|
var object2;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var HTTP;
|
|
var get;
|
|
var CHANNEL_FOLLOWER_STATS;
|
|
var value6;
|
|
var object;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var binding3;
|
|
var value10;
|
|
var body;
|
|
var error;
|
|
var value11;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_1;
|
|
var value3 = binding(env2_2[3]);
|
|
var dispatch = value3.dispatch;
|
|
Reflect.apply(dispatch, value3, [{type: 'CHANNEL_FOLLOWER_STATS_FETCH_START'}]);
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort41: while (true) {
|
|
exceptionLanding40: while (true) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'CHANNEL_FOLLOWER_STATS_FETCH_FAILURE', channelId: require}]);
|
|
break reduciblePort41;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
HTTP = value4.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
CHANNEL_FOLLOWER_STATS = binding.CHANNEL_FOLLOWER_STATS;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(CHANNEL_FOLLOWER_STATS, binding, [require]);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2.url = value6;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object.channel_id = require;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2.body = object;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2.oldFormErrors = true;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2.rejectWithError = true;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(get, HTTP, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2.type = 'CHANNEL_FOLLOWER_STATS_FETCH_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
body = value8.body;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2.stats = body;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object2.channelId = require;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value10, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function dismissPublishBump(a0) { // fn#85260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:682, offset: 0x01f69260, size: 56 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'CHANNEL_FOLLOWING_PUBLISH_BUMP_DISMISSED',
|
|
messageId: a0});
|
|
}
|
|
|
|
function permanentlyHidePublishBump(a0) { // fn#85261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:785, offset: 0x01f69298, size: 56 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'CHANNEL_FOLLOWING_PUBLISH_BUMP_HIDE_PERMANENTLY',
|
|
channelId: a0});
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun85255, 11166, [5, 661, 507, 694, 2]) /* metro module 11166, dependencies: [5, 661, 507, 694, 2] */;
|