/* 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] */ 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 var object2; const env0_0 = require; const closure = 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}); const env0_4 = importDefault(5) /* metro dependency 5 */; const env0_5 = (require(4255) /* metro dependency 4255: PostConnectionCallbackStore */).addPostConnectionCallback; const guildScheduledEventStore = importDefault(4117) /* metro dependency 4117: GuildScheduledEventStore */; const env0_7 = (require(4117) /* metro dependency 4117: GuildScheduledEventStore */).isGuildScheduledEventActive; let value = require(1383) /* metro dependency 1383: ChannelRecord */; 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; const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */; const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */; const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */; const instantInviteStore = importDefault(8880) /* metro dependency 8880: InstantInviteStore */; const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */; const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; 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; const env0_32 = (require(1229) /* metro dependency 1229: AgeGateConstants */).AgeGateSource; const env0_33 = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoute; const env0_34 = (require(4286) /* metro dependency 4286: Constants */).StreamTypes; const env0_35 = (require(4118) /* metro dependency 4118: Constants */).InviteTargetTypes; const env0_36 = (require(4799) /* metro dependency 4799: StageChannelsConstants */).STAGE_INVITE_STATE_KEY; object2 = {}; object2.resolveInvite = resolveInvite; object2.getInviteContext = getInviteContext; object2.createInvite = createInvite; object2.mobileCreateInvite = mobileCreateInvite; object2.getAllFriendInvites = getAllFriendInvites; object2.createFriendInvite = createFriendInvite; object2.revokeFriendInvites = revokeFriendInvites; object2.revokeFriendInvite = function(a0) { var HTTP = require(dependencyMap[42]).HTTP; var object = {}; object.url = Endpoints.INVITE(a0); object.rejectWithError = false; return HTTP.del(object); }; object2.fetchFriendMembers = fetchFriendMembers; object2.clearInviteFromStore = clearInviteFromStore; object2.revokeInvite = revokeInvite; object2.acceptInvite = acceptInvite; object2.acceptInviteAndTransitionToInviteChannel = function({inviteKey, context, analyticsLocations, callback, skipOnboarding, autoJoin}) { return this.acceptInvite({inviteKey: inviteKey, context: context, skipOnboarding: skipOnboarding, callback: _fun69286}); }; object2.transitionToInvite = transitionToInvite; object2.transitionToInviteSync = transitionToInviteSync; object2.openNativeAppModal = function(a0) { var object = {}; object.installationId = AuthenticationStore.getInstallationForTracking(); importDefault(dependencyMap[55]).openNativeAppModal(a0, RPCCommands.INVITE_BROWSER, object); }; object2.openApp = openApp; object2.setReceivedInstallationIdForInviteCode = setReceivedInstallationIdForInviteCode; object2.clearReceivedInstallationIdForInviteCode = clearReceivedInstallationIdForInviteCode; object2.transitionToInviteChannelSync = closure; object2.trackInviteServerClicked = closure2; (require(2) /* metro dependency 2 */).fileFinishedImporting('actions/InstantInviteActionCreators.tsx'); exports.default = object2; 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 object2 = {}; const target_type = a0.target_type; const STREAM = InviteTargetTypes.STREAM; if (STREAM === target_type) { object2.targetType = a0.target_type; object2.targetUserId = a0.target_user?.id; } else if (InviteTargetTypes.EMBEDDED_APPLICATION === target_type) { object2.targetType = a0.target_type; object2.targetApplicationId = a0.target_application?.id; } else if (InviteTargetTypes.ROLE_SUBSCRIPTIONS_PURCHASE === target_type) { object2.targetType = a0.target_type; } const getGuild = GuildStore.getGuild; const guild = a0.guild; const value4 = undefined; const value5 = Reflect.apply(getGuild, GuildStore, [guild == null ? value4 : guild.id]) != null; const r1 = value5 ? a0.new_member : !value5; if (r1 && a0.channel != null && isGuildTextChannelType(a0.channel.type)) { object2.welcomeModalChannelId = a0.channel.id; } if (a0.guild_scheduled_event != null) { object2.guildScheduledEvent = a0.guild_scheduled_event; } const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */; let hasFlag = flagUtilsModule.hasFlag; const flags = a0.flags; const value8 = 0; const r12 = flags ?? value8; const GuildInviteFlags = (require(8898) /* metro dependency 8898: GuildInviteFlags */).GuildInviteFlags; const IS_GUEST_INVITE = GuildInviteFlags.IS_GUEST_INVITE; object2.isGuestInvite = Reflect.apply(hasFlag, flagUtilsModule, [r12, IS_GUEST_INVITE]); const moduleValue2 = flagUtilsModule; hasFlag = moduleValue2.hasFlag; const r8 = a0.flags ?? value8; const IS_APPLICATION_BYPASS = GuildInviteFlags.IS_APPLICATION_BYPASS; object2.isApplicationBypassInvite = Reflect.apply(hasFlag, moduleValue2, [r8, IS_APPLICATION_BYPASS]); const inviter = a0.inviter; object2.inviterUserId = inviter == null ? value4 : inviter.id; if (!r1) { object2.forceTransition = true; } return object2; } 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 type; var getChannel; var value5; var moduleValue; var value9; var moduleValue3; const CommandOrigin = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).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; getChannel = ChannelStore.getChannel; id = channel.id; value5 = Reflect.apply(getChannel, ChannelStore, [id]); if (options?.targetType != null) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id; id = id ?? channel.id; } r11 = id; } else if (isGuildVocalChannelOrVocalThreadType(channel.type)) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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 { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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; getChannel = ChannelStore.getChannel; id = channel.id; value5 = Reflect.apply(getChannel, ChannelStore, [id]); if (options?.targetType != null) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id; id = id ?? channel.id; } r11 = id; } else if (isGuildVocalChannelOrVocalThreadType(channel.type)) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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 { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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) { if (SelectedGuildStore.getGuildId() === guildId) { type = channel.type; getChannel = ChannelStore.getChannel; id = channel.id; value5 = Reflect.apply(getChannel, ChannelStore, [id]); if (options?.targetType != null) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id; id = id ?? channel.id; } r11 = id; } else if (isGuildVocalChannelOrVocalThreadType(channel.type)) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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 { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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; getChannel = ChannelStore.getChannel; id = channel.id; value5 = Reflect.apply(getChannel, ChannelStore, [id]); if (options?.targetType != null) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id; id = id ?? channel.id; } r11 = id; } else if (isGuildVocalChannelOrVocalThreadType(channel.type)) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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 { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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; getChannel = ChannelStore.getChannel; id = channel.id; value5 = Reflect.apply(getChannel, ChannelStore, [id]); if (options?.targetType != null) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id; id = id ?? channel.id; } r11 = id; } else if (isGuildVocalChannelOrVocalThreadType(channel.type)) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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 { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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) { if (SelectedGuildStore.getGuildId() === guildId) { type = channel.type; getChannel = ChannelStore.getChannel; id = channel.id; value5 = Reflect.apply(getChannel, ChannelStore, [id]); if (options?.targetType != null) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id; id = id ?? channel.id; } r11 = id; } else if (isGuildVocalChannelOrVocalThreadType(channel.type)) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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 { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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; getChannel = ChannelStore.getChannel; id = channel.id; value5 = Reflect.apply(getChannel, ChannelStore, [id]); if (options?.targetType != null) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.getDefaultChannel(guildId, true, Permissions.CREATE_INSTANT_INVITE)?.id; id = id ?? channel.id; } r11 = id; } else if (isGuildVocalChannelOrVocalThreadType(channel.type)) { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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 { getChannel = ChannelStore.getChannel; id = channel.id; if (PermissionStore.can(getAccessPermissions(channel.type), Reflect.apply(getChannel, ChannelStore, [id]))) { id = channel.id; } else { id = GuildChannelStore.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 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 _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 env0_4(_fun69246).apply(this, arguments); } 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 = importDefault(694) /* metro dependency 694: 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 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}; } 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 env0_4(_fun69254)(); } 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 env0_4(_fun69257)(); } 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 env0_4(_fun69261)(); } 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; (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRIEND_INVITE_CREATE_REQUEST'}); const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).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 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 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRIEND_INVITE_REVOKE_REQUEST'}); const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).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 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 env0_4(_fun69273)(); } 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 (importDefault(694) /* metro dependency 694: 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 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */; const object2 = {}; object2.url = Endpoints.INVITE(code); object2.oldFormErrors = true; const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames; const INVITE_REVOKE = NetworkActionNames.INVITE_REVOKE; object2.trackedActionData = {event: INVITE_REVOKE, properties: {uses: uses, max_uses: maxUses, max_age: maxAge, invite_type: type}}; object2.rejectWithError = false; return defaultImport.delete(object2).then(_fun69277); } 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 = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; var post; var object2; var value; const extraDataFromInviteKey = (require(4098) /* metro dependency 4098: InviteCodeUtils */).parseExtraDataFromInviteKey(inviteKey); const baseCode = extraDataFromInviteKey.baseCode; const sessionId = AuthenticationStore.getSessionId(); const receivedInstallationIdForInviteCode = InstantInviteStore.getReceivedInstallationIdForInviteCode(baseCode); const object4 = {}; copyDataProperties(object4, context, undefined); object4['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; object2 = {}; object2.url = Endpoints.INVITE(baseCode); object2.context = object4; object2.oldFormErrors = true; object2.body = {session_id: sessionId, invite_instance_id: context.invite_instance_id, received_installation_id: receivedInstallationIdForInviteCode}; object2.rejectWithError = false; value = Reflect.apply(post, HTTP, [object2]); 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; object2 = {}; object2.url = Endpoints.INVITE(baseCode); object2.context = object4; object2.oldFormErrors = true; object2.body = {session_id: sessionId, invite_instance_id: context.invite_instance_id, received_installation_id: receivedInstallationIdForInviteCode}; object2.rejectWithError = false; value = Reflect.apply(post, HTTP, [object2]); value = value.then(_fun69280(), _fun69284); r0 = value; } return r0; } 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 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 = (require(8898) /* metro dependency 8898: GuildInviteFlags */).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 object2; if (a0.channel != null) { value = generateAcceptInviteOptions(a0); transitionToInviteChannelSync = this.transitionToInviteChannelSync; id = a0.channel.id; object2 = {}; copyDataProperties(object2, value, undefined); object2['intent'] = a2; object2['transitionTo'] = a1; object2['forceTransition'] = true; Reflect.apply(transitionToInviteChannelSync, this, [id, object2]); } } 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 = (require(4140) /* metro dependency 4140: PlatformUtils */).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 = importDefault(694) /* metro dependency 694: Dispatcher */; let object2 = {type: 'INVITE_APP_OPENING', code: a0}; defaultImport.dispatch(object2); 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 */; object2 = {}; object2.utmSource = a4 === 2 ? 'friend_invite' : 'invite'; object2.fingerprint = a2; object2.installationId = AuthenticationStore.getInstallationForTracking(); object2.username = a3; object2.attemptId = value9; object2.event = value == r10 ? value3 : r10.guildScheduledEventId; object2.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode; value = defaultImport2(r8, object2); defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; track = defaultImport3.track; DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED; object2 = {}; object2.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2); object2.attempt_id = value9; object2.source = 'invite'; object2.invite_code = baseCode; Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object2]); 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 */; object2 = {}; object2.utmSource = a4 === 2 ? 'friend_invite' : 'invite'; object2.fingerprint = a2; object2.installationId = AuthenticationStore.getInstallationForTracking(); object2.username = a3; object2.attemptId = value9; object2.event = value == r10 ? value3 : r10.guildScheduledEventId; object2.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode; value = defaultImport2(r8, object2); defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; track = defaultImport3.track; DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED; object2 = {}; object2.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2); object2.attempt_id = value9; object2.source = 'invite'; object2.invite_code = baseCode; Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object2]); 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 */; object2 = {}; object2.utmSource = a4 === 2 ? 'friend_invite' : 'invite'; object2.fingerprint = a2; object2.installationId = AuthenticationStore.getInstallationForTracking(); object2.username = a3; object2.attemptId = value9; object2.event = value == r10 ? value3 : r10.guildScheduledEventId; object2.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode; value = defaultImport2(r8, object2); defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; track = defaultImport3.track; DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED; object2 = {}; object2.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2); object2.attempt_id = value9; object2.source = 'invite'; object2.invite_code = baseCode; Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object2]); 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 */; object2 = {}; object2.utmSource = a4 === 2 ? 'friend_invite' : 'invite'; object2.fingerprint = a2; object2.installationId = AuthenticationStore.getInstallationForTracking(); object2.username = a3; object2.attemptId = value9; object2.event = value == r10 ? value3 : r10.guildScheduledEventId; object2.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode; value = defaultImport2(r8, object2); defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; track = defaultImport3.track; DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED; object2 = {}; object2.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2); object2.attempt_id = value9; object2.source = 'invite'; object2.invite_code = baseCode; Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object2]); 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 */; object2 = {}; object2.utmSource = a4 === 2 ? 'friend_invite' : 'invite'; object2.fingerprint = a2; object2.installationId = AuthenticationStore.getInstallationForTracking(); object2.username = a3; object2.attemptId = value9; object2.event = value == r10 ? value3 : r10.guildScheduledEventId; object2.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode; value = defaultImport2(r8, object2); defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; track = defaultImport3.track; DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED; object2 = {}; object2.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2); object2.attempt_id = value9; object2.source = 'invite'; object2.invite_code = baseCode; Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object2]); 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 */; object2 = {}; object2.utmSource = a4 === 2 ? 'friend_invite' : 'invite'; object2.fingerprint = a2; object2.installationId = AuthenticationStore.getInstallationForTracking(); object2.username = a3; object2.attemptId = value9; object2.event = value == r10 ? value3 : r10.guildScheduledEventId; object2.iosFallbackLink = 'https://discord.com/api/download/mobile?invite_code=' + baseCode; value = defaultImport2(r8, object2); defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; track = defaultImport3.track; DEEP_LINK_CLICKED = AnalyticEvents.DEEP_LINK_CLICKED; object2 = {}; object2.fingerprint = (require(490) /* metro dependency 490: FingerprintUtils */).maybeExtractId(a2); object2.attempt_id = value9; object2.source = 'invite'; object2.invite_code = baseCode; Reflect.apply(track, defaultImport3, [DEEP_LINK_CLICKED, object2]); 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 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 (importDefault(694) /* metro dependency 694: 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 (importDefault(694) /* metro dependency 694: 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 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const track = defaultImport.track; const INVITE_EMBED_ACTIONED = AnalyticEvents.INVITE_EMBED_ACTIONED; const object2 = {action: action}; object2.invite_code = invite.code; object2.invite_type = invite.type?.toString(); object2.inviter_id = inviter_id ?? null; object2.invite_message_id = invite_message_id ?? null; object2.invite_instance_id = invite_instance_id ?? null; object2.application_id = application_id ?? null; object2.stream_key = stream_key ?? null; object2.number_of_users_in_channel = number_of_users_in_channel ?? null; object2.location_stack = value ?? null; Reflect.apply(track, defaultImport, [INVITE_EMBED_ACTIONED, object2]); } 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 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 object2 = {}; const INVITE_ACCEPT = (importDefault(1242) /* metro dependency 1242: RoutingSources */).INVITE_ACCEPT; object2.source = INVITE_ACCEPT; object2.navigationReplace = true; if (welcomeModalChannelId != null) { object2.welcomeModalChannelId = welcomeModalChannelId; } if (type === GUILD_STAGE_VOICE) { object2.state = {stageInviteKey: STAGE_INVITE_STATE_KEY}; } if (guildScheduledEvent != null) { object2.guildScheduledEventId = guildScheduledEvent.id; } return _fun69239; } 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* _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 _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* _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 object3; var role_ids; var value4; var value5; var binding; var binding2; var property; var value7; var HTTP; var post; var object4; 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 { object3 = {}; } 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(object3, 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 = object3.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 object3.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 { object4 = {}; } 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 { object4.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 { object4.body = object3; } 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 { object3 = {}; } 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 { object3.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 { object4.context = object3; } 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 { object4.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, [object4]); } 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 { object3 = {}; } 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 { object3.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 { object3.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 { object3.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, [object3]); } 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* _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 object2; var value5; if (false) { return undefined; } value = environment.__proto__.__proto__; let binding = env2_18; const invite = binding.getInvite(require.id); if (invite == null) { object2 = {}; binding = env2_1; value = undefined; object2.max_age = binding(env2_3[44]).Seconds.DAY; yield importAll.createInvite(require.id, object2, importDefault).catch(_fun69258); value5 = undefined; if (false) { return value5; } return value5 == null ? value : value5.code; } if (invite.isExpired()) { object2 = {}; binding = env2_1; value = undefined; object2.max_age = binding(env2_3[44]).Seconds.DAY; yield importAll.createInvite(require.id, object2, importDefault).catch(_fun69258); value5 = undefined; if (false) { return value5; } return value5 == null ? value : value5.code; } return invite.code; } 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 _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__; (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRIEND_INVITE_CREATE_FAILURE', error: a0}); throw a0; } 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* _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 object3; var INVITE_FRIEND_MEMBERS; var value5; var object4; var value6; var NetworkActionNames; var INVITE_FRIEND_MEMBERS_FETCH; var closure; 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 { object3 = {}; } 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 { object3.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 { object4 = {}; } 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 { object4.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 { closure = 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 { object4.properties = closure; } 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 { object3.trackedActionData = object4; } 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 { object3.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, [object3]); } 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 { object3 = {}; } 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 { object3.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 { object3.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 { object3.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, [object3]); } 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 _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__; (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'INSTANT_INVITE_REVOKE_SUCCESS', code: code, channelId: channel.id}); } 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 _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 = importDefault(694) /* metro dependency 694: Dispatcher */; const dispatch = defaultImport.dispatch; const object3 = {type: 'INVITE_ACCEPT_FAILURE'}; object3.code = inviteKey; const object4 = {}; body = a0.body; object4.message = body == null ? value : body.message; body = a0.body; object4.code = body == null ? value : body.code; object3.error = object4; Reflect.apply(dispatch, defaultImport, [object3]); value = importDefault(3825) /* metro dependency 3825: V6OrEarlierAPIError */; value = new value(a0); throw value; } 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 object2; var value; if (a0.channel != null) { object2 = {}; value = environment.__proto__; copyDataProperties(object2, generateAcceptInviteOptions(a0), undefined); object2['autoJoin'] = autoJoin; transitionToInviteChannelSync(a0.channel.id, object2, analyticsLocations ?? []); } if (callback != null) { callback(a0); } } 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 object2 = {}; if (a0) { object2.type = 'INVITE_APP_OPENED'; object2.code = env0_0; } else { object2.type = 'INVITE_APP_NOT_OPENED'; object2.code = env0_0; } Reflect.apply(dispatch, value, [object2]); } 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 closure = connect_69237; if (isGuestInvite) { closure(); } 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, closure); } else { closure(); } } } 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 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 _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 _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 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* _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 object2; 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); object2 = {}; copyDataProperties(object2, a0.body, undefined); object2['guild_scheduled_event'] = guildScheduledEvent; const r9 = (object2 == null ? value4 : object2.guild_id) ?? (object2 == null || object2.guild == null ? value4 : object2.guild.id); const value7 = env3_0(env3_3[19]); const hasFlag = value7.hasFlag; const r8 = object2.flags ?? 0; const GuildInviteFlags = env3_0(env3_3[20]).GuildInviteFlags; const IS_GUEST_INVITE = GuildInviteFlags.IS_GUEST_INVITE; if (importAll) { if (importDefault != null) { importDefault(object2); } } else { if (Reflect.apply(hasFlag, value7, [r8, IS_GUEST_INVITE])) { if (importDefault != null) { importDefault(object2); } return a0.body; } if (r9 == null) { if (importDefault != null) { importDefault(object2); } return a0.body; } if (object2.new_member) { if (object2.show_verification_form) { if (importDefault != null) { importDefault(object2); } 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(object2); } return a0.body; } if (importDefault != null) { importDefault(object2); } } return a0.body; } 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 object2; 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 */; object2 = {channelId: env2_8}; object2.applicationId = targetApplicationId; object2.intent = options == null ? value10 : options.intent; object2.inviterUserId = options == null ? value10 : options.inviterUserId; object2.analyticsLocations = env2_3; object2.commandOrigin = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).CommandOrigin.CHAT; defaultImport2(object2); } } } 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); }