/* Metro module 8878; source: lib/getOnClick.tsx; dependencies: [57, 5, 4234, 4117, 6831, 1226, 1945, 1867, 4097, 1934, 3969, 4896, 661, 663, 694, 4098, 8879, 9037, 1962, 6593, 6837, 9032, 4096, 4101, 4126, 3847, 683, 8091, 9466, 9468, 7860, 4603, 9472, 9476, 9477, 9479, 1471, 9480, 6533, 4127, 5120, 4863, 4246, 10191, 10193, 2] */ import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */ import Module00057 from '../by-id/module-00057.js'; /* Metro dependency 57 */ import AuthenticationStore from '../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */ import URLUtils from '../utils/URLUtils.tsx'; /* Metro dependency 1471 */ import GuildStore from '../stores/GuildStore.tsx'; /* Metro dependency 1867 */ import SelectedChannelStore from '../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */ import GuildMemberStore from '../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */ import OpenURL from './openURL.tsx'; /* Metro dependency 3847 */ import SelectedGuildStore from '../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */ import InviteStore from '../stores/InviteStore.tsx'; /* Metro dependency 4097 */ import GuildScheduledEventStore from '../modules/guild_scheduled_events/GuildScheduledEventStore.tsx'; /* Metro dependency 4117 */ import ApplicationStore from '../modules/applications/ApplicationStore.tsx'; /* Metro dependency 4234 */ import AppAnalyticsUtils from '../modules/app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */ import SortedGuildStore from '../stores/SortedGuildStore.tsx'; /* Metro dependency 4896 */ import SocialLayerStorefrontStore from '../modules/slayer_storefront/SocialLayerStorefrontStore.tsx'; /* Metro dependency 6831 */ import SafeTransitionToNative from '../modules/links/safeTransitionTo.native.tsx'; /* Metro dependency 6837 */ import GetEmbeddedActivitiesManagerNative from '../modules/activities/utils/getEmbeddedActivitiesManager.native.tsx'; /* Metro dependency 8091 */ import SuspiciousDownloadModalActionCreatorsNative from '../modules/suspicious_downloads/SuspiciousDownloadModalActionCreators.native.tsx'; /* Metro dependency 10193 */ import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */ import * as FindCodedLinksModule from '../modules/coded_links/findCodedLinks.tsx'; /* Metro dependency 4096 */ import * as CodedLinkModule from '../modules/coded_links/CodedLink.tsx'; /* Metro dependency 4101 */ import * as QuestContentModule from '../external/discord_common/js/shared/shared-constants/QuestContent.tsx'; /* Metro dependency 6533 */ import * as GetPlayInContextModule from '../modules/applications/message_embed/utils/getPlayInContext.tsx'; /* Metro dependency 9466 */ import * as QuestUtilsNativeModule from '../modules/quests/native/QuestUtils.native.tsx'; /* Metro dependency 9480 */ function _fun69196(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:6, offset: 0x01c6cb7a, size: 427 bytes, params: 8, frame: 19 const env0_0 = require; const openInviteModal = function() { return _openInviteModal.apply(this, arguments); }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); GuildScheduledEventStore; GuildStore; let value = ConstantsModule; value.AbortCodes; const env0_13 = value.AnalyticEvents; value.AppContext; const env0_14 = value.InviteStates; value.JoinGuildSources; value.Routes; value = require(663) /* metro dependency 663: CollectiblesShopConstants */; const env0_15 = value.CollectibleShopTab; const env0_16 = value.CollectiblesMobileShopScreen; object = {skipExtensionCheck: undefined, analyticsLocations: []}; (FileImportTrackerModule).fileFinishedImporting('lib/getOnClick.tsx'); exports.default = getOnClick; function _openInviteModal() { // fn#69198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:467, offset: 0x01c6cd25, size: 50 bytes, params: 1, frame: 14 return Module00005(_fun69200).apply(this, arguments); function* _fun69200(a0, a1, a2) { // fn#69200, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:522, offset: 0x01c6cd62, size: 96 bytes, params: 4, frame: 14 if (true) { value = environment.__proto__.__proto__; value = env2_1(env2_2[14]); yield value.dispatch({type: 'DISPLAYED_INVITE_SHOW', code: a1, username: undefined, deeplinkAttemptId: undefined, invite_instance_id: a2}); } } } function _handleInviteCodedLink() { // fn#69201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:690, offset: 0x01c6cdc2, size: 50 bytes, params: 1, frame: 14 return Module00005(_fun69203).apply(this, arguments); function* _fun69203(a0, a1) { // fn#69203, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:757, offset: 0x01c6cdff, size: 552 bytes, params: 3, frame: 25 var r5; var id; var r8; var roles; var r10; var r7; var state; var flattenedGuildIds; var value15; var id2; var member; var Set; var set; if (false) { return undefined; } value = undefined; let binding = env2_0; const inviteInstanceId = binding(env2_2[15]).getInviteInstanceId(a0.code, a1); const invite = env2_9.getInvite(a0.code); if (invite != null) { r5 = invite; if (r5 == null) { return value; } state = r5.state; if (state === env2_14.EXPIRED) { yield env2_18(r5, a0.code, inviteInstanceId); return value; } state = r5.state; if (state === env2_14.BANNED) { yield env2_18(r5, a0.code, inviteInstanceId); return value; } state = r5.state; if (state !== env2_14.ERROR) { binding = env2_12; flattenedGuildIds = binding.getFlattenedGuildIds(); id = r5 == null || r5.guild == null ? value : r5.guild.id; r8 = id != null && flattenedGuildIds.includes(id); value15 = false; if (r8) { roles = r5.roles; if (roles != null) { roles = r5.roles; if (roles.length > 0) { binding = env2_7; id2 = binding.getId(); binding = env2_8; member = binding.getMember(id, id2); Set = global.Set; roles = member == null ? value : member.roles; r10 = roles ?? []; set = new Set(); roles = r5.roles; r7 = roles.some(_fun69204); } else { r7 = value15; } } else { r7 = value15; } } else { r7 = value15; } if (r8) { if (r7) { yield env2_18(r5, a0.code, inviteInstanceId); return value; } env2_1(env2_2[16]).transitionToInviteSync(r5); return value; } binding = env2_18; yield binding(r5, a0.code, inviteInstanceId); return value; } binding = env2_18; yield binding(r5, a0.code, inviteInstanceId); } else { var value7 = env2_1(env2_2[16]); yield value7.resolveInvite(a0.code, 'Markdown Link', {inviteInstanceId: inviteInstanceId}); var value8 = undefined; if (false) { return value8; } r5 = value8.invite; if (r5 == null) { return value; } state = r5.state; if (state === env2_14.EXPIRED) { yield env2_18(r5, a0.code, inviteInstanceId); return value; } state = r5.state; if (state === env2_14.BANNED) { yield env2_18(r5, a0.code, inviteInstanceId); return value; } state = r5.state; if (state !== env2_14.ERROR) { binding = env2_12; flattenedGuildIds = binding.getFlattenedGuildIds(); id = r5 == null || r5.guild == null ? value : r5.guild.id; r8 = id != null && flattenedGuildIds.includes(id); value15 = false; if (r8) { roles = r5.roles; if (roles != null) { roles = r5.roles; if (roles.length > 0) { binding = env2_7; id2 = binding.getId(); binding = env2_8; member = binding.getMember(id, id2); Set = global.Set; roles = member == null ? value : member.roles; r10 = roles ?? []; set = new Set(); roles = r5.roles; r7 = roles.some(_fun69204); } else { r7 = value15; } } else { r7 = value15; } } else { r7 = value15; } if (r8) { if (r7) { yield env2_18(r5, a0.code, inviteInstanceId); return value; } env2_1(env2_2[16]).transitionToInviteSync(r5); return value; } binding = env2_18; yield binding(r5, a0.code, inviteInstanceId); return value; } yield env2_18(r5, a0.code, inviteInstanceId); } return value; function _fun69204({id}) { // fn#69204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:1258, offset: 0x011289b2, size: 30 bytes, params: 2, frame: 11 const binding = env0_0; return !binding.has(id); } } } function getOnClick(a0) { // fn#69205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:1536, offset: 0x01c6d027, size: 1110 bytes, params: 2, frame: 27 var environment; var r1; var r2; var r13; var r11; var binding; var type; const CodedLinkType = (CodedLinkModule).CodedLinkType; var EMBEDDED_ACTIVITY_INVITE; var APP_DIRECTORY_STOREFRONT; var APP_DIRECTORY_STOREFRONT_SKU; var moduleValue2; var getIsEligibleForQuests; var object; var defaultImport3; var isDiscordLocalhost; var isDiscordLocalhost2; var defaultImport4; var isAppRoute; var APP_OAUTH2_LINK; var moduleValue3; var tryParseEventDetailsPath; var isSuspiciousDownload; var closure; let value = a1; const env0_0 = a0; const value2 = undefined; reducibleJoin2: while (true) { if (value !== value2) { r1 = value; break reducibleJoin2; } value = environment; binding = env0_17; r1 = binding; break reducibleJoin2; } const skipExtensionCheck = r1.skipExtensionCheck; const env0_1 = r1.analyticsLocations; const env0_2 = r1.messageId; var env0_5; value = environment; const codedLink = (FindCodedLinksModule).findCodedLink(a0); const value3 = null; if (value3 != codedLink) { type = codedLink.type; reducibleJoin5: while (true) { reducibleJoin52: while (true) { if (type === CodedLinkType.INVITE) { break reducibleJoin52; } type = codedLink.type; EMBEDDED_ACTIVITY_INVITE = CodedLinkType.EMBEDDED_ACTIVITY_INVITE; if (type === EMBEDDED_ACTIVITY_INVITE) { break reducibleJoin52; } break reducibleJoin5; } return _fun69206; } } if (value3 != codedLink) { type = codedLink.type; reducibleJoin9: while (true) { reducibleJoin51: while (true) { if (type === CodedLinkType.APP_DIRECTORY_PROFILE) { break reducibleJoin51; } type = codedLink.type; APP_DIRECTORY_STOREFRONT = CodedLinkType.APP_DIRECTORY_STOREFRONT; if (type === APP_DIRECTORY_STOREFRONT) { break reducibleJoin51; } type = codedLink.type; APP_DIRECTORY_STOREFRONT_SKU = CodedLinkType.APP_DIRECTORY_STOREFRONT_SKU; if (type === APP_DIRECTORY_STOREFRONT_SKU) { break reducibleJoin51; } break reducibleJoin9; } return _fun69208; } } if (value3 != codedLink) { type = codedLink.type; reducibleJoin11: while (true) { if (type === CodedLinkType.ACTIVITY_BOOKMARK) { return _fun69209; } break reducibleJoin11; } } if (value3 != codedLink) { type = codedLink.type; reducibleJoin13: while (true) { if (type === CodedLinkType.GUILD_PRODUCT) { return _fun69220; } break reducibleJoin13; } } if (value3 != codedLink) { type = codedLink.type; reducibleJoin15: while (true) { if (type === CodedLinkType.SOCIAL_LAYER_STOREFRONT) { return _fun69222; } break reducibleJoin15; } } if (value3 != codedLink) { type = codedLink.type; reducibleJoin17: while (true) { if (type === CodedLinkType.SOCIAL_LAYER_STOREFRONT_APP) { return _fun69224; } break reducibleJoin17; } } if (value3 != codedLink) { type = codedLink.type; reducibleJoin20: while (true) { if (type !== CodedLinkType.QUESTS_EMBED) { break reducibleJoin20; } moduleValue2 = require(9479) /* metro dependency 9479: QuestsEligibility */; getIsEligibleForQuests = moduleValue2.getIsEligibleForQuests; if (Reflect.apply(getIsEligibleForQuests, moduleValue2, [])) { return _fun69226; } break reducibleJoin20; } } if (value3 != codedLink) { type = codedLink.type; reducibleJoin22: while (true) { if (type === CodedLinkType.COLLECTIBLES_SHOP) { return _fun69227; } break reducibleJoin22; } } const value4 = (URLUtils).toURLSafe(a0); reducibleJoin24: while (true) { if (value3 != value4) { r2 = value4; break reducibleJoin24; } r2 = {}; break reducibleJoin24; } const host = r2.host; const hostname = r2.hostname; const pathname = r2.pathname; const search = r2.search; const hash = r2.hash; const defaultImport2 = URLUtils; const isDiscordHostname = defaultImport2.isDiscordHostname; let r9 = value3 != hostname ? hostname : value3; const isDiscordHostname2 = Reflect.apply(isDiscordHostname, defaultImport2, [r9]); reducibleJoin29: while (true) { if (isDiscordHostname2) { r9 = isDiscordHostname2; break reducibleJoin29; } defaultImport3 = defaultImport2; isDiscordLocalhost = defaultImport3.isDiscordLocalhost; r13 = value3 != host ? host : value3; r11 = value3 != hostname ? hostname : value3; isDiscordLocalhost2 = Reflect.apply(isDiscordLocalhost, defaultImport3, [r13, r11]); r9 = isDiscordLocalhost2; break reducibleJoin29; } if (value3 != pathname) { reducibleJoin32: while (true) { if (r9) { defaultImport4 = defaultImport2; isAppRoute = defaultImport4.isAppRoute; if (Reflect.apply(isAppRoute, defaultImport4, [pathname])) { object = {'navigationReplace': false, 'openChannel': true}; env0_5 = object; reducibleJoin42: while (true) { if (value3 == search) { break reducibleJoin42; } object.search = search; break reducibleJoin42; } reducibleJoin44: while (true) { if (value3 == hash) { break reducibleJoin44; } object.hash = hash; break reducibleJoin44; } return _fun69229; } break reducibleJoin32; } break reducibleJoin32; } } reducibleJoin39: while (true) { reducibleJoin37: while (true) { if (value3 == codedLink) { moduleValue3 = require(4246) /* metro dependency 4246: LinkUtils */; moduleValue3.tryParseEventDetailsPath(pathname); if (skipExtensionCheck) { r1 = value2; break reducibleJoin37; } value = require(10191) /* metro dependency 10191: SuspiciousDownloadUtils */; if (value3 == value.isSuspiciousDownload(a0)) { r1 = value2; break reducibleJoin37; } r1 = _fun69231; break reducibleJoin37; } type = codedLink.type; APP_OAUTH2_LINK = CodedLinkType.APP_OAUTH2_LINK; if (type === APP_OAUTH2_LINK) { r1 = _fun69230; break reducibleJoin39; } moduleValue3 = require(4246) /* metro dependency 4246: LinkUtils */; tryParseEventDetailsPath = moduleValue3.tryParseEventDetailsPath; Reflect.apply(tryParseEventDetailsPath, moduleValue3, [pathname]); if (skipExtensionCheck) { r1 = value2; break reducibleJoin37; } value = require(10191) /* metro dependency 10191: SuspiciousDownloadUtils */; isSuspiciousDownload = value.isSuspiciousDownload; if (value3 == Reflect.apply(isSuspiciousDownload, value, [a0])) { r1 = value2; break reducibleJoin37; } closure = _fun69231; r1 = closure; break reducibleJoin37; } break reducibleJoin39; } return r1; function _fun69206(a0) { // fn#69206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:1769, offset: 0x01c6d47d, size: 51 bytes, params: 2, frame: 13 if (a0 != null) { a0.preventDefault(); } (function() { return _handleInviteCodedLink.apply(this, arguments); })(Module00057, messageId); return true; } function _fun69208(a0) { // fn#69208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:2091, offset: 0x01c6d4ce, size: 340 bytes, params: 2, frame: 18 var object; var defaultImport; var track; var APP_DIRECTORY_PROFILE_EMBED_URL_CLICKED; if (a0 != null) { a0.preventDefault(); } const code = Module00057.code; const type = Module00057.type; const value3 = undefined; const CodedLinkType = (CodedLinkModule).CodedLinkType; const APP_DIRECTORY_PROFILE = CodedLinkType.APP_DIRECTORY_PROFILE; const r4 = type === APP_DIRECTORY_PROFILE || Module00057.type === CodedLinkType.APP_DIRECTORY_STOREFRONT ? {applicationId: code, skuId: value3} : (require(4126) /* metro dependency 4126: storefrontMessageEmbedCodedLink */).parseStorefrontSkuCodedLink(code) ?? ({applicationId: value3, skuId: value3}); const applicationId = r4.applicationId; r4.skuId; if (applicationId != null) { defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; track = defaultImport.track; APP_DIRECTORY_PROFILE_EMBED_URL_CLICKED = AnalyticEvents.APP_DIRECTORY_PROFILE_EMBED_URL_CLICKED; object = {application_id: applicationId, device_platform: 'mobile_native', guild_id: SelectedGuildStore.getGuildId() ?? value3}; object.channel_id = SelectedChannelStore.getChannelId(); Reflect.apply(track, defaultImport, [APP_DIRECTORY_PROFILE_EMBED_URL_CLICKED, object]); } (OpenURL)(env0_0); return true; } function _fun69209(a0) { // fn#69209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:2690, offset: 0x01c6d622, size: 473 bytes, params: 2, frame: 23 var environment; var r8; var getCustomActivityLinkParams; var value11; if (a0 != null) { a0.preventDefault(); } const code = env0_3.code; const url = env0_3.url; let value = environment.__proto__; const application = ApplicationStore.getApplication(code); const URL = global.URL; const uRL = new URL(url); let searchParams = uRL.searchParams; const value5 = searchParams.get('referrer_id'); const value6 = undefined; let r0 = value5 ?? value6; var env0_3 = (GetEmbeddedActivitiesManagerNative)(); const playInContext = (GetPlayInContextModule).getPlayInContext(code); const currentChannelId = playInContext.currentChannelId; const env0_5 = playInContext.instanceId; if (playInContext.canLaunchInChannel) { r0 = !playInContext.isCurrentlyInInstance && currentChannelId != null; if (r0) { value = require(9468) /* metro dependency 9468: CustomActivityLinkUtils */; getCustomActivityLinkParams = value.getCustomActivityLinkParams; searchParams = uRL.searchParams; value11 = searchParams.get('link_id'); searchParams = uRL.searchParams; value = Reflect.apply(getCustomActivityLinkParams, value, [code, value11, searchParams.get('custom_id')]); value = value.then(_fun69210()); value.catch(function() { }); value = true; r0 = value; } return r0; } const id = application == null || application.bot == null ? value6 : application.bot.id; const value8 = id != null; if (value8) { value = importDefault(4603) /* metro dependency 4603: ChannelActionCreators */; value = value.openPrivateChannel({recipientIds: id}); value = value.then(_fun69215()); value.catch(function() { }); value = true; r8 = value; } else { r8 = value8; } return r8; function _fun69210() { // fn#69210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:3096, offset: 0x01c6d7fb, size: 36 bytes, params: 1, frame: 12 const env0_0 = env2_4(_fun69212); return _fun69213; async function _fun69212({customId}) { // fn#69212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:3116, offset: 0x01c6d833, size: 158 bytes, params: 2, frame: 18 if (true) { await undefined; if (false) { return undefined; } value = environment.__proto__.__proto__.__proto__.__proto__; value = env4_0(env4_2[30]); await value.runPrimaryAppCommandOrJoinEmbeddedActivity({channelId: pathname, applicationId: env2_0, isStart: env2_5 == null, embeddedActivitiesManager: env2_3, customId: customId, referrerId: messageId, analyticsLocations: importDefault}); } } function _fun69213() { // fn#69213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:3328, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } function _fun69215() { // fn#69215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:3508, offset: 0x01c6d8d1, size: 36 bytes, params: 1, frame: 12 const env0_0 = env2_4(_fun69217); return _fun69218; function* _fun69217(a0) { // fn#69217, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:3528, offset: 0x01c6d900, size: 197 bytes, params: 2, frame: 21 if (true) { value = environment.__proto__.__proto__.__proto__.__proto__; var binding = env4_0; var value3 = binding(env4_2[29]); var getCustomActivityLinkParams = value3.getCustomActivityLinkParams; binding = env2_0; var searchParams = analyticsLocations.searchParams; var get = searchParams.get; var value5 = Reflect.apply(get, searchParams, ['link_id']); searchParams = analyticsLocations.searchParams; get = searchParams.get; yield Reflect.apply(getCustomActivityLinkParams, value3, [binding, value5, Reflect.apply(get, searchParams, ['custom_id'])]); var value6 = undefined; if (false) { return value6; } var customId = value6.customId; value = env4_1(env4_2[32]); value({targetApplicationId: env2_0, channelId: a0, analyticsLocations: importDefault, customId: customId, referrerId: messageId}); } } function _fun69218() { // fn#69218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:3767, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } } function _fun69220(a0) { // fn#69220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:3900, offset: 0x01c6d9c5, size: 145 bytes, params: 2, frame: 15 if (a0 != null) { a0.preventDefault(); } let value = Module00057.code.split('-'); value = env1_3(value, 2); const env0_0 = value[0]; const env0_1 = value[1]; value = require(dependencyMap[18]); value = value(dependencyMap[33], dependencyMap.paths); value.then(_fun69221); return true; function _fun69221({openGuildProductLink}) { // fn#69221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:4016, offset: 0x01c6da56, size: 30 bytes, params: 2, frame: 13 openGuildProductLink(env0_0, env0_1); } } function _fun69222(a0) { // fn#69222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:4134, offset: 0x01c6da74, size: 145 bytes, params: 2, frame: 15 if (a0 != null) { a0.preventDefault(); } let value = Module00057.code.split('-'); value = env1_3(value, 2); const env0_0 = value[0]; const env0_1 = value[1]; value = require(dependencyMap[18]); value = value(dependencyMap[34], dependencyMap.paths); value.then(_fun69223); return true; function _fun69223({navigateToSocialLayerStorefrontWithGuildPreview}) { // fn#69223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:4250, offset: 0x01c6db05, size: 39 bytes, params: 2, frame: 12 navigateToSocialLayerStorefrontWithGuildPreview({guildId: env0_1, skuId: env0_0}); } } function _fun69224(a0) { // fn#69224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:4415, offset: 0x01c6db2c, size: 166 bytes, params: 2, frame: 16 if (a0 != null) { a0.preventDefault(); } let value = Module00057.code.split('-'); value = env1_3(value, 2); const env0_0 = value[0]; value = SocialLayerStorefrontStore.getGuildIdFromApplicationId(value[1]); if (value != null) { value = require(dependencyMap[18]); value = value(dependencyMap[34], dependencyMap.paths); value.then(_fun69225); return true; } function _fun69225({default: property}) { // fn#69225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:4577, offset: 0x01c6dbd2, size: 38 bytes, params: 2, frame: 12 property({guildId: env0_1, skuId: env0_0}); } } function _fun69226(a0) { // fn#69226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:4722, offset: 0x01c6dbf8, size: 300 bytes, params: 2, frame: 18 var r1; var r5; var r7; var uRLSearchParams; var value8; var value9; const value = null; if (value != a0) { a0.preventDefault(); } const value3 = undefined; const defaultImport = URLUtils; const value5 = defaultImport.toURLSafe(Module00057.url); const search = (value != value5 ? value5 : {}).search; if (value != search) { uRLSearchParams = new global.URLSearchParams(search); value8 = uRLSearchParams.get('sort'); r1 = value != value8 ? value8 : value3; value9 = uRLSearchParams.get('filter'); r5 = value != value9 ? value9 : value3; r7 = r1; } else { r5 = value3; r7 = value3; } const openQuestHome = (QuestUtilsNativeModule).openQuestHome; const object = {}; object.scrollToQuestId = Module00057.code; object.sort = value != r7 ? r7 : value; object.filter = value != r5 ? r5 : value; const QuestContent = (QuestContentModule).QuestContent; const QUEST_SHARE_LINK = QuestContent.QUEST_SHARE_LINK; object.fromContent = QUEST_SHARE_LINK; openQuestHome(object); return true; } function _fun69227(a0) { // fn#69227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:5162, offset: 0x01c6dd24, size: 116 bytes, params: 2, frame: 15 var environment; if (a0 != null) { a0.preventDefault(); } let value = environment.__proto__; value = require(dependencyMap[39]); const env0_0 = value.isVirtualCurrencyEnabled().enabled; value = require(dependencyMap[18]); value = value(dependencyMap[40], dependencyMap.paths); value.then(_fun69228); return true; function _fun69228({openCollectiblesShopMobile}) { // fn#69228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:5281, offset: 0x01c6dd98, size: 185 bytes, params: 2, frame: 19 const value5 = env2_3(env1_3.code.split('-'), 2); const property = value5[0]; const property2 = value5[1]; const value6 = property2 !== ''; const r3 = enabled && property === CollectibleShopTab.ORBS ? CollectiblesMobileShopScreen.ORBS : value6 ? CollectiblesMobileShopScreen.SHOP_ALL : CollectiblesMobileShopScreen.FEATURED_PAGE; const analyticsLocationsBinding = analyticsLocations; openCollectiblesShopMobile({analyticsSource: analyticsLocationsBinding[analyticsLocationsBinding.length - 1], analyticsLocations: analyticsLocationsBinding, screen: r3, initialProductSkuId: value6 ? property2 : undefined}); } } function _fun69229(a0) { // fn#69229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:5862, offset: 0x01c6de51, size: 65 bytes, params: 2, frame: 13 if (a0 != null) { a0.preventDefault(); } const value = environment.__proto__; (SafeTransitionToNative)(pathname, env0_5); return true; } function _fun69230(a0) { // fn#69230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:5976, offset: 0x01c6de92, size: 110 bytes, params: 2, frame: 18 if (a0 != null) { a0.preventDefault(); } const defaultImport = AppAnalyticsUtils; const trackWithMetadata = defaultImport.trackWithMetadata; const APP_OAUTH2_LINK_EMBED_URL_CLICKED = AnalyticEvents.APP_OAUTH2_LINK_EMBED_URL_CLICKED; Reflect.apply(trackWithMetadata, defaultImport, [APP_OAUTH2_LINK_EMBED_URL_CLICKED, {application_id: Module00057.code}]); (OpenURL)(env0_0); return true; } function _fun69231(a0) { // fn#69231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9063:6199, offset: 0x01c6df00, size: 66 bytes, params: 2, frame: 11 if (a0 != null) { a0.preventDefault(); } const value = environment.__proto__; (SuspiciousDownloadModalActionCreatorsNative).show(env0_0); return true; } } } global.__d(_fun69196, 8878, [57, 5, 4234, 4117, 6831, 1226, 1945, 1867, 4097, 1934, 3969, 4896, 661, 663, 694, 4098, 8879, 9037, 1962, 6593, 6837, 9032, 4096, 4101, 4126, 3847, 683, 8091, 9466, 9468, 7860, 4603, 9472, 9476, 9477, 9479, 1471, 9480, 6533, 4127, 5120, 4863, 4246, 10191, 10193, 2]) /* metro module 8878, dependencies: [57, 5, 4234, 4117, 6831, 1226, 1945, 1867, 4097, 1934, 3969, 4896, 661, 663, 694, 4098, 8879, 9037, 1962, 6593, 6837, 9032, 4096, 4101, 4126, 3847, 683, 8091, 9466, 9468, 7860, 4603, 9472, 9476, 9477, 9479, 1471, 9480, 6533, 4127, 5120, 4863, 4246, 10191, 10193, 2] */;