/* Metro module 9963; source: modules/game_profile/GameProfileAnalyticUtils.tsx; dependencies: [9570, 661, 9588, 491, 683, 2] */ function _fun78003(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10149:6, offset: 0x01e156a8, size: 1308 bytes, params: 8, frame: 20 var object2; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const contentInventoryStore = importDefault(9570) /* metro dependency 9570: ContentInventoryStore */; const constantsModule = require(661) /* metro dependency 661: Constants */; const env0_4 = constantsModule.AnalyticEvents; const env0_5 = constantsModule.GuildFeatures; const env0_6 = (require(9588) /* metro dependency 9588: ContentInventoryConstants */).ContentInventoryFeedKey; object2 = {FollowGame: 0}; object2[0] = 'FollowGame'; object2.UnfollowGame = 1; object2[1] = 'UnfollowGame'; object2.ClickMessageUser = 2; object2[2] = 'ClickMessageUser'; object2.SendMessageUser = 3; object2[3] = 'SendMessageUser'; object2.JoinVC = 4; object2[4] = 'JoinVC'; object2.WatchStream = 5; object2[5] = 'WatchStream'; object2.ClickSimilarGame = 6; object2[6] = 'ClickSimilarGame'; object2.WebsiteLink = 7; object2[7] = 'WebsiteLink'; object2.XLink = 8; object2[8] = 'XLink'; object2.YouTubeLink = 9; object2[9] = 'YouTubeLink'; object2.ShowMore = 10; object2[10] = 'ShowMore'; object2.ShowLess = 11; object2[11] = 'ShowLess'; object2.JoinServer = 12; object2[12] = 'JoinServer'; object2.ClickImage = 13; object2[13] = 'ClickImage'; object2.GameShop = 14; object2[14] = 'GameShop'; object2.LinkAccount = 15; object2[15] = 'LinkAccount'; object2.ClaimGame = 16; object2[16] = 'ClaimGame'; object2.FacebookLink = 17; object2[17] = 'FacebookLink'; object2.InstagramLink = 18; object2[18] = 'InstagramLink'; object2.BlueskyLink = 19; object2[19] = 'BlueskyLink'; object2.RedditLink = 20; object2[20] = 'RedditLink'; object2.TwitchLink = 21; object2[21] = 'TwitchLink'; object2.SteamStoreLink = 22; object2[22] = 'SteamStoreLink'; object2.EpicStoreLink = 23; object2[23] = 'EpicStoreLink'; object2.RobloxStoreLink = 24; object2[24] = 'RobloxStoreLink'; object2.BattlenetStoreLink = 25; object2[25] = 'BattlenetStoreLink'; object2.RiotStoreLink = 26; object2[26] = 'RiotStoreLink'; object2.MinecraftStoreLink = 27; object2[27] = 'MinecraftStoreLink'; object2.DiscordCollectiblesShop = 28; object2[28] = 'DiscordCollectiblesShop'; object2.DiscordCollectiblesShopItem = 29; object2[29] = 'DiscordCollectiblesShopItem'; object2.GameShopItem = 30; object2[30] = 'GameShopItem'; object2.SteamReviews = 31; object2[31] = 'SteamReviews'; object2.OpenCriticReviews = 32; object2[32] = 'OpenCriticReviews'; object2.Announcements = 33; object2[33] = 'Announcements'; object2.AnnouncementsItem = 34; object2[34] = 'AnnouncementsItem'; object2.CloudPlay = 35; object2[35] = 'CloudPlay'; object2.ClickTrailer = 36; object2[36] = 'ClickTrailer'; object2.Feedback = 37; object2[37] = 'Feedback'; object2.XboxGamePassStoreLink = 38; object2[38] = 'XboxGamePassStoreLink'; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_profile/GameProfileAnalyticUtils.tsx'); exports.GameProfileTrackActionActions = object2; exports.GameProfileSources = {ActivityCard: 'activity_card', ActivityCardContextMenu: 'activity_card_context_menu', UserProfile: 'user_profile', UserProfileCardContextMenu: 'user_profile_card_context_menu', SimilarGames: 'similar_games', DevTools: 'dev_tools', Embed: 'embed', RtcPanel: 'rtc_panel', FriendsActivityFeed: 'friends_activity_feed', MiniGameProfile: 'mini_game_profile', GameMention: 'game_mention', GameSheet: 'game_sheet', QuestBar: 'quest_bar', QuestHome: 'quest_home_desktop', QuestInGameModal: 'quest_in_game_modal', QuestActivityPanel: 'quest_activity_panel', QuestEmbed: 'quest_embed', QuestLiveStream: 'quest_live_stream', ClipEmbed: 'clip_embed', ClipsReminder: 'clips_reminder', AnnouncementChannelReturn: 'announcement_channel_return', CallTile: 'call_tile', InAppBrowserReturn: 'in_app_browser_return', Deeplink: 'deeplink', DmHeaderActivity: 'dm_header_activity'}; exports.GameProfileTypes = {FullProfile: 'full_profile', MiniProfile: 'mini_profile'}; exports.getGuildIdAndVerifiedFromInvite = function(a0) { var r4; var object = {}; var value = null; var value2 = undefined; r4 = value == a0 || value == a0.guild ? value2 : a0.guild.id; var r2 = value != r4 ? r4 : value; object.guildId = r2; r2 = value == a0 || value == a0.guild ? value2 : a0.guild.features.includes(GuildFeatures.VERIFIED); value = value != r2; object.isVerified = value && r2; return object; }; exports.generateViewId = generateViewId; exports.trackGameProfileOpen = trackGameProfileOpen; exports.trackGameProfileClose = trackGameProfileClose; exports.trackGameProfileAction = trackGameProfileAction; exports.trackGameProfileFeedback = function({viewId, applicationId, suggestedGameName, suggestedGameApplicationId, feedback, submitted}) { var defaultImport = importDefault(dependencyMap[4]); var GAME_PROFILE_FEEDBACK = AnalyticEvents.GAME_PROFILE_FEEDBACK; return defaultImport.track(GAME_PROFILE_FEEDBACK, {view_id: viewId, application_id: applicationId, suggested_game_name: suggestedGameName, suggested_game_application_id: suggestedGameApplicationId, feedback: feedback, submitted: submitted}); }; } function trackGameProfileOpen({viewId, source, gameName, gameId, authorId, profileType}) { // fn#78006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10149:3108, offset: 0x01e15c3c, size: 149 bytes, params: 2, frame: 21 const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const track = defaultImport.track; const GAME_PROFILE_OPEN = AnalyticEvents.GAME_PROFILE_OPEN; const getFeedRequestId = ContentInventoryStore.getFeedRequestId; const GLOBAL_FEED = ContentInventoryFeedKey.GLOBAL_FEED; Reflect.apply(track, defaultImport, [GAME_PROFILE_OPEN, {view_id: viewId, source: source, game_name: gameName, application_id: gameId, author_id: authorId, request_id: Reflect.apply(getFeedRequestId, ContentInventoryStore, [GLOBAL_FEED]), profile_type: profileType}]); return viewId; } function trackGameProfileClose({viewId, gameName, gameId, playedFriendIds, playedFriendsData, similarGames, guildId, isVerified}) { // fn#78007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10149:3361, offset: 0x01e15cd1, size: 181 bytes, params: 2, frame: 23 const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const track = defaultImport.track; const GAME_PROFILE_CLOSE = AnalyticEvents.GAME_PROFILE_CLOSE; const getFeedRequestId = ContentInventoryStore.getFeedRequestId; const GLOBAL_FEED = ContentInventoryFeedKey.GLOBAL_FEED; Reflect.apply(track, defaultImport, [GAME_PROFILE_CLOSE, {view_id: viewId, game_name: gameName, application_id: gameId, played_friend_ids: playedFriendIds, played_friends_data: playedFriendsData, similar_games: similarGames, request_id: Reflect.apply(getFeedRequestId, ContentInventoryStore, [GLOBAL_FEED]), official_guild_id: isVerified ? guildId : undefined, guild_id: guildId}]); } function trackGameProfileAction({gameName, gameId, action, recipientUserId, similarGameId, viewId, guildId, isVerified, source}) { // fn#78008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10149:3718, offset: 0x01e15d86, size: 160 bytes, params: 2, frame: 23 const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const track = defaultImport.track; const GAME_PROFILE_ACTION = AnalyticEvents.GAME_PROFILE_ACTION; Reflect.apply(track, defaultImport, [GAME_PROFILE_ACTION, {game_name: gameName, application_id: gameId, action: action, recipient_user_id: recipientUserId, similar_game_id: similarGameId, view_id: viewId, official_guild_id: isVerified ? guildId : undefined, guild_id: guildId, source: source}]); }