Files
2026-07-28 01:06:53 +03:00

557 lines
26 KiB
TypeScript

/* Metro module 14490; source: modules/active_channels/ActiveChannelsActionCreators.tsx; dependencies: [5, 661, 694, 507, 4132, 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 _fun109669(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14687:6, offset: 0x02356358, size: 151 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/active_channels/ActiveChannelsActionCreators.tsx');
exports.fetchActiveChannels = function() {
return _fetchActiveChannels.apply(this, arguments);
};
function _fetchActiveChannels() { // fn#109670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14687:128, offset: 0x023563ef, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun109672).apply(this, arguments);
async function _fun109672(a0) { // fn#109672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14687:191, offset: 0x02356435, size: 381 bytes, params: 2, frame: 24
var channels;
var r11;
var binding2;
var property;
var value7;
var HTTP;
var get;
var ACTIVE_CHANNELS;
var value8;
var object2;
var value9;
var value10;
var value11;
var body;
var value12;
var value13;
var binding3;
var value14;
var error;
var binding4;
var value15;
var prototype;
var value16;
var value17;
var value18;
let value = a1;
if (false) {
return undefined;
}
const value4 = undefined;
const r1 = value !== value4 ? value : 10;
await value4;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
binding(env2_2[2]).dispatch({type: 'ACTIVE_CHANNELS_FETCH_START', guildId: a0});
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
property = binding2[3];
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
value7 = binding(property);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
HTTP = value7.HTTP;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
get = HTTP.get;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
binding = env2_4;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
ACTIVE_CHANNELS = binding.ACTIVE_CHANNELS;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
value8 = Reflect.apply(ACTIVE_CHANNELS, binding, [a0]);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object.url = value8;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object2 = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object2.channel_limit = r1;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object.query = object2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object.rejectWithError = true;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
value9 = Reflect.apply(get, HTTP, [object]);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
await value9;
try {
value10 = undefined;
value11 = false;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
if (!value11) {
try {
body = value10.body;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
value12 = body == null;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
if (value12) {
channels = value4;
} else {
try {
channels = body.channels;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
}
try {
value13 = channels != null;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
if (value13) {
r11 = channels;
} else {
try {
object = [];
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
r11 = object;
}
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
property = binding3[2];
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
value14 = binding(property);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
dispatch = value14.dispatch;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object.type = 'ACTIVE_CHANNELS_FETCH_SUCCESS';
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object.guildId = a0;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
object.channels = r11;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
try {
Reflect.apply(dispatch, value14, [object]);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[2]);
dispatch = value.dispatch;
value15 = binding(binding4[4]);
prototype = value15.prototype;
value16 = Object.create(prototype, {constructor: {value: value15}});
value17 = new value15();
value18 = value17 instanceof Object ? value17 : value16;
Reflect.apply(dispatch, value, [{type: 'ACTIVE_CHANNELS_FETCH_FAILURE', guildId: a0, error: value18}]);
throw error;
}
}
return value10;
}
}
}
global.__d(_fun109669, 14490, [5, 661, 694, 507, 4132,
2]) /* metro module 14490, dependencies: [5, 661, 694, 507, 4132, 2] */;