Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,893 @@
|
||||
/* Metro module 11321; source: modules/messages/native/Messages.tsx; dependencies: [57, 31, 4502, 1378, 6874, 4234, 10557, 4885, 4606, 9858, 6540, 4107, 4822, 6773, 8200, 8183, 4117, 7069, 8358, 8057, 10604, 8185, 8432, 7065, 11322, 7074, 4833, 9865, 3786, 6898, 1949, 1310, 1226, 5109, 1379, 7075, 8450, 1945, 1867, 4798, 4097, 4814, 3784, 4396, 4294, 4605, 4296, 7223, 1878, 4297, 4279, 10581, 4300, 661, 1880, 33, 566, 22, 628, 6772, 1360, 3829, 11323, 11326, 11330, 10563, 9483, 7063, 3802, 8214, 6274, 11291, 11292, 8229, 7035, 11333, 4022, 9867, 9764, 9854, 11334, 4813, 9855, 8357, 11335, 11338, 8372, 9835, 4116, 10572, 11340, 7704, 11341, 2] */
|
||||
function _fun86349(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:6, offset: 0x01f922d7, size: 1138 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_86352 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const applicationAssetsStore = importDefault(6874) /* metro dependency 6874: ApplicationAssetsStore */;
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
const buildOverrideStore = importDefault(10557) /* metro dependency 10557: BuildOverrideStore */;
|
||||
const cacheStore = importDefault(4885) /* metro dependency 4885: CacheStore */;
|
||||
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
|
||||
const voiceChannelStartTimeStore = importDefault(9858) /* metro dependency 9858: VoiceChannelStartTimeStore */;
|
||||
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
|
||||
const experimentStore = importDefault(4107) /* metro dependency 4107: ExperimentStore */;
|
||||
const explicitMediaStore = importDefault(4822) /* metro dependency 4822: ExplicitMediaStore */;
|
||||
const applicationDirectoryApplicationsStore = importDefault(6773) /* metro dependency 6773: ApplicationDirectoryApplicationsStore */;
|
||||
const basicGuildStore = importDefault(8200) /* metro dependency 8200: BasicGuildStore */;
|
||||
const guildAutomodMessageStore = importDefault(8183) /* metro dependency 8183: GuildAutomodMessageStore */;
|
||||
const guildScheduledEventStore = importDefault(4117) /* metro dependency 4117: GuildScheduledEventStore */;
|
||||
const guildTemplateStore = importDefault(7069) /* metro dependency 7069: GuildTemplateStore */;
|
||||
const localInteractionComponentStateStore = importDefault(8358) /* metro dependency 8358: LocalInteractionComponentStateStore */;
|
||||
const interactionStore = importDefault(8057) /* metro dependency 8057: InteractionStore */;
|
||||
const mediaPostEmbedStore = importDefault(10604) /* metro dependency 10604: MediaPostEmbedStore */;
|
||||
const mediaPostSharePromptStore = importDefault(8185) /* metro dependency 8185: MediaPostSharePromptStore */;
|
||||
const pollsInteractionStoreModule = require(8432) /* metro dependency 8432: PollsInteractionStore */;
|
||||
const env0_25 = pollsInteractionStoreModule.useChannelPollInteractions;
|
||||
const env0_26 = pollsInteractionStoreModule.useMessagePollInteractions;
|
||||
const referralTrialStore = importDefault(7065) /* metro dependency 7065: ReferralTrialStore */;
|
||||
const pushFeedbackStore = importDefault(11322) /* metro dependency 11322: PushFeedbackStore */;
|
||||
const pendingReplyStore = importDefault(7074) /* metro dependency 7074: PendingReplyStore */;
|
||||
const referencedMessageStore = importDefault(4833) /* metro dependency 4833: ReferencedMessageStore */;
|
||||
const summaryStore = importDefault(9865) /* metro dependency 9865: SummaryStore */;
|
||||
const joinedThreadsStore = importDefault(3786) /* metro dependency 3786: JoinedThreadsStore */;
|
||||
const threadMessageStore = importDefault(6898) /* metro dependency 6898: ThreadMessageStore */;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const authorizedAppsStore = importDefault(5109) /* metro dependency 5109: AuthorizedAppsStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const editMessageStore = importDefault(7075) /* metro dependency 7075: EditMessageStore */;
|
||||
const giftCodeStore = importDefault(8450) /* metro dependency 8450: GiftCodeStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const guildVerificationStore = importDefault(4798) /* metro dependency 4798: GuildVerificationStore */;
|
||||
const inviteStore = importDefault(4097) /* metro dependency 4097: InviteStore */;
|
||||
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
const sessionsStore = importDefault(4296) /* metro dependency 4296: SessionsStore */;
|
||||
const uploadStore = importDefault(7223) /* metro dependency 7223: UploadStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */;
|
||||
const activityLauncherStore = importDefault(10581) /* metro dependency 10581: ActivityLauncherStore */;
|
||||
const sortedVoiceStateStore = importDefault(4300) /* metro dependency 4300: SortedVoiceStateStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_57 = constantsModule.ActivityActionTypes;
|
||||
const env0_58 = constantsModule.ChannelTypesSets;
|
||||
const env0_59 = constantsModule.ME;
|
||||
const env0_60 = constantsModule.MessageTypes;
|
||||
const env0_61 = constantsModule.Permissions;
|
||||
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_62 = premiumConstantsModule.PREMIUM_TIER_2_REFERRAL_TRIAL_ID;
|
||||
const env0_63 = premiumConstantsModule.PremiumTypes;
|
||||
let value5 = require(33) /* metro dependency 33 */;
|
||||
const env0_64 = value5.jsx;
|
||||
const env0_65 = value5.jsxs;
|
||||
value = value.forwardRef(_fun86353);
|
||||
value.displayName = 'MessagesConnected';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/Messages.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_86350(a0, a1) { // fn#86350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:955, offset: 0x01f92749, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun86351;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_86352(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_86352(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_86352(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun86351;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun86353(a0, a1) { // fn#86353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:1886, offset: 0x01f928bd, size: 4658 bytes, params: 3, frame: 132
|
||||
const channel = a0.channel;
|
||||
let value2 = undefined;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
let value3 = Reflect.apply(useStateFromStores, fluxModule, [[MessageStore], function() {
|
||||
return MessageStore.getMessages(channel.id);
|
||||
}, [channel.id]]);
|
||||
const id2 = channel.id;
|
||||
const guildId = channel.getGuildId();
|
||||
const env0_3 = guildId;
|
||||
const guild = fluxModule.useStateFromStores([GuildStore], _fun86355);
|
||||
const env0_4 = guild;
|
||||
const systemChannelFlags = guild == null ? value2 : guild.systemChannelFlags;
|
||||
const value5 = fluxModule.useStateFromStores([AuthenticationStore], function() {
|
||||
return AuthenticationStore.getId();
|
||||
}, []);
|
||||
const InlineAttachmentMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineAttachmentMedia;
|
||||
const value6 = InlineAttachmentMedia.useSetting();
|
||||
const InlineEmbedMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineEmbedMedia;
|
||||
const value7 = InlineEmbedMedia.useSetting();
|
||||
const RenderEmbeds = (require(3829) /* metro dependency 3829: UserSettings */).RenderEmbeds;
|
||||
const value8 = RenderEmbeds.useSetting();
|
||||
const RenderReactions = (require(3829) /* metro dependency 3829: UserSettings */).RenderReactions;
|
||||
const value9 = RenderReactions.useSetting();
|
||||
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
|
||||
const value10 = DeveloperMode.useSetting();
|
||||
const AnimateEmoji = (require(3829) /* metro dependency 3829: UserSettings */).AnimateEmoji;
|
||||
const value11 = AnimateEmoji.useSetting();
|
||||
const AnimateStickers = (require(3829) /* metro dependency 3829: UserSettings */).AnimateStickers;
|
||||
const value12 = AnimateStickers.useSetting();
|
||||
const GifAutoPlay = (require(3829) /* metro dependency 3829: UserSettings */).GifAutoPlay;
|
||||
const value13 = GifAutoPlay.useSetting();
|
||||
const TimestampHourCycle = (require(3829) /* metro dependency 3829: UserSettings */).TimestampHourCycle;
|
||||
const value14 = TimestampHourCycle.useSetting();
|
||||
const value15 = fluxModule.useStateFromStores([ThemeStore], function() {
|
||||
return ThemeStore.theme;
|
||||
}, []);
|
||||
const value16 = (require(11323) /* metro dependency 11323: SwipeToReplyExperiment */).useIsMessageSwipeActionsEnabled();
|
||||
const value17 = useMessageAuthorActivities_86358(value3);
|
||||
useFetchMessageApplications_86363(value3);
|
||||
const value18 = (importDefault(11326) /* metro dependency 11326: useSubscribeMissingActivities */)(value3, channel);
|
||||
let binding = env0_3;
|
||||
const value19 = binding(value18, 2);
|
||||
const property = value19[0];
|
||||
value19[1];
|
||||
const value20 = fluxModule.useStateFromStores([InviteStore], function() {
|
||||
return InviteStore.getInvites();
|
||||
}, []);
|
||||
(require(11330) /* metro dependency 11330: MessagesHooks */).useFetchVoiceChannelInviteStartTimes(value20);
|
||||
const {appDirectoryEmbedApplications, invalidAppDirectoryEmbedApplicationIds,
|
||||
appDirectoryEmbedApplicationFetchStates} = fluxModule.useStateFromStoresObject([ApplicationDirectoryApplicationsStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.appDirectoryEmbedApplications = ApplicationDirectoryApplicationsStore.getApplications();
|
||||
object.invalidAppDirectoryEmbedApplicationIds = ApplicationDirectoryApplicationsStore.getInvalidApplicationIds();
|
||||
object.appDirectoryEmbedApplicationFetchStates = ApplicationDirectoryApplicationsStore.getApplicationFetchStates();
|
||||
return object;
|
||||
}, []);
|
||||
const value22 = fluxModule.useStateFromStoresArray([ApplicationStore], function() {
|
||||
return ApplicationStore.getFetchingOrFailedFetchingIds();
|
||||
});
|
||||
const value23 = fluxModule.useStateFromStoresArray([ApplicationAssetsStore], function() {
|
||||
return ApplicationAssetsStore.getFetchingIds();
|
||||
});
|
||||
const value24 = fluxModule.useStateFromStoresArray([SKUStore], function() {
|
||||
return SKUStore.getFetchingSkuIds();
|
||||
});
|
||||
const value25 = fluxModule.useStateFromStoresArray([EmbeddedActivitiesStore], function() {
|
||||
return EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel(id).map(_fun86373).filter(require(dependencyMap[60]).isNotNullish);
|
||||
}, [id2]);
|
||||
const value26 = fluxModule.useStateFromStoresArray([EmbeddedActivitiesStore, PresenceStore], _fun86374);
|
||||
const value27 = fluxModule.useStateFromStoresArray([EmbeddedActivitiesStore], function() {
|
||||
var value2 = new global.Set();
|
||||
var env0_0 = value2;
|
||||
EmbeddedActivitiesStore.getEmbeddedActivitiesByChannel().forEach(_fun86378);
|
||||
return global.Array.from(value2);
|
||||
});
|
||||
const value28 = fluxModule.useStateFromStoresArray([EmbeddedActivitiesStore], _fun86381);
|
||||
const mediaPostEmbeds = fluxModule.useStateFromStores([MediaPostEmbedStore], function() {
|
||||
return MediaPostEmbedStore.getMediaPostEmbeds();
|
||||
});
|
||||
const value29 = fluxModule.useStateFromStores([GuildTemplateStore], function() {
|
||||
return GuildTemplateStore.getGuildTemplates();
|
||||
}, []);
|
||||
const value30 = fluxModule.useStateFromStores([BuildOverrideStore], function() {
|
||||
return BuildOverrideStore.getBuildOverrides();
|
||||
}, []);
|
||||
const value31 = (require(10563) /* metro dependency 10563: useCodedLinksExperimentEmbeds */).useCodedLinksExperimentEmbeds();
|
||||
const {quests,
|
||||
isFetchingCurrentQuests} = (require(9483) /* metro dependency 9483: QuestHooks */).useQuests({'fetchPolicy': 'cache-or-network',
|
||||
'callerSource': 'messages_native'});
|
||||
const value34 = value3.filter(function({type}) {
|
||||
return type === MessageTypes.PREMIUM_REFERRAL;
|
||||
}).map(function(a0) {
|
||||
return a0.referralTrialOfferId;
|
||||
});
|
||||
const env0_6 = value34.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
const value35 = fluxModule.useStateFromStoresArray([ReferralTrialStore], _fun86387);
|
||||
const value36 = (require(7063) /* metro dependency 7063: useTrialOffer */).useTrialOffer(PREMIUM_TIER_2_REFERRAL_TRIAL_ID);
|
||||
const value37 = fluxModule.useStateFromStores([UserStore], function() {
|
||||
return importDefault(dependencyMap[68]).isPremiumExactly(UserStore.getCurrentUser(), PremiumTypes.TIER_2);
|
||||
});
|
||||
const value38 = fluxModule.useStateFromStores([EditMessageStore], function() {
|
||||
return EditMessageStore.getEditingMessageId(id);
|
||||
}, [id2]);
|
||||
const value39 = fluxModule.useStateFromStores([PendingReplyStore], _fun86391, [id2]);
|
||||
const value40 = fluxModule.useStateFromStores([ReadStateStore], function() {
|
||||
return ReadStateStore.getOldestUnreadMessageId(id);
|
||||
}, [id2]);
|
||||
const value41 = fluxModule.useStateFromStores([GuildVerificationStore], _fun86393, [guildId]);
|
||||
const value42 = fluxModule.useStateFromStores([PermissionStore], function() {
|
||||
var SEND_MESSAGES = Permissions.SEND_MESSAGES;
|
||||
return PermissionStore.can(SEND_MESSAGES, channel);
|
||||
}, [channel]);
|
||||
const value43 = (importDefault(8214) /* metro dependency 8214: useIsCallActive */)(id2);
|
||||
const value44 = fluxModule.useStateFromStores([VoiceStateStore], _fun86395, [value5]);
|
||||
const value45 = fluxModule.useStateFromStores([RTCConnectionStore], function() {
|
||||
return RTCConnectionStore.getChannelId();
|
||||
}, []);
|
||||
const value46 = fluxModule.useStateFromStores([ReferencedMessageStore], function() {
|
||||
var value3 = ChannelTypesSets.THREADS.has(channel.type);
|
||||
var value4 = null;
|
||||
return value3 && value4 != channel.parent_id ? ReferencedMessageStore.getMessageByReference({channel_id: channel.parent_id,
|
||||
|
||||
message_id: channel.id, guild_id: channel.guild_id}).message : value4;
|
||||
}, [channel]);
|
||||
const {resolvingGiftCodes, resolvedGiftCodes,
|
||||
acceptingGiftCodes} = fluxModule.useStateFromStoresObject([GiftCodeStore], function() {
|
||||
var object = {};
|
||||
object.resolvingGiftCodes = GiftCodeStore.getResolvingCodes();
|
||||
object.resolvedGiftCodes = GiftCodeStore.getResolvedCodes();
|
||||
object.acceptingGiftCodes = GiftCodeStore.getAcceptingCodes();
|
||||
return object;
|
||||
}, []);
|
||||
const value48 = fluxModule.useStateFromStores([ChannelRTCStore], function() {
|
||||
return ChannelRTCStore.getParticipants(id).length;
|
||||
}, [id2]);
|
||||
const value49 = fluxModule.useStateFromStores([UploadStore], function() {
|
||||
return UploadStore.getFiles(id);
|
||||
}, [id2]);
|
||||
const value50 = fluxModule.useStateFromStores([ReferencedMessageStore], function() {
|
||||
return ReferencedMessageStore.getReplyIdsForChannel(id);
|
||||
}, [id2]);
|
||||
const {useReducedMotion, roleStyle, officialMessageStyle, saturation,
|
||||
displayNameStylesEnabled} = fluxModule.useStateFromStoresObject([AccessibilityStore], function() {
|
||||
return {useReducedMotion: AccessibilityStore.useReducedMotion, roleStyle: AccessibilityStore.roleStyle,
|
||||
officialMessageStyle: AccessibilityStore.officialMessageStyle, saturation: AccessibilityStore.saturation,
|
||||
displayNameStylesEnabled: AccessibilityStore.displayNameStylesEnabled};
|
||||
}, []);
|
||||
const value52 = fluxModule.useStateFromStores([ThreadMessageStore], function() {
|
||||
return ThreadMessageStore.getChannelThreadsVersion(id);
|
||||
}, [id2]);
|
||||
const value53 = fluxModule.useStateFromStoresObject([InteractionStore], function() {
|
||||
return InteractionStore.getMessageInteractionStates();
|
||||
});
|
||||
const moduleValue39 = fluxModule;
|
||||
useStateFromStores = moduleValue39.useStateFromStores;
|
||||
const value54 = binding(Reflect.apply(useStateFromStores, moduleValue39, [[LocalInteractionComponentStateStore],
|
||||
_fun86405, [], (require(6274) /* metro dependency 6274: SecondaryIndexMapUtils */).isVersionEqual]), 2);
|
||||
const property2 = value54[0];
|
||||
const property3 = value54[1];
|
||||
const hasLoadedExperiments = fluxModule.useStateFromStores([ExperimentStore], function() {
|
||||
return ExperimentStore.hasLoadedExperiments;
|
||||
});
|
||||
const value55 = (require(11291) /* metro dependency 11291: useIsSpamMessageRequest */).useIsSpamMessageRequest(channel.id);
|
||||
const value56 = (require(11292) /* metro dependency 11292: useIsMessageRequest */).useIsMessageRequest(channel.id);
|
||||
const r49 = value3 != null && (value3.ready || value3.cached);
|
||||
const r98 = value3 != null && value3.cached;
|
||||
const r97 = value3 != null && value3.ready && !value3.loadingMore;
|
||||
const rsvpVersion = fluxModule.useStateFromStores([GuildScheduledEventStore], function() {
|
||||
return GuildScheduledEventStore.getRsvpVersion();
|
||||
});
|
||||
const messagesVersion = fluxModule.useStateFromStores([GuildAutomodMessageStore], function() {
|
||||
return GuildAutomodMessageStore.getMessagesVersion();
|
||||
});
|
||||
const communicationDisabledVersion = fluxModule.useStateFromStores([GuildMemberStore], function() {
|
||||
return GuildMemberStore.getCommunicationDisabledVersion();
|
||||
});
|
||||
const value61 = fluxModule.useStateFromStoresObject([GuildMemberStore], _fun86410, [guildId, value3]);
|
||||
const value62 = fluxModule.useStateFromStores([PermissionStore], function() {
|
||||
var MODERATE_MEMBERS = Permissions.MODERATE_MEMBERS;
|
||||
return PermissionStore.can(MODERATE_MEMBERS, guild);
|
||||
});
|
||||
const useUserCommunicationDisabledModule = require(8229) /* metro dependency 8229: useUserCommunicationDisabled */;
|
||||
const useCurrentUserCommunicationDisabled = useUserCommunicationDisabledModule.useCurrentUserCommunicationDisabled;
|
||||
const property4 = env0_3(Reflect.apply(useCurrentUserCommunicationDisabled, useUserCommunicationDisabledModule,
|
||||
[guild == null ? value2 : guild.id]), 2)[1];
|
||||
const locale = fluxModule.useStateFromStores([LocaleStore], function() {
|
||||
return LocaleStore.locale;
|
||||
});
|
||||
const value64 = (require(7035) /* metro dependency 7035: BlockedPaymentsCountryExperiment */).useIsPaymentsBlocked();
|
||||
const value65 = fluxModule.useStateFromStores([JoinedThreadsStore], _fun86414);
|
||||
const value66 = fluxModule.useStateFromStores([MediaPostSharePromptStore], function() {
|
||||
return MediaPostSharePromptStore.shouldDisplayPrompt(id);
|
||||
});
|
||||
const value67 = fluxModule.useStateFromStores([PushFeedbackStore], function() {
|
||||
return PushFeedbackStore.isEligible();
|
||||
});
|
||||
const lazyCacheStatus = fluxModule.useStateFromStores([CacheStore], function() {
|
||||
return CacheStore.getLazyCacheStatus();
|
||||
});
|
||||
const value68 = (require(11333) /* metro dependency 11333: getMessageJumpData */).useMessageJumpAndroidKeyboardHeight();
|
||||
const value69 = (importDefault(4022) /* metro dependency 4022: useKeyboardType */)();
|
||||
const value71 = fluxModule.useStateFromStores([SummaryStore], _fun86418,
|
||||
[(require(9867) /* metro dependency 9867: ChannelSummariesExperiment */).useChannelSummariesExperiment(channel),
|
||||
channel.id]);
|
||||
binding = env0_4;
|
||||
binding.useEffect(_fun86419, [channel.id, value3.hasMoreAfter, value3.hasMoreBefore, value3.length, value3.ready]);
|
||||
const value72 = (require(9854) /* metro dependency 9854: MessageImpressionAnalyticsHelpers */).useShouldTrackAnnouncementMessageViews({guild: guild,
|
||||
channel: channel, messages: value3, isMessagesReady: r49});
|
||||
const value73 = (require(9854) /* metro dependency 9854: MessageImpressionAnalyticsHelpers */).useShouldTrackRichPresenceInviteEmbedViews({messages: value3,
|
||||
isMessagesReady: r49});
|
||||
const value74 = (require(9854) /* metro dependency 9854: MessageImpressionAnalyticsHelpers */).useShouldTrackOfficialMessageViews({guild: guild,
|
||||
messages: value3, isMessagesReady: r49});
|
||||
const value75 = (require(9854) /* metro dependency 9854: MessageImpressionAnalyticsHelpers */).useShouldTrackVoiceInviteEmbedViews({messages: value3,
|
||||
isMessagesReady: r49});
|
||||
const value76 = (require(11334) /* metro dependency 11334: computeGlobalSpoilerDisplay */).useShouldDisplaySpoilerObscurity(channel);
|
||||
const value77 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).useIsAgeVerified();
|
||||
binding.useEffect(_fun86420, [id2, guildId]);
|
||||
const value78 = (require(8357) /* metro dependency 8357: ComponentStateContext */).useShouldDisableInteractiveComponents(channel.id);
|
||||
const value79 = useChannelPollInteractions(channel.id);
|
||||
value3.forEach(_fun86422);
|
||||
const value80 = useMessagePollInteractions([]);
|
||||
const value81 = fluxModule.useStateFromStores([ExplicitMediaStore], function() {
|
||||
return ExplicitMediaStore.getChannelFpInfo(id);
|
||||
}, [id2]);
|
||||
const value82 = (importDefault(11335) /* metro dependency 11335: useChatWidth */)();
|
||||
const {unloadedContentEntryMessageIds,
|
||||
unloadableContentEntryMessageIds} = (importDefault(11338) /* metro dependency 11338: useLoadMessageContentEntries */)(value3);
|
||||
const value84 = fluxModule.useStateFromStores([UserStore], _fun86424);
|
||||
const version = fluxModule.useStateFromStores([BasicGuildStore], function() {
|
||||
return BasicGuildStore.getVersion();
|
||||
});
|
||||
const value85 = (require(8372) /* metro dependency 8372: useAvatarColor */).useColorStore(function(a0) {
|
||||
var Object = global.Object;
|
||||
return Object.keys(a0.palette).length;
|
||||
});
|
||||
const guildEmoji = fluxModule.useStateFromStores([EmojiStore], _fun86427);
|
||||
const value86 = fluxModule.useStateFromStores([VoiceStateStore], _fun86428, [guildId]);
|
||||
const value87 = fluxModule.useStateFromStoresObject([SortedVoiceStateStore, VoiceChannelStartTimeStore, InviteStore,
|
||||
ChannelStore], _fun86429);
|
||||
const value88 = fluxModule.useStateFromStoresArray([SessionsStore], function() {
|
||||
var value2 = SessionsStore.getRemoteActivities();
|
||||
var items = [];
|
||||
arraySpread(items, SessionsStore.getHiddenActivities(), arraySpread(items, value2, 0, SessionsStore),
|
||||
SessionsStore);
|
||||
return items.filter(require(dependencyMap[60]).isNotNullish);
|
||||
});
|
||||
const value89 = fluxModule.useStateFromStoresObject([ActivityLauncherStore], _fun86432);
|
||||
const value90 = fluxModule.useStateFromStoresArray([AuthorizedAppsStore], _fun86434, []);
|
||||
const value91 = fluxModule.useStateFromStores([UserStore], _fun86435);
|
||||
(require(10572) /* metro dependency 10572: createSocialLayerStorefrontProductDetailsEmbed */).useFetchSocialLayerStorefrontProductDetailsEmbedData(value3);
|
||||
const StartupProfiler = importDefault(11340) /* metro dependency 11340: StartupProfiler */;
|
||||
const Profiles = (require(11340) /* metro dependency 11340: StartupProfiler */).Profiles;
|
||||
const Messages = Profiles.Messages;
|
||||
return (
|
||||
<StartupProfiler profile={Messages}>
|
||||
{channel.isThread() && ((Component) => <Component absolute />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */)}
|
||||
{((Component) => <Component ref={a1} theme={value15} saturation={saturation} isStaff={value84} animateEmoji={value11} animateStickers={value12} containerWidth={value82} gifAutoPlay={value13} timestampHourCycle={value14} inlineAttachmentMedia={value6} inlineEmbedMedia={value7} renderEmbeds={value8} renderReactions={value9} developerMode={value10} roleStyle={roleStyle} officialMessageStyle={officialMessageStyle} guildId={guildId} currentUserId={value5} channelId={id2} isMessagesReady={r49} isMessagesCached={r98} isMessagesAckable={r97} isMessageRequest={value56} isSpamMessageRequest={value55} messageAuthorActivities={value17} invites={value20} appDirectoryEmbedApplications={appDirectoryEmbedApplications} invalidAppDirectoryEmbedApplicationIds={invalidAppDirectoryEmbedApplicationIds} invalidApplicationIds={value22} applicationAssetFetchingIds={value23} messages={value3} messagesWithActivitiesLaunching={value28} activityInstanceIds={value25} activityParticipants={value27} activityInstancePresenceDetails={value26} appDirectoryEmbedApplicationFetchStates={appDirectoryEmbedApplicationFetchStates} mediaPostPreviewEmbeds={mediaPostEmbeds} guildTemplates={value29} buildOverrides={value30} fetchingSkuIds={value24} experimentEmbeds={value31} quests={quests} isFetchingCurrentQuests={isFetchingCurrentQuests} editingMessageId={value38} replyingMessageId={value39} oldestUnreadMessageId={value40} canChat={value41} canSendMessages={value42} isCallActive={value43} voiceStatePrivateChannelId={value44} currentClientVoiceChannelId={value45} voiceStateChannelIdSummaryForGuild={value86} resolvingGiftCodes={resolvingGiftCodes} resolvedGiftCodes={resolvedGiftCodes} acceptingGiftCodes={acceptingGiftCodes} participantsLength={value48} uploads={value49} repliedIds={value50} useReducedMotion={useReducedMotion} displayNameStylesEnabled={displayNameStylesEnabled} channelThreadsVersion={value52} rsvpVersion={rsvpVersion} failedMessagesVersion={messagesVersion} communicationDisabledVersion={communicationDisabledVersion} messageAuthorMembers={value61} forwardGuildsVersion={version} interactionStates={value53} interactionComponentStates={property2} interactionComponentStatesVersion={property3} hasLoadedExperiments={hasLoadedExperiments && r49} guildSystemChannelFlags={systemChannelFlags} currentUserCommunicationDisabled={property4} renderCommunicationDisabled={value62} userSettingsLocale={locale} paymentsBlocked={value64} isFollowingForumPost={value65} showMediaPostSharePrompt={value66} showPushFeedback={value67} cacheStoreLoaded={lazyCacheStatus !== 'initializing'} androidKeyboardHeight={value68} selectedSummary={value71} keyboardType={value69} shouldTrackAnnouncementMessageViews={value72} shouldTrackRichPresenceInviteEmbedViews={value73} shouldTrackOfficialMessageViews={value74} shouldTrackVoiceInviteEmbedViews={value75} shouldObscureSpoiler={value76} shouldDisableInteractiveComponents={value78} channelPolls={value79} messageReferencePolls={value80} explicitMediaFalsePositiveInfo={value81} threadStartingReferenceMessage={value46} unloadedContentEntryMessageIds={unloadedContentEntryMessageIds} unloadableContentEntryMessageIds={unloadableContentEntryMessageIds} resolvedReferralTrialOfferIds={value35} referralTrialOfferId={value36 == null ? value2 : value36.id} isPremiumTier2User={value37} activityInviteMessageIds={property} guildInviteColorsFetched={value85} isAgeVerified={value77} guildEmojis={guildEmoji} enableSwipeActions={value16} selfActivities={value88} activityLaunchJoinStates={value89} authorizedAppsTokens={value90} currentUserDisplayNameStyles={value91} voiceInviteDataByChannelId={value87} officialMessageColor={(guild == null ? value2 : guild.officialMessageColor) ?? value2} {...a0} />)(importDefault(11341) /* metro dependency 11341: MessagesRenderer */)}
|
||||
</StartupProfiler>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun86355() { // fn#86355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2052, offset: 0x01f93b0f, size: 27 bytes, params: 1, frame: 11
|
||||
return GuildStore.getGuild(env0_3);
|
||||
}
|
||||
|
||||
function useMessageAuthorActivities_86358(a0) { // fn#86358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2650, offset: 0x01f93b4c, size: 110 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PresenceStore], _fun86361,
|
||||
[env1_4.useMemo(function() {
|
||||
var object = {};
|
||||
object.forEach(_fun86360);
|
||||
return object;
|
||||
}, [a0])]);
|
||||
}
|
||||
|
||||
function useFetchMessageApplications_86363(a0) { // fn#86363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2928, offset: 0x01f93c63, size: 94 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_4;
|
||||
value = binding.useMemo(function() {
|
||||
var value2 = new global.Set();
|
||||
value2.forEach(_fun86365);
|
||||
return global.Array.from(value2);
|
||||
}, [a0]);
|
||||
const env0_2 = binding.useRef([]);
|
||||
binding.useEffect(_fun86366, [value]);
|
||||
}
|
||||
|
||||
function _fun86372() { // fn#86372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4113, offset: 0x01f93e82, size: 84 bytes, params: 1, frame: 13
|
||||
const getEmbeddedActivitiesForChannel = EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel;
|
||||
const value4 = Reflect.apply(getEmbeddedActivitiesForChannel, EmbeddedActivitiesStore, [id]).map(function(a0) {
|
||||
return a0.launchId;
|
||||
});
|
||||
return value4.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
}
|
||||
|
||||
function _fun86374() { // fn#86374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4258, offset: 0x01f93ee1, size: 92 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
const closure = _loop_86375;
|
||||
let value = environment.__proto__;
|
||||
const _createForOfIteratorHelperLoose_86350Binding = _createForOfIteratorHelperLoose_86350;
|
||||
value = EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel(id);
|
||||
value = _createForOfIteratorHelperLoose_86350Binding(value);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
for (r2 = value2; true; r2 = value4) {
|
||||
value3 = r2.value;
|
||||
closure(value3);
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
function _fun86377() { // fn#86377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4620, offset: 0x01f93fea, size: 88 bytes, params: 1, frame: 13
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
EmbeddedActivitiesStore.getEmbeddedActivitiesByChannel().forEach(function(a0, a1) {
|
||||
var env0_0 = a1;
|
||||
a0.forEach(_fun86379);
|
||||
});
|
||||
const Array = global.Array;
|
||||
return Array.from(set);
|
||||
}
|
||||
|
||||
function _fun86381() { // fn#86381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4823, offset: 0x01f940be, size: 152 bytes, params: 1, frame: 21
|
||||
var r2;
|
||||
var r10;
|
||||
var value5;
|
||||
var value6;
|
||||
var property;
|
||||
var isLaunching;
|
||||
var componentId;
|
||||
var value7;
|
||||
var length;
|
||||
var value8;
|
||||
var push;
|
||||
var value9;
|
||||
const items2 = [];
|
||||
const value3 = _createForOfIteratorHelperLoose_86350(EmbeddedActivitiesStore.getLaunchStates());
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r2 = value4;
|
||||
while (true) {
|
||||
value5 = r2.value;
|
||||
value6 = env1_3(value5, 2);
|
||||
value6[0];
|
||||
property = value6[1];
|
||||
isLaunching = property.isLaunching;
|
||||
if (isLaunching) {
|
||||
value7 = property.componentId != null;
|
||||
r10 = value7;
|
||||
} else {
|
||||
r10 = isLaunching;
|
||||
}
|
||||
if (!r10) {
|
||||
continue;
|
||||
}
|
||||
componentId = property.componentId;
|
||||
length = componentId.length;
|
||||
value8 = length > 0;
|
||||
r10 = value8;
|
||||
if (!r10) {
|
||||
continue;
|
||||
}
|
||||
push = items2.push;
|
||||
componentId = property.componentId;
|
||||
Reflect.apply(push, items2, [componentId]);
|
||||
value9 = value3();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value9;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun86387() { // fn#86387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:5577, offset: 0x01f941bb, size: 69 bytes, params: 1, frame: 13
|
||||
const value = env0_6.map(_fun86388);
|
||||
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
}
|
||||
|
||||
function _fun86391() { // fn#86391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:5938, offset: 0x01f94282, size: 48 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = PendingReplyStore.getPendingReply(id);
|
||||
return value == null ? undefined : value.message.id;
|
||||
}
|
||||
|
||||
function _fun86393() { // fn#86393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:6132, offset: 0x01f942cf, size: 40 bytes, params: 1, frame: 12
|
||||
return env0_3 != null && GuildVerificationStore.canChatInGuild(env0_3);
|
||||
}
|
||||
|
||||
function _fun86395() { // fn#86395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:6303, offset: 0x01f9431d, size: 32 bytes, params: 1, frame: 13
|
||||
return VoiceStateStore.getUserVoiceChannelId(ME, env0_5);
|
||||
}
|
||||
|
||||
function _fun86405() { // fn#86405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:7615, offset: 0x01f944d0, size: 45 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
const items2 = [LocalInteractionComponentStateStore.getInteractionComponentStates()];
|
||||
const getInteractionComponentStateVersion = LocalInteractionComponentStateStore.getInteractionComponentStateVersion;
|
||||
items2[1] = Reflect.apply(getInteractionComponentStateVersion, LocalInteractionComponentStateStore, []);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun86410() { // fn#86410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:8251, offset: 0x01f9454b, size: 56 bytes, params: 1, frame: 12
|
||||
if (env0_3 != null) {
|
||||
if (env0_1 == null) {
|
||||
return {};
|
||||
}
|
||||
env0_1.forEach(_fun86411);
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
function _fun86414() { // fn#86414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:8731, offset: 0x01f94618, size: 50 bytes, params: 1, frame: 12
|
||||
const isForumPost2 = channel.isForumPost();
|
||||
return isForumPost2 ? JoinedThreadsStore.hasJoined(id) : !!isForumPost2;
|
||||
}
|
||||
|
||||
function _fun86418() { // fn#86418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:9115, offset: 0x01f9468b, size: 41 bytes, params: 1, frame: 12
|
||||
return env0_7 ? SummaryStore.selectedSummary(channel.id) : null;
|
||||
}
|
||||
|
||||
function _fun86419() { // fn#86419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:9178, offset: 0x01f946b4, size: 142 bytes, params: 1, frame: 18
|
||||
var value4;
|
||||
var defaultImport;
|
||||
const ready = env0_1.ready;
|
||||
let r1 = ready ? env0_1.length !== 0 : !ready;
|
||||
r1 = !r1 ? env0_1.hasMoreBefore : r1;
|
||||
r1 = !r1 ? env0_1.hasMoreAfter : r1;
|
||||
if (!r1) {
|
||||
value4 = environment.__proto__;
|
||||
defaultImport = importDefault(9764) /* metro dependency 9764: DimensionActionCreators */;
|
||||
defaultImport.updateChannelDimensions(channel.id, global.Date.now(), 1, 1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun86420() { // fn#86420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:9833, offset: 0x01f94742, size: 46 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(9855) /* metro dependency 9855: MessageViewTrackingManager */).handleChannelSelect();
|
||||
return _fun86421;
|
||||
}
|
||||
|
||||
function _fun86422({messageReference}) { // fn#86422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10009, offset: 0x01f94795, size: 51 bytes, params: 2, frame: 13
|
||||
const message_id = messageReference?.message_id;
|
||||
if (message_id != null) {
|
||||
env0_8.push(message_id);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun86424() { // fn#86424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10321, offset: 0x01f947e5, size: 49 bytes, params: 1, frame: 11
|
||||
var r1;
|
||||
let value = environment.__proto__;
|
||||
value = UserStore.getCurrentUser();
|
||||
if (value == null) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = value.isStaff();
|
||||
r1 = value;
|
||||
}
|
||||
return r1 != null && r1;
|
||||
}
|
||||
|
||||
function _fun86427() { // fn#86427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10564, offset: 0x01f9484b, size: 27 bytes, params: 1, frame: 11
|
||||
return EmojiStore.getGuildEmoji(env0_3);
|
||||
}
|
||||
|
||||
function _fun86428() { // fn#86428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10628, offset: 0x01f94866, size: 72 bytes, params: 1, frame: 13
|
||||
if (env0_3 == null) {
|
||||
return null;
|
||||
}
|
||||
return (require(9835) /* metro dependency 9835: MessagesUtils */).getVoiceStateChannelSummaryFromVoiceStates(VoiceStateStore.getVoiceStates(env0_3));
|
||||
}
|
||||
|
||||
function _fun86429() { // fn#86429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10806, offset: 0x01f948ae, size: 341 bytes, params: 1, frame: 35
|
||||
var environment;
|
||||
var r5;
|
||||
var id;
|
||||
var r22;
|
||||
var value8;
|
||||
var channel;
|
||||
var moduleValue;
|
||||
var isVoiceChannelInvite;
|
||||
var id2;
|
||||
var guild;
|
||||
var voiceStatesForChannelAlt;
|
||||
var value10;
|
||||
var value11;
|
||||
var getStartTime;
|
||||
var getChannel;
|
||||
var value12;
|
||||
var value13;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const _createForOfIteratorHelperLoose_86350Binding = _createForOfIteratorHelperLoose_86350;
|
||||
const value3 = InviteStore.getInvites().values();
|
||||
const value4 = undefined;
|
||||
const value5 = _createForOfIteratorHelperLoose_86350Binding(value3);
|
||||
const value6 = value5();
|
||||
let done = value6.done;
|
||||
const value7 = '';
|
||||
if (!done) {
|
||||
r5 = value6;
|
||||
while (true) {
|
||||
value8 = r5.value;
|
||||
channel = value8.channel;
|
||||
id = channel == null ? value4 : channel.id;
|
||||
if (id == null) {
|
||||
continue;
|
||||
}
|
||||
moduleValue = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
isVoiceChannelInvite = moduleValue.isVoiceChannelInvite;
|
||||
if (!Reflect.apply(isVoiceChannelInvite, moduleValue, [value8])) {
|
||||
continue;
|
||||
}
|
||||
channel = value8.channel;
|
||||
id2 = channel.id;
|
||||
guild = value8.guild;
|
||||
if (guild == null) {
|
||||
id = value4;
|
||||
continue;
|
||||
}
|
||||
id = guild.id;
|
||||
voiceStatesForChannelAlt = SortedVoiceStateStore.getVoiceStatesForChannelAlt(id2, id);
|
||||
value10 = voiceStatesForChannelAlt.map(function(a0) {
|
||||
var value = '';
|
||||
return value + (a0.voiceState.selfStream ? '*' : value) + a0.user.id;
|
||||
});
|
||||
value11 = value10.join(',');
|
||||
getStartTime = VoiceChannelStartTimeStore.getStartTime;
|
||||
getChannel = ChannelStore.getChannel;
|
||||
value12 = Reflect.apply(getStartTime, VoiceChannelStartTimeStore, [Reflect.apply(getChannel, ChannelStore,
|
||||
[id2])]);
|
||||
if (value12 != null) {
|
||||
r22 = value12;
|
||||
continue;
|
||||
}
|
||||
r22 = value7;
|
||||
continue;
|
||||
object2[id2] = value7 + value11 + ':' + r22;
|
||||
value13 = value5();
|
||||
done = value13.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r5 = value13;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun86432() { // fn#86432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:11409, offset: 0x01f94a96, size: 32 bytes, params: 1, frame: 13
|
||||
return env0_9.reduce(_fun86433, {});
|
||||
}
|
||||
|
||||
function _fun86434() { // fn#86434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:11603, offset: 0x01f94afd, size: 43 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
const items2 = [AuthorizedAppsStore.getNewestTokens()];
|
||||
const getApplicationFetchStateVersion = AuthorizedAppsStore.getApplicationFetchStateVersion;
|
||||
items2[1] = Reflect.apply(getApplicationFetchStateVersion, AuthorizedAppsStore, []);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun86435() { // fn#86435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:11708, offset: 0x01f94b28, size: 35 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return UserStore.getCurrentUser()?.displayNameStyles;
|
||||
}
|
||||
|
||||
function _fun86359() { // fn#86359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2706, offset: 0x01f93bba, size: 34 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
object2.forEach(_fun86360);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun86361() { // fn#86361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2857, offset: 0x01f93c15, size: 55 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
return value.mapValues(env0_1, function(a0, a1) {
|
||||
return PresenceStore.getPrimaryActivity(a1);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun86364() { // fn#86364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2985, offset: 0x01f93cc1, size: 76 bytes, params: 1, frame: 13
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
set.forEach(_fun86365);
|
||||
const Array = global.Array;
|
||||
return Array.from(set);
|
||||
}
|
||||
|
||||
function _fun86366() { // fn#86366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:3145, offset: 0x01f93d44, size: 174 bytes, params: 1, frame: 19
|
||||
var defaultImport;
|
||||
var fetchApplications;
|
||||
var defaultImport2;
|
||||
var value3;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const shallowEqualModule = require(628) /* metro dependency 628: shallowEqual */;
|
||||
const areArraysShallowEqual = shallowEqualModule.areArraysShallowEqual;
|
||||
let binding = env0_1;
|
||||
if (!Reflect.apply(areArraysShallowEqual, shallowEqualModule, [binding, env0_2.current])) {
|
||||
defaultImport = importDefault(6772) /* metro dependency 6772: ApplicationActionCreators */;
|
||||
fetchApplications = defaultImport.fetchApplications;
|
||||
defaultImport2 = importDefault(22) /* metro dependency 22 */;
|
||||
binding = env0_1;
|
||||
value3 = defaultImport2(binding);
|
||||
value = value3.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
value = value.uniq();
|
||||
value = value.value();
|
||||
Reflect.apply(fetchApplications, defaultImport, [value, false]);
|
||||
env0_2.current = binding;
|
||||
}
|
||||
}
|
||||
|
||||
function _loop_86375(a0) { // fn#86375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4284, offset: 0x01f93f3d, size: 146 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
var binding;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const findActivity = PresenceStore.findActivity;
|
||||
const userIds = a0.userIds;
|
||||
value = Reflect.apply(userIds.values().next, value, []).value;
|
||||
value = Reflect.apply(findActivity, PresenceStore, [value, _fun86376]);
|
||||
const value2 = undefined;
|
||||
if ((value == null ? value2 : value.details) != null) {
|
||||
binding = env0_0;
|
||||
binding.push('' + a0.launchId + ':' + value.details);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun86378(a0, a1) { // fn#86378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4690, offset: 0x01f94042, size: 33 bytes, params: 3, frame: 11
|
||||
const env0_0 = a1;
|
||||
a0.forEach(function({userIds}) {
|
||||
userIds.forEach(_fun86380);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun86388(a0) { // fn#86388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:5589, offset: 0x01f94200, size: 39 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ReferralTrialStore.getRelevantUserTrialOffer(a0)?.id;
|
||||
}
|
||||
|
||||
function _fun86411(a0) { // fn#86411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:8315, offset: 0x01f94583, size: 96 bytes, params: 2, frame: 16
|
||||
var value2;
|
||||
var getMember;
|
||||
var value3;
|
||||
var value4;
|
||||
const author = a0.author;
|
||||
const value = undefined;
|
||||
if ((author == null ? value : author.id) != null) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
getMember = GuildMemberStore.getMember;
|
||||
value3 = environment.__proto__;
|
||||
value4 = Reflect.apply(getMember, GuildMemberStore, [env1_3, a0.author.id]);
|
||||
if (value4 != null) {
|
||||
env0_0[a0.author.id] = value4;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun86421() { // fn#86421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:9869, offset: 0x01f94770, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9855) /* metro dependency 9855: MessageViewTrackingManager */).handleChannelSelect();
|
||||
}
|
||||
|
||||
function _fun86433(a0, a1) { // fn#86433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:11424, offset: 0x01f94ab6, size: 71 bytes, params: 3, frame: 16
|
||||
let application_id = a1.application_id;
|
||||
if (application_id != null) {
|
||||
var value = environment.__proto__.__proto__;
|
||||
var getState = ActivityLauncherStore.getState;
|
||||
application_id = a1.application_id;
|
||||
var JOIN = ActivityActionTypes.JOIN;
|
||||
value = Reflect.apply(getState, ActivityLauncherStore, [application_id, JOIN]);
|
||||
if (value != null) {
|
||||
a0[a1.application_id] = value;
|
||||
}
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun86376({application_id}) { // fn#86376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4350, offset: 0x01f93fcf, size: 27 bytes, params: 2, frame: 2
|
||||
return application_id === env0_0.applicationId;
|
||||
}
|
||||
|
||||
function _fun86379({userIds}) { // fn#86379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4709, offset: 0x01f94063, size: 32 bytes, params: 2, frame: 11
|
||||
userIds.forEach(_fun86380);
|
||||
}
|
||||
|
||||
function _fun86380(a0) { // fn#86380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4732, offset: 0x01f94083, size: 59 bytes, params: 2, frame: 17
|
||||
env2_0.add('' + require + ':' + a0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user