3112 lines
166 KiB
TypeScript
3112 lines
166 KiB
TypeScript
/* Metro module 8879; source: actions/InstantInviteActionCreators.tsx; dependencies: [5, 4255, 4117, 1383, 1226, 1379, 1935, 1945, 1867, 8880, 3784, 3969, 1878, 661, 1229, 1386, 4286, 4118, 4799, 1391, 8898, 5103, 1242, 1230, 4796, 1962, 8113, 8899, 4406, 8913, 8918, 5068, 6664, 8919, 8448, 9032, 694, 9439, 5072, 9440, 6593, 683, 507, 4132, 672, 5046, 480, 1392, 4098, 6595, 6598, 5075, 3825, 9442, 9461, 8452, 4222, 4140, 9462, 9463, 490, 9465, 2] */
|
|
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import AnalyticsUtils from '../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
|
|
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import AuthenticationStore from '../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
|
|
import RoutingSources from '../modules/routing/RoutingSources.tsx'; /* Metro dependency 1242 */
|
|
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import GuildStore from '../stores/GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import GuildChannelStore from '../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
|
|
import GuildMemberStore from '../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
|
|
import PermissionStore from '../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
|
|
import SelectedGuildStore from '../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
|
|
import GuildScheduledEventStore from '../modules/guild_scheduled_events/GuildScheduledEventStore.tsx'; /* Metro dependency 4117 */
|
|
import TrackedHTTPUtils from '../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
|
|
import InstantInviteStore from '../stores/InstantInviteStore.tsx'; /* Metro dependency 8880 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as AnalyticsUtilsModule from '../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
|
|
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
|
|
import * as AgeGateConstantsModule from '../modules/age_gate/AgeGateConstants.tsx'; /* Metro dependency 1229 */
|
|
import * as ChannelRecordModule from '../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
|
|
import * as ChannelConstantsModule from '../modules/channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
|
|
import * as FlagUtilsModule from '../external/discord_common/js/shared/utils/FlagUtils.tsx'; /* Metro dependency 1391 */
|
|
import * as InviteCodeUtilsModule from '../modules/instant_invite/InviteCodeUtils.tsx'; /* Metro dependency 4098 */
|
|
import * as GuildScheduledEventStoreModule from '../modules/guild_scheduled_events/GuildScheduledEventStore.tsx'; /* Metro dependency 4117 */
|
|
import * as ConstantsModule from '../modules/instant_invite/Constants.tsx'; /* Metro dependency 4118 */
|
|
import * as PlatformUtilsModule from '../external/discord_common/js/shared/lib/PlatformUtils.tsx'; /* Metro dependency 4140 */
|
|
import * as PostConnectionCallbackStoreModule from '../modules/gateway/PostConnectionCallbackStore.tsx'; /* Metro dependency 4255 */
|
|
import * as ConstantsModule2 from '../modules/go_live/Constants.tsx'; /* Metro dependency 4286 */
|
|
import * as StageChannelsConstantsModule from '../modules/stage_channels/StageChannelsConstants.tsx'; /* Metro dependency 4799 */
|
|
import * as ApplicationCommandTypesModule from '../modules/application_commands/ApplicationCommandTypes.tsx'; /* Metro dependency 5068 */
|
|
import * as GuildInviteFlagsModule from '../external/discord_common/js/shared/shared-constants/GuildInviteFlags.tsx'; /* Metro dependency 8898 */
|
|
|
|
function _fun69232(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6, offset: 0x01c6df42, size: 948 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const transitionToInviteChannelSync2 = transitionToInviteChannelSync;
|
|
const closure2 = function(a0, a1, a2) {
|
|
var value = a2;
|
|
var defaultImport = importDefault(dependencyMap[41]);
|
|
var track = defaultImport.track;
|
|
var INVITE_SERVER_CLICKED = AnalyticEvents.INVITE_SERVER_CLICKED;
|
|
var value3 = null;
|
|
Reflect.apply(track, defaultImport, [INVITE_SERVER_CLICKED, {guild_id: a0, action: a1,
|
|
location_stack: value3 != value ? value : value3}]);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ChannelRecordModule;
|
|
const env0_8 = value.isGuildTextChannelType;
|
|
const env0_9 = value.isGuildVocalChannelOrVocalThreadType;
|
|
const env0_10 = value.createChannelRecord;
|
|
const env0_11 = value.ChannelRecordBase;
|
|
const env0_12 = value.getAccessPermissions;
|
|
value = require(661) /* metro dependency 661: Constants */;
|
|
const env0_22 = value.Endpoints;
|
|
const env0_23 = value.ChannelTypes;
|
|
const env0_24 = value.Routes;
|
|
const env0_25 = value.ME;
|
|
const env0_26 = value.RPCCommands;
|
|
const env0_27 = value.GuildFeatures;
|
|
const env0_28 = value.AnalyticEvents;
|
|
const env0_29 = value.UserFlags;
|
|
const env0_30 = value.Permissions;
|
|
const env0_31 = value.AbortCodes;
|
|
object = {};
|
|
object.resolveInvite = resolveInvite;
|
|
object.getInviteContext = getInviteContext;
|
|
object.createInvite = createInvite;
|
|
object.mobileCreateInvite = mobileCreateInvite;
|
|
object.getAllFriendInvites = getAllFriendInvites;
|
|
object.createFriendInvite = createFriendInvite;
|
|
object.revokeFriendInvites = revokeFriendInvites;
|
|
object.revokeFriendInvite = function(a0) {
|
|
var HTTP = require(dependencyMap[42]).HTTP;
|
|
var object = {};
|
|
object.url = Endpoints.INVITE(a0);
|
|
object.rejectWithError = false;
|
|
return HTTP.del(object);
|
|
};
|
|
object.fetchFriendMembers = fetchFriendMembers;
|
|
object.clearInviteFromStore = clearInviteFromStore;
|
|
object.revokeInvite = revokeInvite;
|
|
object.acceptInvite = acceptInvite;
|
|
object.acceptInviteAndTransitionToInviteChannel = function({inviteKey, context, analyticsLocations, callback,
|
|
skipOnboarding, autoJoin}) {
|
|
return this.acceptInvite({inviteKey: inviteKey, context: context, skipOnboarding: skipOnboarding,
|
|
callback: _fun69286});
|
|
};
|
|
object.transitionToInvite = transitionToInvite;
|
|
object.transitionToInviteSync = transitionToInviteSync;
|
|
object.openNativeAppModal = function(a0) {
|
|
var object = {};
|
|
object.installationId = AuthenticationStore.getInstallationForTracking();
|
|
importDefault(dependencyMap[55]).openNativeAppModal(a0, RPCCommands.INVITE_BROWSER, object);
|
|
};
|
|
object.openApp = openApp;
|
|
object.setReceivedInstallationIdForInviteCode = setReceivedInstallationIdForInviteCode;
|
|
object.clearReceivedInstallationIdForInviteCode = clearReceivedInstallationIdForInviteCode;
|
|
object.transitionToInviteChannelSync = transitionToInviteChannelSync2;
|
|
object.trackInviteServerClicked = closure2;
|
|
(FileImportTrackerModule).fileFinishedImporting('actions/InstantInviteActionCreators.tsx');
|
|
exports.default = object;
|
|
exports.transitionToGuildFromEventInvite = function() {
|
|
return _transitionToGuildFromEventInvite.apply(this, arguments);
|
|
};
|
|
exports.trackInviteEmbedActioned = trackInviteEmbedActioned;
|
|
exports.trackInviteServerClicked = closure2;
|
|
function generateAcceptInviteOptions(a0) { // fn#69233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:749, offset: 0x01c6e2f6, size: 483 bytes, params: 2, frame: 24
|
|
const object = {};
|
|
const target_type = a0.target_type;
|
|
const STREAM = InviteTargetTypes.STREAM;
|
|
if (STREAM === target_type) {
|
|
object.targetType = a0.target_type;
|
|
object.targetUserId = a0.target_user?.id;
|
|
} else if (InviteTargetTypes.EMBEDDED_APPLICATION === target_type) {
|
|
object.targetType = a0.target_type;
|
|
object.targetApplicationId = a0.target_application?.id;
|
|
} else if (InviteTargetTypes.ROLE_SUBSCRIPTIONS_PURCHASE === target_type) {
|
|
object.targetType = a0.target_type;
|
|
}
|
|
const guildStoreBinding = GuildStore;
|
|
const getGuild = guildStoreBinding.getGuild;
|
|
const guild = a0.guild;
|
|
const value4 = undefined;
|
|
const value5 = Reflect.apply(getGuild, guildStoreBinding, [guild == null ? value4 : guild.id]) != null;
|
|
const r1 = value5 ? a0.new_member : !value5;
|
|
if (r1 && a0.channel != null && isGuildTextChannelType(a0.channel.type)) {
|
|
object.welcomeModalChannelId = a0.channel.id;
|
|
}
|
|
if (a0.guild_scheduled_event != null) {
|
|
object.guildScheduledEvent = a0.guild_scheduled_event;
|
|
}
|
|
let hasFlag = FlagUtilsModule.hasFlag;
|
|
const flags = a0.flags;
|
|
const value8 = 0;
|
|
const r12 = flags ?? value8;
|
|
const GuildInviteFlags = (GuildInviteFlagsModule).GuildInviteFlags;
|
|
const IS_GUEST_INVITE = GuildInviteFlags.IS_GUEST_INVITE;
|
|
object.isGuestInvite = Reflect.apply(hasFlag, FlagUtilsModule, [r12, IS_GUEST_INVITE]);
|
|
hasFlag = FlagUtilsModule.hasFlag;
|
|
const r8 = a0.flags ?? value8;
|
|
const IS_APPLICATION_BYPASS = GuildInviteFlags.IS_APPLICATION_BYPASS;
|
|
object.isApplicationBypassInvite = Reflect.apply(hasFlag, FlagUtilsModule, [r8, IS_APPLICATION_BYPASS]);
|
|
const inviter = a0.inviter;
|
|
object.inviterUserId = inviter == null ? value4 : inviter.id;
|
|
if (!r1) {
|
|
object.forceTransition = true;
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function transitionToInviteChannel({guildId, channel, options, analyticsLocations}) { // fn#69234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:1643, offset: 0x01c6e4d9, size: 811 bytes, params: 2, frame: 27
|
|
var id;
|
|
var r11;
|
|
var selectedGuildStoreBinding;
|
|
var type;
|
|
var channelStoreBinding;
|
|
var getChannel;
|
|
var value5;
|
|
var moduleValue;
|
|
var value6;
|
|
var accessPermissions;
|
|
var permissionStoreBinding;
|
|
var guildChannelStoreBinding;
|
|
var value9;
|
|
var moduleValue3;
|
|
const CommandOrigin = (ApplicationCommandTypesModule).CommandOrigin;
|
|
const r8 = analyticsLocations !== undefined ? analyticsLocations : [];
|
|
var env0_9;
|
|
const guild = GuildStore.getGuild(guildId);
|
|
const r2 = guild == null ? undefined : guild.features.has(GuildFeatures.MEMBER_VERIFICATION_MANUAL_APPROVAL);
|
|
let r7 = options ?? ({});
|
|
const env0_4 = r7.targetUserId;
|
|
const targetType2 = r7.targetType;
|
|
const targetApplicationId = r7.targetApplicationId;
|
|
if (r7.isGuestInvite) {
|
|
type = channel.type;
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value5 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
if (options?.targetType != null) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else if (isGuildVocalChannelOrVocalThreadType(channel.type)) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else {
|
|
moduleValue = require(5103) /* metro dependency 5103: OnboardingHomeUtils */;
|
|
if (moduleValue.canSeeOnboardingHome(guildId)) {
|
|
r11 = StaticChannelRoute.GUILD_HOME;
|
|
} else {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
}
|
|
}
|
|
env0_9 = type === ChannelTypes.GUILD_STAGE_VOICE;
|
|
value9 = Routes.CHANNEL(guildId, r11);
|
|
id = channel.id;
|
|
if (r11 !== id) {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent, inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
} else if (isGuildVocalChannelOrVocalThreadType(type)) {
|
|
if (options?.autoJoin !== false) {
|
|
addPostConnectionCallback(_fun69235);
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent, inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
getTransition(channel, options)(value9);
|
|
} else if (r7.isApplicationBypassInvite) {
|
|
type = channel.type;
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value5 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
if (options?.targetType != null) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else if (isGuildVocalChannelOrVocalThreadType(channel.type)) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else {
|
|
moduleValue = require(5103) /* metro dependency 5103: OnboardingHomeUtils */;
|
|
if (moduleValue.canSeeOnboardingHome(guildId)) {
|
|
r11 = StaticChannelRoute.GUILD_HOME;
|
|
} else {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
}
|
|
}
|
|
env0_9 = type === ChannelTypes.GUILD_STAGE_VOICE;
|
|
value9 = Routes.CHANNEL(guildId, r11);
|
|
id = channel.id;
|
|
if (r11 !== id) {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent, inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
} else if (isGuildVocalChannelOrVocalThreadType(type)) {
|
|
if (options?.autoJoin !== false) {
|
|
addPostConnectionCallback(_fun69235);
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent, inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
getTransition(channel, options)(value9);
|
|
} else if (options == null) {
|
|
if (r2) {
|
|
selectedGuildStoreBinding = SelectedGuildStore;
|
|
if (selectedGuildStoreBinding.getGuildId() === guildId) {
|
|
type = channel.type;
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value5 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
if (options?.targetType != null) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else if (isGuildVocalChannelOrVocalThreadType(channel.type)) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else {
|
|
moduleValue = require(5103) /* metro dependency 5103: OnboardingHomeUtils */;
|
|
if (moduleValue.canSeeOnboardingHome(guildId)) {
|
|
r11 = StaticChannelRoute.GUILD_HOME;
|
|
} else {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
}
|
|
}
|
|
env0_9 = type === ChannelTypes.GUILD_STAGE_VOICE;
|
|
value9 = Routes.CHANNEL(guildId, r11);
|
|
id = channel.id;
|
|
if (r11 !== id) {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
} else if (isGuildVocalChannelOrVocalThreadType(type)) {
|
|
if (options?.autoJoin !== false) {
|
|
addPostConnectionCallback(_fun69235);
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
getTransition(channel, options)(value9);
|
|
}
|
|
} else {
|
|
type = channel.type;
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value5 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
if (options?.targetType != null) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else if (isGuildVocalChannelOrVocalThreadType(channel.type)) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else {
|
|
moduleValue = require(5103) /* metro dependency 5103: OnboardingHomeUtils */;
|
|
if (moduleValue.canSeeOnboardingHome(guildId)) {
|
|
r11 = StaticChannelRoute.GUILD_HOME;
|
|
} else {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
}
|
|
}
|
|
env0_9 = type === ChannelTypes.GUILD_STAGE_VOICE;
|
|
value9 = Routes.CHANNEL(guildId, r11);
|
|
id = channel.id;
|
|
if (r11 !== id) {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
} else if (isGuildVocalChannelOrVocalThreadType(type)) {
|
|
if (options?.autoJoin !== false) {
|
|
addPostConnectionCallback(_fun69235);
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
getTransition(channel, options)(value9);
|
|
}
|
|
} else if (options.forceTransition) {
|
|
type = channel.type;
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value5 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
if (options?.targetType != null) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else if (isGuildVocalChannelOrVocalThreadType(channel.type)) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else {
|
|
moduleValue = require(5103) /* metro dependency 5103: OnboardingHomeUtils */;
|
|
if (moduleValue.canSeeOnboardingHome(guildId)) {
|
|
r11 = StaticChannelRoute.GUILD_HOME;
|
|
} else {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
}
|
|
}
|
|
env0_9 = type === ChannelTypes.GUILD_STAGE_VOICE;
|
|
value9 = Routes.CHANNEL(guildId, r11);
|
|
id = channel.id;
|
|
if (r11 !== id) {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent, inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
} else if (isGuildVocalChannelOrVocalThreadType(type)) {
|
|
if (options?.autoJoin !== false) {
|
|
addPostConnectionCallback(_fun69235);
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent, inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
getTransition(channel, options)(value9);
|
|
} else if (r2) {
|
|
selectedGuildStoreBinding = SelectedGuildStore;
|
|
if (selectedGuildStoreBinding.getGuildId() === guildId) {
|
|
type = channel.type;
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value5 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
if (options?.targetType != null) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else if (isGuildVocalChannelOrVocalThreadType(channel.type)) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else {
|
|
moduleValue = require(5103) /* metro dependency 5103: OnboardingHomeUtils */;
|
|
if (moduleValue.canSeeOnboardingHome(guildId)) {
|
|
r11 = StaticChannelRoute.GUILD_HOME;
|
|
} else {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
}
|
|
}
|
|
env0_9 = type === ChannelTypes.GUILD_STAGE_VOICE;
|
|
value9 = Routes.CHANNEL(guildId, r11);
|
|
id = channel.id;
|
|
if (r11 !== id) {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
} else if (isGuildVocalChannelOrVocalThreadType(type)) {
|
|
if (options?.autoJoin !== false) {
|
|
addPostConnectionCallback(_fun69235);
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
getTransition(channel, options)(value9);
|
|
}
|
|
} else {
|
|
type = channel.type;
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value5 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
if (options?.targetType != null) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else if (isGuildVocalChannelOrVocalThreadType(channel.type)) {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
} else {
|
|
moduleValue = require(5103) /* metro dependency 5103: OnboardingHomeUtils */;
|
|
if (moduleValue.canSeeOnboardingHome(guildId)) {
|
|
r11 = StaticChannelRoute.GUILD_HOME;
|
|
} else {
|
|
channelStoreBinding = ChannelStore;
|
|
getChannel = channelStoreBinding.getChannel;
|
|
id = channel.id;
|
|
value6 = Reflect.apply(getChannel, channelStoreBinding, [id]);
|
|
accessPermissions = getAccessPermissions(channel.type);
|
|
permissionStoreBinding = PermissionStore;
|
|
if (permissionStoreBinding.can(accessPermissions, value6)) {
|
|
id = channel.id;
|
|
} else {
|
|
guildChannelStoreBinding = GuildChannelStore;
|
|
id = guildChannelStoreBinding.getDefaultChannel(guildId, true,
|
|
Permissions.CREATE_INSTANT_INVITE)?.id;
|
|
id = id ?? channel.id;
|
|
}
|
|
r11 = id;
|
|
}
|
|
}
|
|
env0_9 = type === ChannelTypes.GUILD_STAGE_VOICE;
|
|
value9 = Routes.CHANNEL(guildId, r11);
|
|
id = channel.id;
|
|
if (r11 !== id) {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent, inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
} else if (isGuildVocalChannelOrVocalThreadType(type)) {
|
|
if (options?.autoJoin !== false) {
|
|
addPostConnectionCallback(_fun69235);
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent,
|
|
inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
} else {
|
|
r7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).isActivityInTextSupportedForChannel(value5) && targetType2 === InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r7 = r7 && targetApplicationId != null;
|
|
if (r7) {
|
|
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue3.transitionTo(Routes.CHANNEL(guildId ?? ME, r11));
|
|
(importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */)({channelId: r11,
|
|
applicationId: targetApplicationId, intent: options?.intent, inviterUserId: options?.inviterUserId,
|
|
analyticsLocations: r8, commandOrigin: CommandOrigin.CHAT});
|
|
}
|
|
}
|
|
getTransition(channel, options)(value9);
|
|
}
|
|
function _fun69235() { // fn#69235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:2447, offset: 0x01c6e804, size: 64 bytes, params: 1, frame: 13
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
value = require(dependencyMap[25]);
|
|
value = value(dependencyMap[24], dependencyMap.paths);
|
|
value.then(_fun69236);
|
|
function _fun69236({default: env0_0}) { // fn#69236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:2482, offset: 0x01c6e844, size: 151 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var value2;
|
|
var moduleValue;
|
|
var shouldShowMembershipVerificationGate;
|
|
var guildIdBinding;
|
|
var items2;
|
|
var moduleValue2;
|
|
const connect_692372 = connect_69237;
|
|
if (isGuestInvite) {
|
|
connect_692372();
|
|
} else {
|
|
value2 = environment.__proto__.__proto__;
|
|
moduleValue = require(6664) /* metro dependency 6664: useShowMemberVerificationGate */;
|
|
shouldShowMembershipVerificationGate = moduleValue.shouldShowMembershipVerificationGate;
|
|
guildIdBinding = guildId;
|
|
items2 = [GuildStore];
|
|
items2[1] = UserStore;
|
|
items2[2] = GuildMemberStore;
|
|
if (Reflect.apply(shouldShowMembershipVerificationGate, moduleValue, [guildIdBinding, items2])) {
|
|
moduleValue2 = require(8919) /* metro dependency 8919: MemberVerificationModalActionCreators */;
|
|
moduleValue2.openMemberVerificationModal(guildId, connect_692372);
|
|
} else {
|
|
connect_692372();
|
|
}
|
|
}
|
|
function connect_69237() { // fn#69237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:2510, offset: 0x01c6e8db, size: 602 bytes, params: 1, frame: 19
|
|
var r1;
|
|
var value3;
|
|
var defaultImport;
|
|
var object;
|
|
var value10;
|
|
var moduleValue2;
|
|
var defaultImport2;
|
|
var value11;
|
|
var moduleValue3;
|
|
if (env2_9) {
|
|
value11 = environment.__proto__.__proto__.__proto__;
|
|
moduleValue3 = require(8113) /* metro dependency 8113: StageChannelModalActionCreators */;
|
|
moduleValue3.connectAndOpen(channel instanceof ChannelRecordBase ? channel : createChannelRecord(channel));
|
|
(require(1230) /* metro dependency 1230: router_utils */).transitionTo(env2_10);
|
|
} else {
|
|
r1 = options != null && options.muteOnJoinVoiceChannel;
|
|
if (r1) {
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
defaultImport = importDefault(8899) /* metro dependency 8899: AudioActionCreators */;
|
|
defaultImport.setSelfMute((require(4406) /* metro dependency 4406: mediaEngine */).MediaEngineContextTypes.DEFAULT,
|
|
|
|
|
|
true);
|
|
}
|
|
env0_0.selectVoiceChannel(env2_8);
|
|
var targetTypeBinding = targetType;
|
|
var STREAM = InviteTargetTypes.STREAM;
|
|
r1 = targetTypeBinding === STREAM && targetUserId != null;
|
|
if (r1) {
|
|
(importAll(8913) /* metro dependency 8913: StreamActionCreators */).watchStreamAndTransitionToStream({streamType: StreamTypes.GUILD,
|
|
|
|
|
|
ownerId: targetUserId, guildId: guildId, channelId: env2_8});
|
|
}
|
|
targetTypeBinding = targetType;
|
|
var EMBEDDED_APPLICATION = InviteTargetTypes.EMBEDDED_APPLICATION;
|
|
r1 = targetTypeBinding === EMBEDDED_APPLICATION && targetApplicationId != null;
|
|
if (r1) {
|
|
value10 = undefined;
|
|
moduleValue2 = require(1230) /* metro dependency 1230: router_utils */;
|
|
moduleValue2.transitionTo(Routes.CHANNEL(guildId ?? ME, env2_8));
|
|
defaultImport2 = importDefault(8918) /* metro dependency 8918: deferJoinActivityInChannel */;
|
|
object = {channelId: env2_8};
|
|
object.applicationId = targetApplicationId;
|
|
object.intent = options == null ? value10 : options.intent;
|
|
object.inviterUserId = options == null ? value10 : options.inviterUserId;
|
|
object.analyticsLocations = env2_3;
|
|
object.commandOrigin = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).CommandOrigin.CHAT;
|
|
defaultImport2(object);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getTransition({type}, a1) { // fn#69238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:3555, owner: transitionToInviteChannel.getTransition, offset: 0x01c6eb35, size: 158 bytes, params: 3, frame: 19
|
|
var environment;
|
|
const r1 = a1 ?? ({});
|
|
const env0_0 = r1.transitionTo;
|
|
const welcomeModalChannelId = r1.welcomeModalChannelId;
|
|
const guildScheduledEvent = r1.guildScheduledEvent;
|
|
value = environment.__proto__;
|
|
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
|
const object = {};
|
|
const INVITE_ACCEPT = (RoutingSources).INVITE_ACCEPT;
|
|
object.source = INVITE_ACCEPT;
|
|
object.navigationReplace = true;
|
|
if (welcomeModalChannelId != null) {
|
|
object.welcomeModalChannelId = welcomeModalChannelId;
|
|
}
|
|
if (type === GUILD_STAGE_VOICE) {
|
|
object.state = {stageInviteKey: STAGE_INVITE_STATE_KEY};
|
|
}
|
|
if (guildScheduledEvent != null) {
|
|
object.guildScheduledEventId = guildScheduledEvent.id;
|
|
}
|
|
return _fun69239;
|
|
function _fun69239(a0) { // fn#69239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:3875, offset: 0x01c6ebd3, size: 77 bytes, params: 2, frame: 14
|
|
return transitionTo != null ? transitionTo(a0,
|
|
env0_1) : (require(1230) /* metro dependency 1230: router_utils */).transitionTo(a0, env0_1);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function transitionToInviteChannelSync(a0, a1) { // fn#69240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:3930, offset: 0x01c6ec20, size: 60 bytes, params: 3, frame: 12
|
|
const value = a2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = value !== undefined ? value : [];
|
|
ChannelStore.addConditionalChangeListener(_fun69241);
|
|
function _fun69241() { // fn#69241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:4011, offset: 0x01c6ec5c, size: 304 bytes, params: 1, frame: 18
|
|
var environment;
|
|
var r1;
|
|
const value = environment.__proto__;
|
|
const channel = ChannelStore.getChannel(env0_0);
|
|
const currentUser = UserStore.getCurrentUser();
|
|
let r0 = channel == null || currentUser == null;
|
|
if (!r0) {
|
|
r1 = channel.nsfw && !currentUser.nsfwAllowed;
|
|
r1 = !r1 ? channel.isGuildVocalOrThread() && (require(5072) /* metro dependency 5072: AgeGateUtils */).maybeOpenAgeGateForVoiceChannel(env0_0) : r1;
|
|
r1 = !r1 ? channel.isGuildVocalOrThread() && (require(9440) /* metro dependency 9440: maybeOpenSpoilerGateForVoiceChannelNative */).maybeOpenSpoilerGateForVoiceChannel(env0_0) : r1;
|
|
if (r1) {
|
|
r1 = !r1;
|
|
} else if (require?.guildScheduledEvent != null) {
|
|
transitionToInviteEvent(require);
|
|
r1 = false;
|
|
} else {
|
|
transitionToInviteChannel({guildId: channel.getGuildId() ?? ME, channel: channel, options: require,
|
|
analyticsLocations: env0_2});
|
|
r1 = false;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
function transitionToInviteEvent({guildScheduledEvent, welcomeModalChannelId}) { // fn#69242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:4306, offset: 0x01c6ed8c, size: 56 bytes, params: 2, frame: 12
|
|
var environment;
|
|
var value;
|
|
if (guildScheduledEvent != null) {
|
|
value = environment.__proto__.__proto__;
|
|
addPostConnectionCallback(function() {
|
|
var object = {};
|
|
object.guildScheduledEventId = guildScheduledEvent.id;
|
|
if (welcomeModalChannelId != null) {
|
|
object.welcomeModalChannelId = welcomeModalChannelId;
|
|
}
|
|
require(dependencyMap[35]).transitionToEventDetailsFromInvite(guildScheduledEvent, object);
|
|
});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _transitionToGuildFromEventInvite() { // fn#69244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:4661, offset: 0x01c6ee16, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun69246).apply(this, arguments);
|
|
function* _fun69246(a0) { // fn#69246, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:4750, offset: 0x01c6ee53, size: 102 bytes, params: 2, frame: 16
|
|
if (true) {
|
|
var guild_id = a0.guild_id;
|
|
var channel_id = a0.channel_id;
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_7(a0)) {
|
|
if (channel_id != null) {
|
|
env2_40(channel_id);
|
|
return undefined;
|
|
}
|
|
value = env2_1(env2_3[40]);
|
|
yield value.transitionToGuildSync(guild_id);
|
|
value = undefined;
|
|
return undefined;
|
|
}
|
|
value = env2_1(env2_3[40]);
|
|
yield value.transitionToGuildSync(guild_id);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function resolveInvite(a0, a1, a2) { // fn#69248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:5062, offset: 0x01c6ef0d, size: 176 bytes, params: 4, frame: 21
|
|
var r0;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
var value;
|
|
const defaultImport = Dispatcher;
|
|
if (defaultImport.isDispatching()) {
|
|
value = global.Promise.resolve();
|
|
value = value.then(_fun69249);
|
|
r0 = value;
|
|
} else {
|
|
value = defaultImport;
|
|
value.dispatch({type: 'INVITE_RESOLVE', code: a0});
|
|
value = (importDefault(9439) /* metro dependency 9439: resolveInvite */)(a0, a1, a2);
|
|
value = value.then(_fun69250);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function _fun69249() { // fn#69249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:5148, offset: 0x01c6efbd, size: 33 bytes, params: 1, frame: 15
|
|
return resolveInvite(env0_0, require, importDefault);
|
|
}
|
|
|
|
function _fun69250({invite, code, banned}) { // fn#69250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:5248, offset: 0x01c6efde, size: 151 bytes, params: 2, frame: 15
|
|
var value;
|
|
if (invite != null) {
|
|
value = environment.__proto__;
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.dispatch({type: 'INVITE_RESOLVE_SUCCESS', invite: invite, code: code});
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.dispatch({type: 'INVITE_RESOLVE_FAILURE', code: code, banned: banned});
|
|
}
|
|
return {invite: invite, code: code};
|
|
}
|
|
|
|
}
|
|
|
|
function createInvite(a0) { // fn#69252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:5713, offset: 0x01c6f0fd, size: 56 bytes, params: 2, frame: 12
|
|
const value = a1;
|
|
const env0_0 = a0;
|
|
const env0_1 = value !== undefined ? value : {};
|
|
const env0_2 = a2;
|
|
return Module00005(_fun69254)();
|
|
function* _fun69254() { // fn#69254, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:5728, offset: 0x01c6f140, size: 334 bytes, params: 1, frame: 20
|
|
var length;
|
|
var object;
|
|
var role_ids;
|
|
var value4;
|
|
var value5;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value7;
|
|
var HTTP;
|
|
var post;
|
|
var object2;
|
|
var INSTANT_INVITES;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var body;
|
|
var binding3;
|
|
var value12;
|
|
var dispatch;
|
|
var error;
|
|
var value13;
|
|
var binding4;
|
|
var value14;
|
|
var value15;
|
|
var prototype;
|
|
var value16;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
copyDataProperties(object, importDefault, undefined);
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
role_ids = object.role_ids;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
value4 = role_ids == null;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
if (value4) {
|
|
length = value;
|
|
} else {
|
|
try {
|
|
length = role_ids.length;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value5 = length !== 0;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
if (!value5) {
|
|
try {
|
|
delete object.role_ids;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding2[42];
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
HTTP = value7.HTTP;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding = env2_22;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
INSTANT_INVITES = binding.INSTANT_INVITES;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(INSTANT_INVITES, binding, [require]);
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.url = value8;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.body = object;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.location = importAll;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.context = object;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.rejectWithError = true;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(post, HTTP, [object2]);
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
yield value9;
|
|
try {
|
|
value10 = undefined;
|
|
value11 = false;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
if (value11) {
|
|
return value10;
|
|
}
|
|
try {
|
|
body = value10.body;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding3[36];
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
value12 = binding(property);
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
dispatch = value12.dispatch;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.type = 'INSTANT_INVITE_CREATE_SUCCESS';
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.channelId = require;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.invite = body;
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value12, [object]);
|
|
} catch (error) {
|
|
value13 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
binding4 = env2_3;
|
|
value14 = binding(binding4[36]);
|
|
dispatch = value14.dispatch;
|
|
value15 = environment.__proto__;
|
|
Reflect.apply(dispatch, value14, [{type: 'INSTANT_INVITE_CREATE_FAILURE', channelId: require}]);
|
|
value = binding(binding4[43]);
|
|
prototype = value.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value16;
|
|
throw value;
|
|
}
|
|
return body;
|
|
}
|
|
|
|
}
|
|
|
|
function mobileCreateInvite(a0, a1) { // fn#69255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6130, offset: 0x01c6f28e, size: 50 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return Module00005(_fun69257)();
|
|
function* _fun69257() { // fn#69257, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6175, offset: 0x01c6f2cb, size: 191 bytes, params: 1, frame: 18
|
|
var environment;
|
|
var object;
|
|
var value5;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_18;
|
|
const invite = binding.getInvite(require.id);
|
|
if (invite == null) {
|
|
object = {};
|
|
binding = env2_1;
|
|
value = undefined;
|
|
object.max_age = binding(env2_3[44]).Seconds.DAY;
|
|
yield importAll.createInvite(require.id, object, importDefault).catch(_fun69258);
|
|
value5 = undefined;
|
|
if (false) {
|
|
return value5;
|
|
}
|
|
return value5 == null ? value : value5.code;
|
|
}
|
|
if (invite.isExpired()) {
|
|
object = {};
|
|
binding = env2_1;
|
|
value = undefined;
|
|
object.max_age = binding(env2_3[44]).Seconds.DAY;
|
|
yield importAll.createInvite(require.id, object, importDefault).catch(_fun69258);
|
|
value5 = undefined;
|
|
if (false) {
|
|
return value5;
|
|
}
|
|
return value5 == null ? value : value5.code;
|
|
}
|
|
return invite.code;
|
|
function _fun69258() { // fn#69258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6329, offset: 0x01c6f38a, size: 49 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_3[36]).dispatch({type: 'NATIVE_APP_INSTANT_INVITE_GDM_SHARE_FAILED'});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getAllFriendInvites(a0) { // fn#69259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6461, offset: 0x01c6f3bb, size: 36 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return Module00005(_fun69261)();
|
|
function* _fun69261() { // fn#69261, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6467, offset: 0x01c6f3ea, size: 431 bytes, params: 1, frame: 20
|
|
var environment;
|
|
var r2;
|
|
var reject;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
let Promise = global.Promise;
|
|
let promise = new Promise(_fun69262);
|
|
yield promise;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
promise = environment.__proto__.__proto__;
|
|
let binding = env2_18;
|
|
const getFriendInvitesFetching = binding.getFriendInvitesFetching;
|
|
if (Reflect.apply(getFriendInvitesFetching, binding, [])) {
|
|
if (env2_37 != null) {
|
|
r2 = env2_37.then(function(a0) {
|
|
return a0.body;
|
|
});
|
|
} else {
|
|
Promise = global.Promise;
|
|
reject = Promise.reject;
|
|
error = new global.Error('Invalid friend invite fetch request');
|
|
error = Reflect.apply(reject, Promise, [error]);
|
|
r2 = error;
|
|
}
|
|
return r2;
|
|
}
|
|
binding = env2_0;
|
|
const binding2 = env2_3;
|
|
const HTTP = binding(binding2[42]).HTTP;
|
|
const get = HTTP.get;
|
|
const FRIEND_INVITES = env2_22.FRIEND_INVITES;
|
|
env2_37 = Reflect.apply(get, HTTP, [{url: FRIEND_INVITES, context: {location: require}, rejectWithError: false}]);
|
|
const value5 = env2_1(binding2[36]);
|
|
let dispatch = value5.dispatch;
|
|
let Date = global.Date;
|
|
const value6 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
let date = new Date();
|
|
Reflect.apply(dispatch, value5, [{type: 'FRIEND_INVITES_FETCH_REQUEST',
|
|
requestedAt: date instanceof Object ? date : value6}]);
|
|
yield env2_37;
|
|
const value8 = undefined;
|
|
if (false) {
|
|
return value8;
|
|
}
|
|
const body = value8.body;
|
|
promise = env2_1(env2_3[36]);
|
|
dispatch = promise.dispatch;
|
|
Date = global.Date;
|
|
const value10 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
Reflect.apply(dispatch, promise, [{type: 'FRIEND_INVITES_FETCH_RESPONSE',
|
|
receivedAt: date instanceof Object ? date : value10, invites: body}]);
|
|
return body;
|
|
function _fun69262(a0) { // fn#69262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6501, offset: 0x01c6f599, size: 54 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_3[36]).wait(_fun69263);
|
|
function _fun69263() { // fn#69263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6519, offset: 0x01c6f5cf, size: 18 bytes, params: 1, frame: 11
|
|
return env0_0(null);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createFriendInvite(a0, a1) { // fn#69265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:6975, offset: 0x01c6f5e1, size: 158 bytes, params: 3, frame: 18
|
|
const value = a0;
|
|
(Dispatcher).dispatch({type: 'FRIEND_INVITE_CREATE_REQUEST'});
|
|
const HTTP = (HTTPUtilsModule).HTTP;
|
|
const post = HTTP.post;
|
|
const FRIEND_INVITES = Endpoints.FRIEND_INVITES;
|
|
return Reflect.apply(post, HTTP, [{url: FRIEND_INVITES, body: value ?? ({}), context: {location: a1},
|
|
rejectWithError: false}]).then(_fun69266, _fun69267);
|
|
function _fun69266({body}) { // fn#69266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:7147, offset: 0x01c6f67f, size: 60 bytes, params: 2, frame: 13
|
|
let value = environment.__proto__;
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.dispatch({type: 'FRIEND_INVITE_CREATE_SUCCESS', invite: body});
|
|
return body;
|
|
}
|
|
|
|
function _fun69267(a0) { // fn#69267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:7231, offset: 0x01c6f6bb, size: 56 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__;
|
|
(Dispatcher).dispatch({type: 'FRIEND_INVITE_CREATE_FAILURE',
|
|
error: a0});
|
|
throw a0;
|
|
}
|
|
|
|
}
|
|
|
|
function revokeFriendInvites() { // fn#69268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:7332, offset: 0x01c6f6f3, size: 140 bytes, params: 1, frame: 15
|
|
(Dispatcher).dispatch({type: 'FRIEND_INVITE_REVOKE_REQUEST'});
|
|
const HTTP = (HTTPUtilsModule).HTTP;
|
|
const del = HTTP.del;
|
|
const FRIEND_INVITES = Endpoints.FRIEND_INVITES;
|
|
return Reflect.apply(del, HTTP, [{url: FRIEND_INVITES, context: {location: global.location},
|
|
rejectWithError: false}]).then(_fun69269);
|
|
function _fun69269({body}) { // fn#69269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:7489, offset: 0x01c6f77f, size: 60 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__;
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.dispatch({type: 'FRIEND_INVITE_REVOKE_SUCCESS', invites: body});
|
|
}
|
|
|
|
}
|
|
|
|
function fetchFriendMembers(a0) { // fn#69271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:7670, offset: 0x01c6f804, size: 36 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return Module00005(_fun69273)();
|
|
function* _fun69273() { // fn#69273, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:7676, offset: 0x01c6f833, size: 282 bytes, params: 1, frame: 19
|
|
var environment;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var get;
|
|
var object;
|
|
var INVITE_FRIEND_MEMBERS;
|
|
var value5;
|
|
var object2;
|
|
var value6;
|
|
var NetworkActionNames;
|
|
var INVITE_FRIEND_MEMBERS_FETCH;
|
|
var properties_692742;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var body;
|
|
var binding3;
|
|
var value10;
|
|
var dispatch;
|
|
var friend_member_ids;
|
|
var error;
|
|
var value11;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[45];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
get = value3.get;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_22;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
INVITE_FRIEND_MEMBERS = binding.INVITE_FRIEND_MEMBERS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(INVITE_FRIEND_MEMBERS, binding, [require]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.url = value5;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[46];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value6 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
NetworkActionNames = value6.NetworkActionNames;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
INVITE_FRIEND_MEMBERS_FETCH = NetworkActionNames.INVITE_FRIEND_MEMBERS_FETCH;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.event = INVITE_FRIEND_MEMBERS_FETCH;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
properties_692742 = properties_69274;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.properties = properties_692742;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.trackedActionData = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(get, value3, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
body = value8.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[36];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.type = 'INVITE_FRIEND_MEMBERS_FETCH_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.code = require;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
friend_member_ids = body.friend_member_ids;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.friendMemberIds = friend_member_ids;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value10, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_3[36]);
|
|
dispatch = value.dispatch;
|
|
value11 = environment.__proto__;
|
|
Reflect.apply(dispatch, value, [{type: 'INVITE_FRIEND_MEMBERS_FETCH_FAILURE', code: require}]);
|
|
}
|
|
}
|
|
function properties_69274(a0) { // fn#69274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:7842, offset: 0x01c6f94d, size: 118 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
const binding = env3_0;
|
|
value = undefined;
|
|
const value2 = binding(env3_3[47]);
|
|
return value2.exact({code: require,
|
|
friend_count: (a0 == null || a0.body == null || a0.body.friend_member_ids == null ? value : a0.body.friend_member_ids.length) ?? 0});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function clearInviteFromStore(a0) { // fn#69275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:8208, offset: 0x01c6f9c3, size: 56 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'INSTANT_INVITE_CLEAR', channelId: a0});
|
|
}
|
|
|
|
function revokeInvite({code, channel, uses, maxUses, maxAge, type}) { // fn#69276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:8294, offset: 0x01c6f9fb, size: 201 bytes, params: 2, frame: 19
|
|
const defaultImport = TrackedHTTPUtils;
|
|
const object = {};
|
|
object.url = Endpoints.INVITE(code);
|
|
object.oldFormErrors = true;
|
|
const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
|
|
const INVITE_REVOKE = NetworkActionNames.INVITE_REVOKE;
|
|
object.trackedActionData = {event: INVITE_REVOKE, properties: {uses: uses, max_uses: maxUses, max_age: maxAge,
|
|
invite_type: type}};
|
|
object.rejectWithError = false;
|
|
return defaultImport.delete(object).then(_fun69277);
|
|
function _fun69277() { // fn#69277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:8567, offset: 0x01c6fac4, size: 71 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
(Dispatcher).dispatch({type: 'INSTANT_INVITE_REVOKE_SUCCESS',
|
|
code: code, channelId: channel.id});
|
|
}
|
|
|
|
}
|
|
|
|
function acceptInvite({inviteKey, context, callback, skipOnboarding}) { // fn#69278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:8656, offset: 0x01c6fb0b, size: 449 bytes, params: 2, frame: 23
|
|
var defaultImport;
|
|
const HTTP = (HTTPUtilsModule).HTTP;
|
|
var post;
|
|
var object;
|
|
var value;
|
|
const extraDataFromInviteKey = (InviteCodeUtilsModule).parseExtraDataFromInviteKey(inviteKey);
|
|
const baseCode = extraDataFromInviteKey.baseCode;
|
|
const sessionId = AuthenticationStore.getSessionId();
|
|
const receivedInstallationIdForInviteCode = InstantInviteStore.getReceivedInstallationIdForInviteCode(baseCode);
|
|
const object3 = {};
|
|
copyDataProperties(object3, context, undefined);
|
|
object3['invite_guild_scheduled_event_id'] = extraDataFromInviteKey.guildScheduledEventId;
|
|
let r0 = UserStore.getCurrentUser()?.hasFlag(UserFlags.QUARANTINED);
|
|
if (r0 == null) {
|
|
defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
defaultImport.dispatch({type: 'INVITE_ACCEPT', code: inviteKey});
|
|
post = HTTP.post;
|
|
object = {};
|
|
object.url = Endpoints.INVITE(baseCode);
|
|
object.context = object3;
|
|
object.oldFormErrors = true;
|
|
object.body = {session_id: sessionId, invite_instance_id: context.invite_instance_id,
|
|
received_installation_id: receivedInstallationIdForInviteCode};
|
|
object.rejectWithError = false;
|
|
value = Reflect.apply(post, HTTP, [object]);
|
|
value = value.then(_fun69280(), _fun69284);
|
|
r0 = value;
|
|
} else if (r0) {
|
|
(importDefault(6595) /* metro dependency 6595: openQuarantineModeInfoModalNative */)();
|
|
r0 = new global.Promise(function(a0, a1) {
|
|
var Error = global.Error;
|
|
return a1(new Error());
|
|
});
|
|
} else {
|
|
defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
defaultImport.dispatch({type: 'INVITE_ACCEPT', code: inviteKey});
|
|
post = HTTP.post;
|
|
object = {};
|
|
object.url = Endpoints.INVITE(baseCode);
|
|
object.context = object3;
|
|
object.oldFormErrors = true;
|
|
object.body = {session_id: sessionId, invite_instance_id: context.invite_instance_id,
|
|
received_installation_id: receivedInstallationIdForInviteCode};
|
|
object.rejectWithError = false;
|
|
value = Reflect.apply(post, HTTP, [object]);
|
|
value = value.then(_fun69280(), _fun69284);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function _fun69280() { // fn#69280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:9333, offset: 0x01c6fccc, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun69282);
|
|
return _fun69283;
|
|
function* _fun69282(a0) { // fn#69282, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:9353, offset: 0x01c6fcfb, size: 426 bytes, params: 2, frame: 23
|
|
var binding2;
|
|
var value9;
|
|
var property;
|
|
var value10;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
if (GuildScheduledEventStore != null) {
|
|
dependencyMap.clearReceivedInstallationIdForInviteCode(addPostConnectionCallback);
|
|
}
|
|
let binding = env3_1;
|
|
const value4 = undefined;
|
|
binding(env3_3[36]).dispatch({type: 'INVITE_ACCEPT_SUCCESS', invite: a0.body, code: require});
|
|
const guildScheduledEvent = env3_6.getGuildScheduledEvent(env2_4.guildScheduledEventId);
|
|
object = {};
|
|
copyDataProperties(object, a0.body, undefined);
|
|
object['guild_scheduled_event'] = guildScheduledEvent;
|
|
const r9 = (object == null ? value4 : object.guild_id) ?? (object == null || object.guild == null ? value4 : object.guild.id);
|
|
const value7 = env3_0(env3_3[19]);
|
|
const hasFlag = value7.hasFlag;
|
|
const r8 = object.flags ?? 0;
|
|
const GuildInviteFlags = env3_0(env3_3[20]).GuildInviteFlags;
|
|
const IS_GUEST_INVITE = GuildInviteFlags.IS_GUEST_INVITE;
|
|
if (importAll) {
|
|
if (importDefault != null) {
|
|
importDefault(object);
|
|
}
|
|
} else {
|
|
if (Reflect.apply(hasFlag, value7, [r8, IS_GUEST_INVITE])) {
|
|
if (importDefault != null) {
|
|
importDefault(object);
|
|
}
|
|
return a0.body;
|
|
}
|
|
if (r9 == null) {
|
|
if (importDefault != null) {
|
|
importDefault(object);
|
|
}
|
|
return a0.body;
|
|
}
|
|
if (object.new_member) {
|
|
if (object.show_verification_form) {
|
|
if (importDefault != null) {
|
|
importDefault(object);
|
|
}
|
|
return a0.body;
|
|
}
|
|
binding = env3_0;
|
|
binding2 = env3_3;
|
|
value9 = binding(binding2[25]);
|
|
property = binding2[50];
|
|
yield value9(property, binding2.paths);
|
|
value10 = undefined;
|
|
if (false) {
|
|
return value10;
|
|
}
|
|
property = value10.default;
|
|
yield property({guildId: r9});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (importDefault != null) {
|
|
importDefault(object);
|
|
}
|
|
return a0.body;
|
|
}
|
|
if (importDefault != null) {
|
|
importDefault(object);
|
|
}
|
|
}
|
|
return a0.body;
|
|
}
|
|
|
|
function _fun69283() { // fn#69283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:9925, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun69284(a0) { // fn#69284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:9972, offset: 0x01c6fea5, size: 234 bytes, params: 2, frame: 19
|
|
var moduleValue;
|
|
let body = a0.body;
|
|
let value = undefined;
|
|
const code = body == null ? value : body.code;
|
|
const USER_GUILD_JOIN_LARGE_GUILD_UNDERAGE_DISALLOWED = AbortCodes.USER_GUILD_JOIN_LARGE_GUILD_UNDERAGE_DISALLOWED;
|
|
if (code === USER_GUILD_JOIN_LARGE_GUILD_UNDERAGE_DISALLOWED) {
|
|
moduleValue = require(5075) /* metro dependency 5075: AgeGateModalActionCreators */;
|
|
moduleValue.openAgeGateModal(AgeGateSource.JOIN_LARGE_GUILD_UNDERAGE);
|
|
}
|
|
const defaultImport = Dispatcher;
|
|
const dispatch = defaultImport.dispatch;
|
|
const object = {type: 'INVITE_ACCEPT_FAILURE'};
|
|
object.code = inviteKey;
|
|
const object2 = {};
|
|
body = a0.body;
|
|
object2.message = body == null ? value : body.message;
|
|
body = a0.body;
|
|
object2.code = body == null ? value : body.code;
|
|
object.error = object2;
|
|
Reflect.apply(dispatch, defaultImport, [object]);
|
|
value = importDefault(3825) /* metro dependency 3825: V6OrEarlierAPIError */;
|
|
value = new value(a0);
|
|
throw value;
|
|
}
|
|
|
|
}
|
|
|
|
function acceptInviteAndTransitionToInviteChannel({inviteKey, context, analyticsLocations, callback, skipOnboarding, autoJoin}) { // fn#69285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:10297, offset: 0x01c6ff8f, size: 96 bytes, params: 2, frame: 15
|
|
return this.acceptInvite({inviteKey: inviteKey, context: context, skipOnboarding: skipOnboarding,
|
|
callback: callback_69286});
|
|
function acceptInviteAndTransitionToInviteChannelCallback(a0) { // fn#69286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:10497, owner: acceptInviteAndTransitionToInviteChannel.callback, offset: 0x01c6ffef, size: 118 bytes, params: 2, frame: 19
|
|
var object;
|
|
var value;
|
|
if (a0.channel != null) {
|
|
object = {};
|
|
value = environment.__proto__;
|
|
copyDataProperties(object, generateAcceptInviteOptions(a0), undefined);
|
|
object['autoJoin'] = autoJoin;
|
|
transitionToInviteChannelSync(a0.channel.id, object, analyticsLocations ?? []);
|
|
}
|
|
if (callback != null) {
|
|
callback(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function transitionToInvite(a0, a1, a2) { // fn#69287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:10651, offset: 0x01c70065, size: 393 bytes, params: 4, frame: 25
|
|
var r10;
|
|
var r5;
|
|
var features;
|
|
var value;
|
|
var flags;
|
|
var moduleValue;
|
|
const GuildInviteFlags = (GuildInviteFlagsModule).GuildInviteFlags;
|
|
var hasFlag2;
|
|
var moduleValue2;
|
|
var moduleValue3;
|
|
var value2;
|
|
const channel = a0.channel;
|
|
const guild = a0.guild;
|
|
if (guild == null) {
|
|
flags = a0.flags;
|
|
value = 0;
|
|
r10 = flags ?? value;
|
|
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
hasFlag2 = moduleValue.hasFlag(r10, GuildInviteFlags.IS_GUEST_INVITE);
|
|
if (hasFlag2) {
|
|
r5 = hasFlag2;
|
|
} else {
|
|
moduleValue2 = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
r5 = moduleValue2.hasFlag(r10, GuildInviteFlags.IS_APPLICATION_BYPASS);
|
|
}
|
|
if (guild == null) {
|
|
if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel, options: value2});
|
|
}
|
|
} else if (r5) {
|
|
if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel, options: value2});
|
|
}
|
|
} else if (a0.new_member) {
|
|
moduleValue3 = require(9461) /* metro dependency 9461: GuildVerificationUtils */;
|
|
if (moduleValue3.inviteGuildHasPendingMemberDisabledVerification(guild)) {
|
|
value = require(9461) /* metro dependency 9461: GuildVerificationUtils */;
|
|
value.openVerificationModalOrTransitionToApplication(guild.id);
|
|
} else if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel, options: value2});
|
|
}
|
|
} else if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel, options: value2});
|
|
}
|
|
} else {
|
|
features = guild.features;
|
|
if (features == null) {
|
|
flags = a0.flags;
|
|
value = 0;
|
|
r10 = flags ?? value;
|
|
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
hasFlag2 = moduleValue.hasFlag(r10, GuildInviteFlags.IS_GUEST_INVITE);
|
|
if (hasFlag2) {
|
|
r5 = hasFlag2;
|
|
} else {
|
|
moduleValue2 = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
r5 = moduleValue2.hasFlag(r10, GuildInviteFlags.IS_APPLICATION_BYPASS);
|
|
}
|
|
if (guild == null) {
|
|
if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel,
|
|
options: value2});
|
|
}
|
|
} else if (r5) {
|
|
if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel,
|
|
options: value2});
|
|
}
|
|
} else if (a0.new_member) {
|
|
moduleValue3 = require(9461) /* metro dependency 9461: GuildVerificationUtils */;
|
|
if (moduleValue3.inviteGuildHasPendingMemberDisabledVerification(guild)) {
|
|
value = require(9461) /* metro dependency 9461: GuildVerificationUtils */;
|
|
value.openVerificationModalOrTransitionToApplication(guild.id);
|
|
} else if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel,
|
|
options: value2});
|
|
}
|
|
} else if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel, options: value2});
|
|
}
|
|
} else if (features.includes(GuildFeatures.HUB)) {
|
|
(importDefault(9442) /* metro dependency 9442: HubUtilsNative */).onOpenHubInvite(a0);
|
|
} else {
|
|
flags = a0.flags;
|
|
value = 0;
|
|
r10 = flags ?? value;
|
|
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
hasFlag2 = moduleValue.hasFlag(r10, GuildInviteFlags.IS_GUEST_INVITE);
|
|
if (hasFlag2) {
|
|
r5 = hasFlag2;
|
|
} else {
|
|
moduleValue2 = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
r5 = moduleValue2.hasFlag(r10, GuildInviteFlags.IS_APPLICATION_BYPASS);
|
|
}
|
|
if (guild == null) {
|
|
if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel,
|
|
options: value2});
|
|
}
|
|
} else if (r5) {
|
|
if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel,
|
|
options: value2});
|
|
}
|
|
} else if (a0.new_member) {
|
|
moduleValue3 = require(9461) /* metro dependency 9461: GuildVerificationUtils */;
|
|
if (moduleValue3.inviteGuildHasPendingMemberDisabledVerification(guild)) {
|
|
value = require(9461) /* metro dependency 9461: GuildVerificationUtils */;
|
|
value.openVerificationModalOrTransitionToApplication(guild.id);
|
|
} else if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel,
|
|
options: value2});
|
|
}
|
|
} else if (channel != null) {
|
|
value2 = generateAcceptInviteOptions(a0);
|
|
if (a1 != null) {
|
|
value2.transitionTo = a1;
|
|
}
|
|
if (a2 != null) {
|
|
value2.muteOnJoinVoiceChannel = a2;
|
|
}
|
|
transitionToInviteChannel({guildId: guild != null ? guild.id : ME, channel: channel, options: value2});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function transitionToInviteSync(a0, a1, a2) { // fn#69288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:11300, offset: 0x01c701ee, size: 101 bytes, params: 4, frame: 15
|
|
var value;
|
|
var transitionToInviteChannelSync;
|
|
var id;
|
|
var object;
|
|
if (a0.channel != null) {
|
|
value = generateAcceptInviteOptions(a0);
|
|
transitionToInviteChannelSync = this.transitionToInviteChannelSync;
|
|
id = a0.channel.id;
|
|
object = {};
|
|
copyDataProperties(object, value, undefined);
|
|
object['intent'] = a2;
|
|
object['transitionTo'] = a1;
|
|
object['forceTransition'] = true;
|
|
Reflect.apply(transitionToInviteChannelSync, this, [id, object]);
|
|
}
|
|
}
|
|
|
|
function openApp(a0, a1, a2, a3, a4) { // fn#69290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:11615, offset: 0x01c7029d, size: 834 bytes, params: 6, frame: 26
|
|
var r8;
|
|
var r7;
|
|
var os;
|
|
const isTablet = (PlatformUtilsModule).isTablet;
|
|
var value9;
|
|
var defaultImport2;
|
|
var defaultImport3;
|
|
var track;
|
|
var DEEP_LINK_CLICKED;
|
|
const env0_0 = a0;
|
|
let value = null;
|
|
const r10 = value != a0 ? (require(4098) /* metro dependency 4098: InviteCodeUtils */).parseExtraDataFromInviteKey(a0) : value;
|
|
const value3 = undefined;
|
|
const baseCode = value == r10 ? value3 : r10.baseCode;
|
|
const defaultImport = Dispatcher;
|
|
let object = {type: 'INVITE_APP_OPENING', code: a0};
|
|
defaultImport.dispatch(object);
|
|
if (value == (importDefault(4222) /* metro dependency 4222 */).ua) {
|
|
os = (importDefault(4222) /* metro dependency 4222 */).os;
|
|
if ((value == os ? value3 : os.family) === 'Android') {
|
|
r8 = value != baseCode ? (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getInviteDynamicLinkTemplate(baseCode) : (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getDefaultDynamicLinkTemplate();
|
|
value9 = (require(9463) /* metro dependency 9463: generateDynamicLink */).generateAttemptId();
|
|
defaultImport2 = importDefault(9463) /* metro dependency 9463: generateDynamicLink */;
|
|
object = {};
|
|
object.utmSource = a4 === 2 ? 'friend_invite' : 'invite';
|
|
object.fingerprint = a2;
|
|
object.installationId = AuthenticationStore.getInstallationForTracking();
|
|
object.username = a3;
|
|
object.attemptId = value9;
|
|
object.event = value == r10 ? value3 : r10.guildScheduledEventId;
|
|
object.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode;
|
|
value = defaultImport2(r8, object);
|
|
defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport3.track;
|
|
DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED;
|
|
object = {};
|
|
object.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2);
|
|
object.attempt_id = value9;
|
|
object.source = 'invite';
|
|
object.invite_code = baseCode;
|
|
Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object]);
|
|
r7 = value;
|
|
} else {
|
|
os = (importDefault(4222) /* metro dependency 4222 */).os;
|
|
if ((value == os ? value3 : os.family) === 'iOS') {
|
|
r8 = value != baseCode ? (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getInviteDynamicLinkTemplate(baseCode) : (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getDefaultDynamicLinkTemplate();
|
|
value9 = (require(9463) /* metro dependency 9463: generateDynamicLink */).generateAttemptId();
|
|
defaultImport2 = importDefault(9463) /* metro dependency 9463: generateDynamicLink */;
|
|
object = {};
|
|
object.utmSource = a4 === 2 ? 'friend_invite' : 'invite';
|
|
object.fingerprint = a2;
|
|
object.installationId = AuthenticationStore.getInstallationForTracking();
|
|
object.username = a3;
|
|
object.attemptId = value9;
|
|
object.event = value == r10 ? value3 : r10.guildScheduledEventId;
|
|
object.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode;
|
|
value = defaultImport2(r8, object);
|
|
defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport3.track;
|
|
DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED;
|
|
object = {};
|
|
object.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2);
|
|
object.attempt_id = value9;
|
|
object.source = 'invite';
|
|
object.invite_code = baseCode;
|
|
Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object]);
|
|
r7 = value;
|
|
} else if (isTablet) {
|
|
r8 = value != baseCode ? (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getInviteDynamicLinkTemplate(baseCode) : (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getDefaultDynamicLinkTemplate();
|
|
value9 = (require(9463) /* metro dependency 9463: generateDynamicLink */).generateAttemptId();
|
|
defaultImport2 = importDefault(9463) /* metro dependency 9463: generateDynamicLink */;
|
|
object = {};
|
|
object.utmSource = a4 === 2 ? 'friend_invite' : 'invite';
|
|
object.fingerprint = a2;
|
|
object.installationId = AuthenticationStore.getInstallationForTracking();
|
|
object.username = a3;
|
|
object.attemptId = value9;
|
|
object.event = value == r10 ? value3 : r10.guildScheduledEventId;
|
|
object.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode;
|
|
value = defaultImport2(r8, object);
|
|
defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport3.track;
|
|
DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED;
|
|
object = {};
|
|
object.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2);
|
|
object.attempt_id = value9;
|
|
object.source = 'invite';
|
|
object.invite_code = baseCode;
|
|
Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object]);
|
|
r7 = value;
|
|
} else {
|
|
value = '';
|
|
r8 = value != a1 ? Routes.INVITE_PROXY(a1) : value;
|
|
r7 = r8[0] !== '#' ? r8 : r8.slice(1);
|
|
value = 'discord://' + r7;
|
|
r7 = value;
|
|
}
|
|
}
|
|
value = importDefault(9465) /* metro dependency 9465: ProtocolUtils */;
|
|
value.launch(r7, _fun69291);
|
|
} else if ((importDefault(4222) /* metro dependency 4222 */).ua.toLowerCase().indexOf('googlebot') > -1) {
|
|
defaultImport.dispatch({type: 'INVITE_APP_NOT_OPENED', code: a0});
|
|
} else {
|
|
os = (importDefault(4222) /* metro dependency 4222 */).os;
|
|
if ((value == os ? value3 : os.family) === 'Android') {
|
|
r8 = value != baseCode ? (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getInviteDynamicLinkTemplate(baseCode) : (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getDefaultDynamicLinkTemplate();
|
|
value9 = (require(9463) /* metro dependency 9463: generateDynamicLink */).generateAttemptId();
|
|
defaultImport2 = importDefault(9463) /* metro dependency 9463: generateDynamicLink */;
|
|
object = {};
|
|
object.utmSource = a4 === 2 ? 'friend_invite' : 'invite';
|
|
object.fingerprint = a2;
|
|
object.installationId = AuthenticationStore.getInstallationForTracking();
|
|
object.username = a3;
|
|
object.attemptId = value9;
|
|
object.event = value == r10 ? value3 : r10.guildScheduledEventId;
|
|
object.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode;
|
|
value = defaultImport2(r8, object);
|
|
defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport3.track;
|
|
DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED;
|
|
object = {};
|
|
object.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2);
|
|
object.attempt_id = value9;
|
|
object.source = 'invite';
|
|
object.invite_code = baseCode;
|
|
Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object]);
|
|
r7 = value;
|
|
} else {
|
|
os = (importDefault(4222) /* metro dependency 4222 */).os;
|
|
if ((value == os ? value3 : os.family) === 'iOS') {
|
|
r8 = value != baseCode ? (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getInviteDynamicLinkTemplate(baseCode) : (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getDefaultDynamicLinkTemplate();
|
|
value9 = (require(9463) /* metro dependency 9463: generateDynamicLink */).generateAttemptId();
|
|
defaultImport2 = importDefault(9463) /* metro dependency 9463: generateDynamicLink */;
|
|
object = {};
|
|
object.utmSource = a4 === 2 ? 'friend_invite' : 'invite';
|
|
object.fingerprint = a2;
|
|
object.installationId = AuthenticationStore.getInstallationForTracking();
|
|
object.username = a3;
|
|
object.attemptId = value9;
|
|
object.event = value == r10 ? value3 : r10.guildScheduledEventId;
|
|
object.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode;
|
|
value = defaultImport2(r8, object);
|
|
defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport3.track;
|
|
DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED;
|
|
object = {};
|
|
object.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2);
|
|
object.attempt_id = value9;
|
|
object.source = 'invite';
|
|
object.invite_code = baseCode;
|
|
Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object]);
|
|
r7 = value;
|
|
} else if (isTablet) {
|
|
r8 = value != baseCode ? (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getInviteDynamicLinkTemplate(baseCode) : (require(9462) /* metro dependency 9462: DynamicLinkTemplates */).getDefaultDynamicLinkTemplate();
|
|
value9 = (require(9463) /* metro dependency 9463: generateDynamicLink */).generateAttemptId();
|
|
defaultImport2 = importDefault(9463) /* metro dependency 9463: generateDynamicLink */;
|
|
object = {};
|
|
object.utmSource = a4 === 2 ? 'friend_invite' : 'invite';
|
|
object.fingerprint = a2;
|
|
object.installationId = AuthenticationStore.getInstallationForTracking();
|
|
object.username = a3;
|
|
object.attemptId = value9;
|
|
object.event = value == r10 ? value3 : r10.guildScheduledEventId;
|
|
object.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode;
|
|
value = defaultImport2(r8, object);
|
|
defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport3.track;
|
|
DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED;
|
|
object = {};
|
|
object.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2);
|
|
object.attempt_id = value9;
|
|
object.source = 'invite';
|
|
object.invite_code = baseCode;
|
|
Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object]);
|
|
r7 = value;
|
|
} else {
|
|
value = '';
|
|
r8 = value != a1 ? Routes.INVITE_PROXY(a1) : value;
|
|
r7 = r8[0] !== '#' ? r8 : r8.slice(1);
|
|
value = 'discord://' + r7;
|
|
r7 = value;
|
|
}
|
|
}
|
|
value = importDefault(9465) /* metro dependency 9465: ProtocolUtils */;
|
|
value.launch(r7, _fun69291);
|
|
}
|
|
return value3;
|
|
function _fun69291(a0) { // fn#69291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:12636, offset: 0x01c705df, size: 93 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__;
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
const dispatch = value.dispatch;
|
|
const object = {};
|
|
if (a0) {
|
|
object.type = 'INVITE_APP_OPENED';
|
|
object.code = env0_0;
|
|
} else {
|
|
object.type = 'INVITE_APP_NOT_OPENED';
|
|
object.code = env0_0;
|
|
}
|
|
Reflect.apply(dispatch, value, [object]);
|
|
}
|
|
|
|
}
|
|
|
|
function setReceivedInstallationIdForInviteCode(a0, a1) { // fn#69292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:12738, offset: 0x01c7063c, size: 65 bytes, params: 3, frame: 13
|
|
(Dispatcher).dispatch({type: 'INSTANT_INVITE_RECEIVED_INSTALLATION_ID_SET',
|
|
inviteCode: a0, receivedInstallationId: a1});
|
|
}
|
|
|
|
function clearReceivedInstallationIdForInviteCode(a0) { // fn#69293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:12893, offset: 0x01c7067d, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'INSTANT_INVITE_RECEIVED_INSTALLATION_ID_CLEAR',
|
|
inviteCode: a0});
|
|
}
|
|
|
|
function trackInviteEmbedActioned({invite, action, inviter_id, invite_message_id, invite_instance_id, application_id, stream_key, number_of_users_in_channel}, a1) { // fn#69295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:13392, offset: 0x01c706b6, size: 266 bytes, params: 3, frame: 25
|
|
const value = a1;
|
|
const defaultImport = AnalyticsUtils;
|
|
const track = defaultImport.track;
|
|
const INVITE_EMBED_ACTIONED = AnalyticEvents.INVITE_EMBED_ACTIONED;
|
|
const object = {action: action};
|
|
object.invite_code = invite.code;
|
|
object.invite_type = invite.type?.toString();
|
|
object.inviter_id = inviter_id ?? null;
|
|
object.invite_message_id = invite_message_id ?? null;
|
|
object.invite_instance_id = invite_instance_id ?? null;
|
|
object.application_id = application_id ?? null;
|
|
object.stream_key = stream_key ?? null;
|
|
object.number_of_users_in_channel = number_of_users_in_channel ?? null;
|
|
object.location_stack = value ?? null;
|
|
Reflect.apply(track, defaultImport, [INVITE_EMBED_ACTIONED, object]);
|
|
}
|
|
|
|
}
|
|
|
|
function getInviteContext(a0, a1) { // fn#69251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9064:5461, offset: 0x01c6f075, size: 136 bytes, params: 3, frame: 6
|
|
const value = undefined;
|
|
return {location: a0, location_guild_id: (a1 == null ? value : a1.guild) != null ? a1.guild.id : value,
|
|
location_channel_id: (a1 == null ? value : a1.channel) != null ? a1.channel.id : value,
|
|
location_channel_type: (a1 == null ? value : a1.channel) != null ? a1.channel.type : value};
|
|
}
|
|
|
|
global.__d(_fun69232, 8879, [5, 4255, 4117, 1383, 1226, 1379, 1935, 1945, 1867, 8880, 3784, 3969, 1878, 661, 1229,
|
|
1386, 4286, 4118, 4799, 1391, 8898, 5103, 1242, 1230, 4796, 1962, 8113, 8899, 4406, 8913, 8918, 5068, 6664,
|
|
8919, 8448, 9032, 694, 9439, 5072, 9440, 6593, 683, 507, 4132, 672, 5046, 480, 1392, 4098, 6595, 6598, 5075,
|
|
3825, 9442, 9461, 8452, 4222, 4140, 9462, 9463, 490, 9465,
|
|
2]) /* metro module 8879, dependencies: [5, 4255, 4117, 1383, 1226, 1379, 1935, 1945, 1867, 8880, 3784, 3969, 1878, 661, 1229, 1386, 4286, 4118, 4799, 1391, 8898, 5103, 1242, 1230, 4796, 1962, 8113, 8899, 4406, 8913, 8918, 5068, 6664, 8919, 8448, 9032, 694, 9439, 5072, 9440, 6593, 683, 507, 4132, 672, 5046, 480, 1392, 4098, 6595, 6598, 5075, 3825, 9442, 9461, 8452, 4222, 4140, 9462, 9463, 490, 9465, 2] */;
|