3206 lines
99 KiB
TypeScript
3206 lines
99 KiB
TypeScript
/* Metro module 4603; source: actions/ChannelActionCreators.tsx; dependencies: [57, 5, 4604, 1383, 1379, 4605, 661, 8916, 507, 6595, 4008, 4601, 4796, 694, 8876, 683, 1230, 4002, 1244, 6931, 4141, 2] */
|
|
function _fun39061(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#39061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:6, offset: 0x010d706b, size: 529 bytes, params: 8, frame: 19
|
|
var object2;
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_3 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
|
const changelogStore = importDefault(4604) /* metro dependency 4604: ChangelogStore */;
|
|
const env0_6 = (require(1383) /* metro dependency 1383: ChannelRecord */).createChannelRecordFromServer;
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_9 = constantsModule.AnalyticEvents;
|
|
const env0_10 = constantsModule.AbortCodes;
|
|
const env0_11 = constantsModule.Endpoints;
|
|
const env0_12 = constantsModule.Routes;
|
|
const env0_13 = constantsModule.ME;
|
|
const env0_14 = constantsModule.CURRENT_APP_CONTEXT;
|
|
const env0_15 = constantsModule.ChannelTypes;
|
|
object2 = {openPrivateChannel: openPrivateChannel, createGroupDmShell: function({recipientId, location,
|
|
onBeforeTransition, navigateToChannel = true}) {
|
|
var env0_3 = navigateToChannel;
|
|
return this(_fun39067)();
|
|
}, _openCachedDMChannel: _openCachedDMChannel, ensurePrivateChannel: ensurePrivateChannel,
|
|
getOrEnsurePrivateChannel: getOrEnsurePrivateChannel, getDMChannel: getDMChannel, _getRecipients: function(a0) {
|
|
var value = a0;
|
|
return value != null ? global.Array.isArray(value) ? value : [value] : [];
|
|
}, _openPrivateChannel: _openPrivateChannel, closePrivateChannel: closePrivateChannel,
|
|
updatePermissionOverwrite: updatePermissionOverwrite, clearPermissionOverwrite: clearPermissionOverwrite,
|
|
addRecipient: addRecipient, addRecipients: function(a0, a1, a2, a3) {
|
|
var env0_0 = this;
|
|
var env0_1 = a1;
|
|
var env0_2 = a2;
|
|
return this.addRecipient(a0, a1[0], a2, a3).then(_fun39094);
|
|
}, removeRecipient: function(a0, a1) {
|
|
var HTTP = require(dependencyMap[8]).HTTP;
|
|
var object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
|
object.url = Endpoints.CHANNEL_RECIPIENT(a0, a1);
|
|
return HTTP.del(object);
|
|
}, setDMOwner: function(a0, a1) {
|
|
var HTTP = require(dependencyMap[8]).HTTP;
|
|
var object = {};
|
|
object.url = Endpoints.CHANNEL(a0);
|
|
object.body = {owner: a1};
|
|
object.oldFormErrors = true;
|
|
object.rejectWithError = true;
|
|
return HTTP.patch(object);
|
|
}, setName: setName, setIcon: setIcon, updateChannel: updateChannel, convertToGuild: function(a0) {
|
|
var HTTP = require(dependencyMap[8]).HTTP;
|
|
var object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
|
object.url = Endpoints.CHANNEL_CONVERT(a0);
|
|
return HTTP.post(object);
|
|
}, preload: function(a0, a1) {
|
|
var value = a0;
|
|
importDefault(dependencyMap[13]).dispatch({type: 'CHANNEL_PRELOAD', guildId: value === ME ? null : value,
|
|
channelId: a1, context: CURRENT_APP_CONTEXT});
|
|
}, fetchChannelStoreListing: fetchChannelStoreListing, createTextChannel: createTextChannel,
|
|
fetchChannel: fetchChannel, openChannel: openChannel};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelActionCreators.tsx');
|
|
exports.default = object2;
|
|
}
|
|
|
|
function openPrivateChannel({recipientIds, joinCall, joinCallVideo, location, onBeforeTransition, navigateToChannel}) { // fn#39062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:306, offset: 0x010d727c, size: 118 bytes, params: 2, frame: 13
|
|
if (joinCall !== undefined) {
|
|
}
|
|
if (joinCallVideo !== undefined) {
|
|
}
|
|
if (navigateToChannel !== undefined) {
|
|
}
|
|
return onBeforeTransition(_fun39064)();
|
|
}
|
|
|
|
function createGroupDmShell({recipientId, location, onBeforeTransition, navigateToChannel}) { // fn#39066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:1038, offset: 0x010d7503, size: 82 bytes, params: 2, frame: 12
|
|
if (navigateToChannel !== undefined) {
|
|
}
|
|
return this(_fun39068)();
|
|
}
|
|
|
|
function _openCachedDMChannel(a0, a1) { // fn#39069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:1477, offset: 0x010d767b, size: 215 bytes, params: 3, frame: 18
|
|
var r0;
|
|
var moduleValue;
|
|
let value = a2;
|
|
const r6 = !(value !== undefined) || value;
|
|
const dMFromUserId = ChannelStore.getDMFromUserId(a0);
|
|
const value3 = null;
|
|
const r1 = value3 != dMFromUserId ? ChannelStore.getChannel(dMFromUserId) : value3;
|
|
if (value3 == r1) {
|
|
r0 = value3;
|
|
} else if (r6) {
|
|
if (value3 != a1) {
|
|
a1();
|
|
}
|
|
moduleValue = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
|
|
if (value3 != moduleValue.getRootNavigationRef()) {
|
|
value = require(4601) /* metro dependency 4601: transitionToChannel */;
|
|
value.transitionToChannel(r1.id, {navigationReplace: true});
|
|
r0 = r1;
|
|
} else {
|
|
value = importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */;
|
|
value.selectPrivateChannel(r1.id);
|
|
r0 = r1;
|
|
}
|
|
} else {
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function ensurePrivateChannel(a0) { // fn#39070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:1740, offset: 0x010d7752, size: 41 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return env0_4(_fun39072)();
|
|
}
|
|
|
|
function getOrEnsurePrivateChannel(a0) { // fn#39073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:2011, offset: 0x010d7847, size: 41 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return env0_4(_fun39075)();
|
|
}
|
|
|
|
function getDMChannel(a0) { // fn#39076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:2168, offset: 0x010d78c8, size: 34 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return env0_4(_fun39078)();
|
|
}
|
|
|
|
function _openPrivateChannel(a0) { // fn#39080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:2391, offset: 0x010d79d0, size: 179 bytes, params: 2, frame: 17
|
|
var value;
|
|
const channelRecordFromServer = createChannelRecordFromServer(a0);
|
|
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
defaultImport.dispatch({type: 'CHANNEL_CREATE', channel: channelRecordFromServer});
|
|
if ((require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef() != null) {
|
|
value = require(4601) /* metro dependency 4601: transitionToChannel */;
|
|
value.transitionToChannel(channelRecordFromServer.id, {navigationReplace: true});
|
|
} else {
|
|
value = importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */;
|
|
value.selectPrivateChannel(channelRecordFromServer.id);
|
|
}
|
|
return channelRecordFromServer;
|
|
}
|
|
|
|
function closePrivateChannel(a0) { // fn#39081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:2640, offset: 0x010d7a83, size: 363 bytes, params: 2, frame: 21
|
|
var defaultImport;
|
|
var track;
|
|
var CHANGE_LOG_DM_REMOVED;
|
|
var object2;
|
|
var moduleValue;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
const r1 = value !== undefined ? value : false;
|
|
const r5 = value2 !== undefined ? value2 : false;
|
|
if ((importDefault(8876) /* metro dependency 8876: isChangelogChannel */)(a0)) {
|
|
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport.track;
|
|
CHANGE_LOG_DM_REMOVED = AnalyticEvents.CHANGE_LOG_DM_REMOVED;
|
|
object2 = {};
|
|
object2.last_changelog_id = ChangelogStore.latestChangelogId();
|
|
object2.unread_count = ReadStateStore.getUnreadCount(a0);
|
|
Reflect.apply(track, defaultImport, [CHANGE_LOG_DM_REMOVED, object2]);
|
|
}
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_DELETE', channel: {id: a0,
|
|
guild_id: undefined, parent_id: undefined}, silent: r5});
|
|
if (r1) {
|
|
moduleValue = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue.transitionTo(Routes.FRIENDS);
|
|
}
|
|
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
|
const del = HTTP.del;
|
|
object2 = {};
|
|
object2.url = Endpoints.CHANNEL(a0);
|
|
object2.query = {silent: r5};
|
|
object2.oldFormErrors = true;
|
|
object2.rejectWithError = false;
|
|
value = Reflect.apply(del, HTTP, [object2]);
|
|
value = value.then(function() {
|
|
var AccessibilityAnnouncer = require(dependencyMap[17]).AccessibilityAnnouncer;
|
|
AccessibilityAnnouncer.announce(require(dependencyMap[18]).intl.string(require(dependencyMap[18]).t.nRbucl));
|
|
});
|
|
return value.catch(function() {
|
|
var AccessibilityAnnouncer = require(dependencyMap[17]).AccessibilityAnnouncer;
|
|
AccessibilityAnnouncer.announce(require(dependencyMap[18]).intl.string(require(dependencyMap[18]).t.ndXVI5));
|
|
});
|
|
}
|
|
|
|
function updatePermissionOverwrite(a0, a1) { // fn#39084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:3230, offset: 0x010d7ca8, size: 41 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return env0_4(_fun39086)();
|
|
}
|
|
|
|
function clearPermissionOverwrite(a0, a1) { // fn#39087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:3504, offset: 0x010d7d90, size: 41 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return env0_4(_fun39089)();
|
|
}
|
|
|
|
function addRecipient(a0, a1, a2, a3) { // fn#39090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:3748, offset: 0x010d7e6c, size: 146 bytes, params: 5, frame: 17
|
|
const env0_1 = a0;
|
|
const env0_2 = a3;
|
|
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
|
const put = HTTP.put;
|
|
const object2 = {};
|
|
object2.url = Endpoints.CHANNEL_RECIPIENT(a0, a1);
|
|
object2.context = {location: a2};
|
|
object2.oldFormErrors = true;
|
|
object2.rejectWithError = true;
|
|
let value = Reflect.apply(put, HTTP, [object2]);
|
|
value = value.then(_fun39091);
|
|
return value.catch(_fun39092);
|
|
}
|
|
|
|
function addRecipients(a0, a1, a2, a3) { // fn#39093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:4147, offset: 0x010d8002, size: 68 bytes, params: 5, frame: 18
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
return this.addRecipient(a0, a1[0], a2, a3).then(_fun39094);
|
|
}
|
|
|
|
function setName(a0, a1) { // fn#39099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:4516, offset: 0x010d8167, size: 41 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return env0_4(_fun39101)();
|
|
}
|
|
|
|
function setIcon(a0, a1, a2) { // fn#39102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:4779, offset: 0x010d8274, size: 48 bytes, params: 4, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
return env0_4(_fun39104)();
|
|
}
|
|
|
|
function updateChannel(a0, a1, a2) { // fn#39105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:5591, offset: 0x010d852f, size: 48 bytes, params: 4, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
return env0_4(_fun39107)();
|
|
}
|
|
|
|
function fetchChannelStoreListing(a0, a1) { // fn#39110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:6599, offset: 0x010d88bb, size: 110 bytes, params: 3, frame: 15
|
|
const env0_0 = a0;
|
|
const r3 = a1 != null ? Endpoints.CHANNEL_STORE_LISTING_SKU(a0, a1) : Endpoints.CHANNEL_STORE_LISTING(a0);
|
|
let value = require(4141) /* metro dependency 4141: StoreUtils */;
|
|
value = value.httpGetWithCountryCodeQuery(r3);
|
|
return value.then(_fun39111);
|
|
}
|
|
|
|
function createTextChannel(a0, a1, a2, a3) { // fn#39112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:6870, offset: 0x010d8970, size: 55 bytes, params: 5, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
return env0_4(_fun39114)();
|
|
}
|
|
|
|
function fetchChannel(a0) { // fn#39115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:7163, offset: 0x010d8a8d, size: 34 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return env0_4(_fun39117)();
|
|
}
|
|
|
|
function openChannel(a0) { // fn#39118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:7261, offset: 0x010d8b21, size: 41 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return env0_4(_fun39120)();
|
|
}
|
|
|
|
function* _fun39064() { // fn#39064, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:452, offset: 0x010d72fb, size: 421 bytes, params: 1, frame: 23
|
|
var environment;
|
|
var code;
|
|
var value5;
|
|
var property;
|
|
var _openCachedDMChannel;
|
|
var binding;
|
|
var value7;
|
|
var binding2;
|
|
var value9;
|
|
var HTTP;
|
|
var post;
|
|
var object4;
|
|
var USER_CHANNELS;
|
|
var object5;
|
|
var object6;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var _openPrivateChannel;
|
|
var body;
|
|
var value14;
|
|
var id;
|
|
var error;
|
|
var QUARANTINED;
|
|
var Promise;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
const closure = joinCallIfRequested;
|
|
const value4 = createChannelRecordFromServer._getRecipients(require);
|
|
if (value4.length === 1) {
|
|
value5 = environment.__proto__.__proto__;
|
|
property = env2_3(value4, 1)[0];
|
|
createChannelRecordFromServerBinding = createChannelRecordFromServer;
|
|
_openCachedDMChannel = createChannelRecordFromServerBinding._openCachedDMChannel;
|
|
binding = env1_4;
|
|
value7 = Reflect.apply(_openCachedDMChannel, createChannelRecordFromServerBinding, [property, binding,
|
|
ChangelogStore]);
|
|
if (value7 != null) {
|
|
closure(value7);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(value7.id);
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[8];
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
HTTP = value9.HTTP;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object4 = {'url': null, 'body': null, 'context': null, 'oldFormErrors': true, 'retries': 3,
|
|
'rejectWithError': false};
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_11;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
USER_CHANNELS = binding.USER_CHANNELS;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.url = USER_CHANNELS;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object5.recipients = value4;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.body = object5;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object6 = {};
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env1_3;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object6.location = binding;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.context = object6;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(post, HTTP, [object4]);
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
yield value10;
|
|
try {
|
|
value11 = undefined;
|
|
value12 = false;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
if (value12) {
|
|
return value11;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
if (ChangelogStore) {
|
|
try {
|
|
binding = env1_4;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = binding == null;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
if (!value13) {
|
|
try {
|
|
binding = env1_4;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding();
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
createChannelRecordFromServerBinding = createChannelRecordFromServer;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
_openPrivateChannel = createChannelRecordFromServerBinding._openPrivateChannel;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
body = value11.body;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(_openPrivateChannel, createChannelRecordFromServerBinding, [body]);
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
closure(value14);
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
body = value11.body;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
id = body.id;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
return id;
|
|
}
|
|
|
|
function* _fun39068() { // fn#39068, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:1150, offset: 0x010d755e, size: 285 bytes, params: 1, frame: 19
|
|
var code;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var HTTP;
|
|
var post;
|
|
var object4;
|
|
var USER_GROUP_DM_SHELL;
|
|
var object5;
|
|
var object6;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var _openPrivateChannel;
|
|
var body;
|
|
var id;
|
|
var error;
|
|
var QUARANTINED;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[8];
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
HTTP = value4.HTTP;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object4 = {'url': null, 'body': null, 'context': null, 'oldFormErrors': true, 'retries': 3,
|
|
'rejectWithError': false};
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_11;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
USER_GROUP_DM_SHELL = binding.USER_GROUP_DM_SHELL;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.url = USER_GROUP_DM_SHELL;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object5.recipient_id = require;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.body = object5;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object6 = {};
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object6.location = importDefault;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.context = object6;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(post, HTTP, [object4]);
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
binding = env1_3;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = dependencyMap == null;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
if (!value9) {
|
|
try {
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
dependencyMap();
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
binding = env1_4;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
_openPrivateChannel = binding._openPrivateChannel;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(_openPrivateChannel, binding, [body]);
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
try {
|
|
id = body.id;
|
|
} catch (error) {
|
|
if (error == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
if (value !== env2_10.QUARANTINED) {
|
|
throw error;
|
|
}
|
|
env2_1(env2_2[9])();
|
|
throw error;
|
|
}
|
|
code = body.code;
|
|
QUARANTINED = env2_10.QUARANTINED;
|
|
if (code !== QUARANTINED) {
|
|
throw error;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[9])();
|
|
throw error;
|
|
}
|
|
return id;
|
|
}
|
|
|
|
function* _fun39072() { // fn#39072, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:1785, offset: 0x010d7784, size: 195 bytes, params: 1, frame: 16
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__;
|
|
value = importDefault._getRecipients(require);
|
|
const HTTP = env2_0(env2_2[8]).HTTP;
|
|
const post = HTTP.post;
|
|
const USER_CHANNELS = env2_11.USER_CHANNELS;
|
|
yield Reflect.apply(post, HTTP, [{url: USER_CHANNELS, body: {recipients: value}, oldFormErrors: true,
|
|
rejectWithError: false}]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = env2_6(value.body);
|
|
const value5 = env2_1(env2_2[13]);
|
|
value5.dispatch({type: 'CHANNEL_CREATE', channel: value});
|
|
return value.id;
|
|
}
|
|
|
|
function* _fun39075() { // fn#39075, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:2061, offset: 0x010d7879, size: 79 bytes, params: 1, frame: 13
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const binding = env2_7;
|
|
const getDMFromUserId = binding.getDMFromUserId;
|
|
value = environment.__proto__;
|
|
const value3 = Reflect.apply(getDMFromUserId, binding, [require]);
|
|
if (value3 != null) {
|
|
return value3;
|
|
}
|
|
yield importDefault.ensurePrivateChannel(require);
|
|
value = undefined;
|
|
if (false) {
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function* _fun39078() { // fn#39078, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:2174, offset: 0x010d78f3, size: 166 bytes, params: 1, frame: 17
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const HTTP = env2_0(env2_2[8]).HTTP;
|
|
const get = HTTP.get;
|
|
const object2 = {};
|
|
object2.url = env2_11.DM_CHANNEL(require);
|
|
object2.rejectWithError = true;
|
|
yield Reflect.apply(get, HTTP, [object2]);
|
|
const value4 = undefined;
|
|
if (false) {
|
|
return value4;
|
|
}
|
|
const value6 = env2_6(value4.body);
|
|
value = env2_1(env2_2[13]);
|
|
value.dispatch({type: 'CHANNEL_CREATE', channel: value6});
|
|
return value6.id;
|
|
}
|
|
|
|
function* _fun39086() { // fn#39086, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:3240, offset: 0x010d7cda, size: 182 bytes, params: 1, frame: 21
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_0;
|
|
const HTTP = binding(env2_2[8]).HTTP;
|
|
const put = HTTP.put;
|
|
binding = env2_11;
|
|
const CHANNEL_PERMISSIONS_OVERWRITE = binding.CHANNEL_PERMISSIONS_OVERWRITE;
|
|
yield Reflect.apply(put, HTTP, [{url: Reflect.apply(CHANNEL_PERMISSIONS_OVERWRITE, binding, [require,
|
|
importDefault.id]), body: importDefault, oldFormErrors: true, rejectWithError: false}]);
|
|
const value4 = undefined;
|
|
if (true) {
|
|
env2_1(env2_2[13]).dispatch({type: 'CHANNEL_PERMISSIONS_PUT_OVERWRITE_SUCCESS', channelId: require,
|
|
overwrite: importDefault});
|
|
}
|
|
return value4;
|
|
}
|
|
|
|
function* _fun39089() { // fn#39089, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:3514, offset: 0x010d7dc2, size: 170 bytes, params: 1, frame: 20
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const HTTP = env2_0(env2_2[8]).HTTP;
|
|
const del = HTTP.del;
|
|
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
|
|
object2.url = env2_11.CHANNEL_PERMISSIONS_OVERWRITE(require, importDefault);
|
|
yield Reflect.apply(del, HTTP, [object2]);
|
|
const value4 = undefined;
|
|
if (true) {
|
|
env2_1(env2_2[13]).dispatch({type: 'CHANNEL_PERMISSIONS_DELETE_OVERWRITE_SUCCESS', channelId: require,
|
|
overwriteId: importDefault});
|
|
}
|
|
return value4;
|
|
}
|
|
|
|
function _fun39091(a0) { // fn#39091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:3889, offset: 0x010d7efe, size: 160 bytes, params: 2, frame: 17
|
|
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
|
|
const announce = AccessibilityAnnouncer.announce;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
Reflect.apply(announce, AccessibilityAnnouncer,
|
|
[intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cU0t1F)]);
|
|
if (importAll != null) {
|
|
importAll();
|
|
}
|
|
return a0.status === 201 ? env0_0._openPrivateChannel(a0.body).id : env0_1;
|
|
}
|
|
|
|
function _fun39092() { // fn#39092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:4051, offset: 0x010d7f9e, size: 100 bytes, params: 1, frame: 16
|
|
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
|
|
const announce = AccessibilityAnnouncer.announce;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
Reflect.apply(announce, AccessibilityAnnouncer,
|
|
[intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8GEdej'])]);
|
|
return env0_1;
|
|
}
|
|
|
|
function _fun39094(a0) { // fn#39094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:4213, offset: 0x010d8046, size: 80 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const Promise = global.Promise;
|
|
var value;
|
|
value = Promise.all(Reflect.apply(require.slice(1).map, value, [_fun39095]));
|
|
return value.then(_fun39096);
|
|
}
|
|
|
|
function* _fun39101() { // fn#39101, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:4526, offset: 0x010d8199, size: 219 bytes, params: 1, frame: 19
|
|
var r4;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_7;
|
|
const channel = binding.getChannel(require);
|
|
binding = env2_0;
|
|
const value5 = undefined;
|
|
const HTTP = binding(env2_2[8]).HTTP;
|
|
const patch = HTTP.patch;
|
|
const object2 = {};
|
|
object2.url = env2_11.CHANNEL(require);
|
|
object2.body = {name: importDefault};
|
|
object2.oldFormErrors = true;
|
|
object2.rejectWithError = true;
|
|
yield Reflect.apply(patch, HTTP, [object2]);
|
|
const value6 = undefined;
|
|
if (true) {
|
|
r4 = channel == null ? value5 : channel.getGuildId();
|
|
if (!(r4 == null || channel != null && channel.isThread())) {
|
|
env2_1(env2_2[19]).checkGuildTemplateDirty(r4);
|
|
}
|
|
}
|
|
return value6;
|
|
}
|
|
|
|
function* _fun39104() { // fn#39104, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:4791, offset: 0x010d82ad, size: 642 bytes, params: 1, frame: 29
|
|
var r19;
|
|
var type;
|
|
var icon;
|
|
var r14;
|
|
var r142;
|
|
var r13;
|
|
var retry_after;
|
|
var message;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var getChannel;
|
|
var value4;
|
|
var value5;
|
|
var object7;
|
|
var value6;
|
|
var track;
|
|
var CHANNEL_ICON_EDIT_PROGRESSED;
|
|
var object8;
|
|
var binding2;
|
|
var property;
|
|
var value7;
|
|
var HTTP;
|
|
var patch;
|
|
var object9;
|
|
var CHANNEL;
|
|
var value8;
|
|
var object10;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var binding3;
|
|
var binding4;
|
|
var value12;
|
|
var binding5;
|
|
var object11;
|
|
var value13;
|
|
var getGuildId;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var isThread;
|
|
var isThread2;
|
|
var binding6;
|
|
var binding7;
|
|
var value17;
|
|
var checkGuildTemplateDirty;
|
|
var error;
|
|
var value18;
|
|
var object12;
|
|
var body;
|
|
exceptionSkip67: while (true) {
|
|
exceptionLanding67: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = undefined;
|
|
value3 = environment.__proto__.__proto__;
|
|
binding = env2_7;
|
|
getChannel = binding.getChannel;
|
|
value4 = environment.__proto__;
|
|
value5 = Reflect.apply(getChannel, binding, [require]);
|
|
object7 = {channel_id: require};
|
|
type = value5 == null ? value : value5.type;
|
|
object7.channel_type = type;
|
|
icon = value5 == null ? value : value5.icon;
|
|
object7.old_icon_set = icon != null;
|
|
object7.new_icon_set = importDefault != null;
|
|
object7.location = dependencyMap;
|
|
binding = env2_1;
|
|
value6 = binding(env2_2[15]);
|
|
track = value6.track;
|
|
CHANNEL_ICON_EDIT_PROGRESSED = env2_9.CHANNEL_ICON_EDIT_PROGRESSED;
|
|
object8 = {};
|
|
copyDataProperties(object8, object7, r19);
|
|
object8['status'] = 'initiated';
|
|
Reflect.apply(track, value6, [CHANNEL_ICON_EDIT_PROGRESSED, object8]);
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
property = binding2[8];
|
|
} catch (error) {
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
HTTP = value7.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
patch = HTTP.patch;
|
|
} catch (error) {
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
object9 = {'url': null, 'body': null, 'oldFormErrors': true, 'rejectWithError': true,
|
|
'failImmediatelyWhenRateLimited': true};
|
|
} catch (error) {
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
binding = env2_11;
|
|
} catch (error) {
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
CHANNEL = binding.CHANNEL;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(CHANNEL, binding, [require]);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
object9.url = value8;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
object10 = {};
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
object10.icon = importDefault;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
object9.body = object10;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(patch, HTTP, [object9]);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
yield value9;
|
|
try {
|
|
value10 = undefined;
|
|
value11 = false;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
if (value11) {
|
|
return value10;
|
|
}
|
|
try {
|
|
binding3 = env2_1;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
property = binding4[15];
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
value12 = binding3(property);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
track = value12.track;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
binding5 = env2_9;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
CHANNEL_ICON_EDIT_PROGRESSED = binding5.CHANNEL_ICON_EDIT_PROGRESSED;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
object11 = {};
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
copyDataProperties(object11, object7, binding);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
object11['status'] = 'success';
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
Reflect.apply(track, value12, [CHANNEL_ICON_EDIT_PROGRESSED, object11]);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
value13 = value5 == null;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
if (value13) {
|
|
r14 = value;
|
|
} else {
|
|
try {
|
|
getGuildId = value5.getGuildId;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(getGuildId, value5, []);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
r14 = value14;
|
|
}
|
|
try {
|
|
value15 = r14 == null;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
if (value15) {
|
|
r13 = value15;
|
|
} else {
|
|
try {
|
|
value16 = value5 != null;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
if (!value16) {
|
|
r142 = value16;
|
|
continue;
|
|
}
|
|
try {
|
|
isThread = value5.isThread;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
isThread2 = Reflect.apply(isThread, value5, []);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
r142 = isThread2;
|
|
r13 = r142;
|
|
}
|
|
if (!r13) {
|
|
try {
|
|
binding6 = env2_1;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
binding7 = env2_2;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
property = binding7[19];
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
value17 = binding6(property);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
checkGuildTemplateDirty = value17.checkGuildTemplateDirty;
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
try {
|
|
Reflect.apply(checkGuildTemplateDirty, value17, [r14]);
|
|
} catch (error) {
|
|
r19 = binding;
|
|
break exceptionLanding67;
|
|
}
|
|
}
|
|
return value10;
|
|
break exceptionSkip67;
|
|
}
|
|
binding = env2_1;
|
|
value18 = binding(env2_2[15]);
|
|
track = value18.track;
|
|
CHANNEL_ICON_EDIT_PROGRESSED = env2_9.CHANNEL_ICON_EDIT_PROGRESSED;
|
|
object12 = {};
|
|
copyDataProperties(object12, object7, r19);
|
|
object12['status'] = 'failed';
|
|
if (error == null) {
|
|
object12['is_rate_limited'] = value != null;
|
|
if (error == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
object12['error_message'] = body.message;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
object12['is_rate_limited'] = value != null;
|
|
if (error == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
object12['error_message'] = body.message;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
retry_after = body.retry_after;
|
|
object12['is_rate_limited'] = retry_after != null;
|
|
if (error == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
message = body.message;
|
|
object12['error_message'] = message;
|
|
Reflect.apply(track, value18, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
break exceptionSkip67;
|
|
}
|
|
}
|
|
|
|
function* _fun39107() { // fn#39107, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:5603, offset: 0x010d8568, size: 692 bytes, params: 1, frame: 28
|
|
var r18;
|
|
var type;
|
|
var icon;
|
|
var r13;
|
|
var r132;
|
|
var r12;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var binding;
|
|
var getChannel;
|
|
var value6;
|
|
var icon2;
|
|
var object7;
|
|
var value7;
|
|
var track;
|
|
var CHANNEL_ICON_EDIT_PROGRESSED;
|
|
var object8;
|
|
var value8;
|
|
var binding2;
|
|
var property;
|
|
var value9;
|
|
var HTTP;
|
|
var patch;
|
|
var object9;
|
|
var object10;
|
|
var CHANNEL;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var getGuildId;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var isThread;
|
|
var isThread2;
|
|
var binding3;
|
|
var binding4;
|
|
var value18;
|
|
var checkGuildTemplateDirty;
|
|
var binding5;
|
|
var binding6;
|
|
var value19;
|
|
var binding7;
|
|
var object11;
|
|
var error;
|
|
var value20;
|
|
var object12;
|
|
var body;
|
|
exceptionSkip74: while (true) {
|
|
exceptionLanding74: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = undefined;
|
|
value3 = environment.__proto__;
|
|
value4 = 'icon' in importDefault;
|
|
value5 = environment.__proto__.__proto__;
|
|
binding = env2_7;
|
|
getChannel = binding.getChannel;
|
|
value6 = Reflect.apply(getChannel, binding, [require]);
|
|
icon2 = importDefault.icon;
|
|
object7 = {channel_id: require};
|
|
type = value6 == null ? value : value6.type;
|
|
object7.channel_type = type;
|
|
icon = value6 == null ? value : value6.icon;
|
|
object7.old_icon_set = icon != null;
|
|
object7.new_icon_set = icon2 != null;
|
|
object7.location = dependencyMap;
|
|
if (value4) {
|
|
binding = env2_1;
|
|
value7 = binding(env2_2[15]);
|
|
track = value7.track;
|
|
CHANNEL_ICON_EDIT_PROGRESSED = env2_9.CHANNEL_ICON_EDIT_PROGRESSED;
|
|
object8 = {};
|
|
copyDataProperties(object8, object7, r18);
|
|
value8 = 'initiated';
|
|
object8['status'] = value8;
|
|
Reflect.apply(track, value7, [CHANNEL_ICON_EDIT_PROGRESSED, object8]);
|
|
r18 = value8;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
property = binding2[8];
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
HTTP = value9.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
patch = HTTP.patch;
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object9 = {};
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object10 = {};
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object10.location = dependencyMap;
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object9.context = object10;
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
binding = env2_11;
|
|
} catch (error) {
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
CHANNEL = binding.CHANNEL;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(CHANNEL, binding, [require]);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object9.url = value10;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object9.body = importDefault;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object9.oldFormErrors = true;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object9.rejectWithError = true;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(patch, HTTP, [object9]);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
yield value11;
|
|
try {
|
|
value12 = undefined;
|
|
value13 = false;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
if (value13) {
|
|
return value12;
|
|
}
|
|
try {
|
|
value14 = value6 == null;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
if (value14) {
|
|
r13 = value;
|
|
} else {
|
|
try {
|
|
getGuildId = value6.getGuildId;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
value15 = Reflect.apply(getGuildId, value6, []);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
r13 = value15;
|
|
}
|
|
try {
|
|
value16 = r13 == null;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
if (value16) {
|
|
r12 = value16;
|
|
} else {
|
|
try {
|
|
value17 = value6 != null;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
if (!value17) {
|
|
r132 = value17;
|
|
continue;
|
|
}
|
|
try {
|
|
isThread = value6.isThread;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
isThread2 = Reflect.apply(isThread, value6, []);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
r132 = isThread2;
|
|
r12 = r132;
|
|
}
|
|
if (!r12) {
|
|
try {
|
|
binding3 = env2_1;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
property = binding4[19];
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
value18 = binding3(property);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
checkGuildTemplateDirty = value18.checkGuildTemplateDirty;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
Reflect.apply(checkGuildTemplateDirty, value18, [r13]);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
}
|
|
if (value4) {
|
|
try {
|
|
binding5 = env2_1;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
binding6 = env2_2;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
property = binding6[15];
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
value19 = binding5(property);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
track = value19.track;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
binding7 = env2_9;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
CHANNEL_ICON_EDIT_PROGRESSED = binding7.CHANNEL_ICON_EDIT_PROGRESSED;
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object11 = {};
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
copyDataProperties(object11, object7, binding);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
object11['status'] = 'success';
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
try {
|
|
Reflect.apply(track, value19, [CHANNEL_ICON_EDIT_PROGRESSED, object11]);
|
|
} catch (error) {
|
|
r18 = binding;
|
|
break exceptionLanding74;
|
|
}
|
|
}
|
|
return value12;
|
|
break exceptionSkip74;
|
|
}
|
|
if (value4) {
|
|
value20 = env2_1(env2_2[15]);
|
|
track = value20.track;
|
|
CHANNEL_ICON_EDIT_PROGRESSED = env2_9.CHANNEL_ICON_EDIT_PROGRESSED;
|
|
object12 = {};
|
|
copyDataProperties(object12, object7, r18);
|
|
object12['status'] = 'failed';
|
|
if (error == null) {
|
|
object12['is_rate_limited'] = value != null;
|
|
if (error == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
object12['error_message'] = body.message;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
object12['is_rate_limited'] = value != null;
|
|
if (error == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
object12['error_message'] = body.message;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
object12['is_rate_limited'] = body.retry_after != null;
|
|
if (error == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
object12['error_message'] = value;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
object12['error_message'] = body.message;
|
|
Reflect.apply(track, value20, [CHANNEL_ICON_EDIT_PROGRESSED, object12]);
|
|
throw error;
|
|
}
|
|
throw error;
|
|
break exceptionSkip74;
|
|
}
|
|
}
|
|
|
|
function _fun39111({body}) { // fn#39111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:6756, offset: 0x010d8929, size: 71 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__;
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'STORE_LISTING_FETCH_SUCCESS',
|
|
channelId: env0_0, storeListing: body});
|
|
}
|
|
|
|
function* _fun39114() { // fn#39114, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:6884, offset: 0x010d89b0, size: 221 bytes, params: 1, frame: 19
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const object3 = {};
|
|
value = environment.__proto__.__proto__;
|
|
const GUILD_TEXT = env2_15.GUILD_TEXT;
|
|
object3.type = GUILD_TEXT;
|
|
object3.name = importDefault;
|
|
object3.permission_overwrites = [];
|
|
if (dependencyMap != null) {
|
|
object3.parent_id = dependencyMap;
|
|
}
|
|
if (env1_3 != null) {
|
|
object3.topic = env1_3;
|
|
}
|
|
const HTTP = env2_0(env2_2[8]).HTTP;
|
|
const post = HTTP.post;
|
|
const object4 = {};
|
|
object4.url = env2_11.GUILD_CHANNELS(require);
|
|
object4.body = object3;
|
|
object4.oldFormErrors = true;
|
|
object4.rejectWithError = false;
|
|
yield Reflect.apply(post, HTTP, [object4]);
|
|
const value4 = undefined;
|
|
if (true) {
|
|
env2_1(env2_2[19]).checkGuildTemplateDirty(require);
|
|
}
|
|
return value4;
|
|
}
|
|
|
|
function* _fun39117() { // fn#39117, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:7169, offset: 0x010d8ab8, size: 105 bytes, params: 1, frame: 15
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_0;
|
|
const HTTP = binding(env2_2[8]).HTTP;
|
|
const get = HTTP.get;
|
|
binding = env2_11;
|
|
const CHANNEL = binding.CHANNEL;
|
|
value = environment.__proto__;
|
|
yield Reflect.apply(get, HTTP, [{url: Reflect.apply(CHANNEL, binding, [require]), rejectWithError: true}]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value.body;
|
|
}
|
|
|
|
function* _fun39120() { // fn#39120, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:7297, offset: 0x010d8b53, size: 113 bytes, params: 1, frame: 15
|
|
var fetchChannel;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var dispatch;
|
|
var object2;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
fetchChannel = importDefault.fetchChannel;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(fetchChannel, importDefault, [require]);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
if (!value3) {
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = binding(value);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[13];
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatch = value5.dispatch;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.type = 'CHANNEL_CREATE';
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.channel = value;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value5, [object2]);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function joinCallIfRequested(a0) { // fn#39065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:490, offset: 0x010d74a0, size: 99 bytes, params: 2, frame: 18
|
|
var value2;
|
|
var value3;
|
|
const value = environment.__proto__.__proto__;
|
|
if (importDefault) {
|
|
value2 = environment.__proto__.__proto__.__proto__;
|
|
value3 = env3_1(env3_2[7]);
|
|
value3.call(a0.id, dependencyMap, true, a0.isDM() ? a0.getRecipientId() : null);
|
|
}
|
|
}
|
|
|
|
function _fun39095(a0) { // fn#39095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4781:4244, offset: 0x010d8096, size: 36 bytes, params: 2, frame: 15
|
|
const binding = env1_0;
|
|
return binding.addRecipient(env0_0, a0, importDefault);
|
|
}
|
|
|