Files
2026-07-28 01:06:53 +03:00

981 lines
54 KiB
TypeScript

/* Metro module 4254; source: modules/links/native/handleSupportedURL.tsx; dependencies: [29, 5, 4255, 4117, 7039, 7552, 1226, 661, 1386, 4286, 4661, 8871, 5117, 4095, 12612, 11471, 8224, 11993, 5080, 4008, 12613, 8743, 7007, 10010, 11422, 1848, 8451, 683, 8453, 6838, 9863, 12620, 12633, 10206, 1962, 10203, 12025, 8870, 12635, 12637, 1581, 4662, 12642, 3853, 12644, 1867, 6947, 9037, 9032, 6906, 8915, 9422, 4007, 4123, 1230, 694, 5042, 1471, 9112, 12647, 12662, 477, 12673, 9151, 12680, 4223, 12681, 5120, 6789, 9279, 7110, 6533, 9480, 10381, 12705, 6522, 8088, 4078, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ObjectWithoutProperties from '../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import GuildScheduledEventStore from '../../guild_scheduled_events/GuildScheduledEventStore.tsx'; /* Metro dependency 4117 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import PremiumNitroNavigationStore from '../../user_settings/premium/native/PremiumNitroNavigationStore.tsx'; /* Metro dependency 7552 */
import CloseVoicePanels from '../../voice_panel/native/utils/closeVoicePanels.tsx'; /* Metro dependency 8088 */
import GuildTemplateActionCreators from '../../guild_templates/native/GuildTemplateActionCreators.tsx'; /* Metro dependency 11422 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as ChannelConstantsModule from '../../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
import * as NavigationRouteUtilsNativeModule from '../../main_tabs_v2/helpers/NavigationRouteUtils.native.tsx'; /* Metro dependency 4007 */
import * as PaymentConstantsModule from '../../payments/PaymentConstants.tsx'; /* Metro dependency 4095 */
import * as PostConnectionCallbackStoreModule from '../../gateway/PostConnectionCallbackStore.tsx'; /* Metro dependency 4255 */
import * as ConstantsModule2 from '../../go_live/Constants.tsx'; /* Metro dependency 4286 */
import * as NativePermissionConstantsModule from '../../native_permissions/NativePermissionConstants.tsx'; /* Metro dependency 4661 */
import * as FamilyCenterConstantsModule from '../../parent_tools/FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as QuestContentModule from '../../../external/discord_common/js/shared/shared-constants/QuestContent.tsx'; /* Metro dependency 6533 */
import * as OpenUserSettingsModule from '../../user_settings/core/native/openUserSettings.tsx'; /* Metro dependency 7007 */
import * as PremiumPlanPurchasedStoreModule from '../../premium/native/PremiumPlanPurchasedStore.tsx'; /* Metro dependency 7039 */
import * as SettingsConstantsModule from '../../user_settings/core/native/SettingsConstants.tsx'; /* Metro dependency 8224 */
import * as ConstantsModule3 from '../../oauth2/native/Constants.tsx'; /* Metro dependency 8871 */
import * as QuestUtilsNativeModule from '../../quests/native/QuestUtils.native.tsx'; /* Metro dependency 9480 */
import * as DisplayedInviteActionCreatorsModule from '../../../actions/native/DisplayedInviteActionCreators.tsx'; /* Metro dependency 10010 */
import * as SettingsAccountConstantsModule from '../../user_settings/account/native/SettingsAccountConstants.tsx'; /* Metro dependency 11471 */
import * as ShareScreenConstantsModule from '../../share/native/ShareScreenConstants.tsx'; /* Metro dependency 12612 */
function _fun35323(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:6, offset: 0x0106ed32, size: 505 bytes, params: 8, frame: 19
const env0_0 = require;
const env0_4 = ['code', 'state'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/links/native/handleSupportedURL.tsx');
exports.default = handleSupportedURL;
function handleSupportedURL(a0) { // fn#35324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:741, offset: 0x0106ef2b, size: 67 bytes, params: 2, frame: 13
const value = _handleSupportedURL(a0);
if (value) {
(require(4078) /* metro dependency 4078: BrowserManager */).browserManagerCloseBrowser();
}
return value != null && value;
function _handleSupportedURL({payload, safe, navigationReplace, waitForConnection, skipMessageFetch}) { // fn#35325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:778, owner: handleSupportedURL._handleSupportedURL, offset: 0x0106ef6e, size: 3487 bytes, params: 2, frame: 28
var r7;
var r3;
var summaryId;
var messageId;
var deepLinkAction;
var moduleValue;
var defaultImport3;
var channelId;
var guildId;
var moduleValue3;
var nonce;
var redirectUrl;
var fingerprint;
var pathname;
var overrideUrl;
var defaultImport5;
var defaultImport7;
var value4;
var diceCount;
var diceSides;
var giftCode;
var value9;
var guildTemplateCode;
var inviteCode;
var username;
var deeplinkAttemptId;
var authenticationStoreBinding;
var rootNavigationRef;
var rootNavigationRef2;
let value = undefined;
const type = payload.type;
const CONTACT_SYNC = LinkingTypes.CONTACT_SYNC;
if (CONTACT_SYNC === type) {
require(dependencyMap[17]).openContactSyncModalDeeplink();
return true;
}
const COMPOSE_MESSAGE = LinkingTypes.COMPOSE_MESSAGE;
if (COMPOSE_MESSAGE === type) {
importDefault(dependencyMap[18]).popAll();
value = require(dependencyMap[19]);
value = value.getRootNavigationRef();
if (value != null) {
value.navigate('friends', {screen: 'new-message', params: {sourcePage: 'Deeplink'}});
}
return true;
}
const ADD_FRIENDS = LinkingTypes.ADD_FRIENDS;
if (ADD_FRIENDS === type) {
importDefault(dependencyMap[18]).popAll();
rootNavigationRef2 = require(dependencyMap[19]).getRootNavigationRef();
if (rootNavigationRef2 == null) {
importDefault(dependencyMap[20]).openAddFriendModalDeeplink();
} else if (rootNavigationRef2.isReady()) {
rootNavigationRef2.navigate('friends', {screen: 'add-friends', params: {sourcePage: 'Deeplink'}});
} else {
addPostConnectionCallback(_fun35326);
}
return true;
}
const FRIENDS = LinkingTypes.FRIENDS;
if (FRIENDS === type) {
importDefault(dependencyMap[18]).popAll();
rootNavigationRef = require(dependencyMap[19]).getRootNavigationRef();
if (rootNavigationRef != null) {
if (rootNavigationRef.isReady()) {
rootNavigationRef.navigate('friends');
} else {
addPostConnectionCallback(_fun35327);
}
}
if (payload.userId != null) {
require(dependencyMap[21]).showUserProfileActionSheetPostConnection({userId: payload.userId});
}
return true;
}
const EDIT_PROFILE = LinkingTypes.EDIT_PROFILE;
if (EDIT_PROFILE === type) {
addPostConnectionCallback(function() {
importDefault(dependencyMap[18]).popAll();
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.PROFILE_CUSTOMIZATION});
});
return true;
}
const INVITE = LinkingTypes.INVITE;
if (INVITE === type) {
inviteCode = payload.inviteCode;
username = payload.username;
deeplinkAttemptId = payload.deeplinkAttemptId;
authenticationStoreBinding = AuthenticationStore;
if (authenticationStoreBinding.isAuthenticated()) {
addPostConnectionCallback(_fun35329);
} else if (inviteCode == null) {
addPostConnectionCallback(_fun35329);
} else {
require(dependencyMap[23]).showInvite(inviteCode, username, {'deeplinkAttemptId': null,
'fromDeeplink': true,
'location': 'Deep Link', deeplinkAttemptId: deeplinkAttemptId});
}
return true;
}
const GUILD_TEMPLATE = LinkingTypes.GUILD_TEMPLATE;
if (GUILD_TEMPLATE === type) {
guildTemplateCode = payload.guildTemplateCode;
addPostConnectionCallback(_fun35330);
return true;
}
const GIFT_CODE = LinkingTypes.GIFT_CODE;
if (GIFT_CODE === type) {
giftCode = payload.giftCode;
value9 = giftCode != null;
if (value9) {
value = require(dependencyMap[26]);
value = value.resolveGiftCode(giftCode);
value = value.then(_fun35331);
value.catch(function() {
});
value = true;
r3 = value;
} else {
r3 = value9;
}
return r3;
}
const ROLL_DICE = LinkingTypes.ROLL_DICE;
if (ROLL_DICE === type) {
guildId = payload.guildId;
channelId = payload.channelId;
diceCount = payload.diceCount;
diceSides = payload.diceSides;
r3 = guildId != null && channelId != null;
if (r3) {
require(dependencyMap[29]).startDiceRoll(channelId, diceCount, diceSides);
importDefault(dependencyMap[30])({guildId: guildId, channelId: channelId, messageId: value,
navigationSettings: {safe: safe, navigationReplace: navigationReplace,
waitForConnection: waitForConnection,
skipMessageFetch: skipMessageFetch}});
value = true;
r3 = value;
}
return r3;
}
const CHANNEL = LinkingTypes.CHANNEL;
if (CHANNEL === type) {
guildId = payload.guildId;
channelId = payload.channelId;
if (payload.type !== LinkingTypes.MESSAGE) {
summaryId = value;
messageId = value;
} else {
messageId = payload.messageId;
summaryId = payload.summaryId;
}
if (guildId != null && channelId != null) {
importDefault(dependencyMap[30])({guildId: guildId, channelId: channelId, messageId: messageId,
navigationSettings: {safe: safe, navigationReplace: navigationReplace,
waitForConnection: waitForConnection,
skipMessageFetch: skipMessageFetch}, summaryId: summaryId});
}
return true;
}
const MESSAGE = LinkingTypes.MESSAGE;
if (MESSAGE === type) {
guildId = payload.guildId;
channelId = payload.channelId;
if (payload.type !== LinkingTypes.MESSAGE) {
summaryId = value;
messageId = value;
} else {
messageId = payload.messageId;
summaryId = payload.summaryId;
}
if (guildId != null && channelId != null) {
importDefault(dependencyMap[30])({guildId: guildId, channelId: channelId, messageId: messageId,
navigationSettings: {safe: safe, navigationReplace: navigationReplace,
waitForConnection: waitForConnection,
skipMessageFetch: skipMessageFetch}, summaryId: summaryId});
}
return true;
}
const SESSION_MANAGEMENT = LinkingTypes.SESSION_MANAGEMENT;
if (SESSION_MANAGEMENT === type) {
addPostConnectionCallback(function() {
importDefault(dependencyMap[18]).popAll();
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.SESSIONS});
});
return true;
}
const FAMILY_CENTER = LinkingTypes.FAMILY_CENTER;
if (FAMILY_CENTER === type) {
value4 = null;
pathname = (value4 != payload ? payload : {}).pathname;
r3 = value === pathname ? value4 : pathname;
addPostConnectionCallback(_fun35334);
return true;
}
const OAUTH2_AUTHORIZE = LinkingTypes.OAUTH2_AUTHORIZE;
if (OAUTH2_AUTHORIZE === type) {
addPostConnectionCallback(_fun35335);
return true;
}
const ONE_TIME_LOGIN = LinkingTypes.ONE_TIME_LOGIN;
if (ONE_TIME_LOGIN === type) {
importDefault(dependencyMap[18]).popAll();
defaultImport7 = importDefault(dependencyMap[18]);
defaultImport7.pushLazy(require(dependencyMap[34])(dependencyMap[38], dependencyMap.paths),
{token: payload.token},
'ONE_TIME_LOGIN_MODAL');
return true;
}
const REMOTE_AUTH = LinkingTypes.REMOTE_AUTH;
if (REMOTE_AUTH === type) {
addPostConnectionCallback(payload.remoteAuthFingerprint != null ? _fun35338 : _fun35339);
return true;
}
const PROMOTIONS = LinkingTypes.PROMOTIONS;
if (PROMOTIONS === type) {
value = importDefault(dependencyMap[43]);
value.performURLNavigation(payload.url);
return true;
}
const FEATURE_PROMO_URL = LinkingTypes.FEATURE_PROMO_URL;
if (FEATURE_PROMO_URL === type) {
value = importDefault(dependencyMap[43]);
value.openURLExternally(payload.promoUrl);
return true;
}
const USER_PROFILE = LinkingTypes.USER_PROFILE;
if (USER_PROFILE === type) {
if (payload.userId != null) {
require(dependencyMap[21]).showUserProfileActionSheetPostConnection({userId: payload.userId});
}
return true;
}
const BUILD_OVERRIDE = LinkingTypes.BUILD_OVERRIDE;
if (BUILD_OVERRIDE === type) {
overrideUrl = payload.overrideUrl;
importDefault(dependencyMap[18]).popAll();
defaultImport5 = importDefault(dependencyMap[18]);
defaultImport5.pushLazy(require(dependencyMap[34])(dependencyMap[44], dependencyMap.paths),
{overrideUrl: overrideUrl});
return true;
}
const GUILD_EVENT_DETAILS = LinkingTypes.GUILD_EVENT_DETAILS;
if (GUILD_EVENT_DETAILS === type) {
addPostConnectionCallback(env1_6(_fun35343));
return true;
}
const MOBILE_WEB_HANDOFF = LinkingTypes.MOBILE_WEB_HANDOFF;
if (MOBILE_WEB_HANDOFF === type) {
nonce = payload.nonce;
redirectUrl = payload.redirectUrl;
fingerprint = payload.fingerprint;
value = importDefault(dependencyMap[49]);
value.redirectWithHandoffToken('' + redirectUrl.pathname + redirectUrl.search, {nonce: nonce,
fingerprint: fingerprint, skipLoginRedirect: true});
return true;
}
const VOICE_CHANNEL = LinkingTypes.VOICE_CHANNEL;
if (VOICE_CHANNEL === type) {
addPostConnectionCallback(env1_6(_fun35345));
return true;
}
const ICYMI = LinkingTypes.ICYMI;
if (ICYMI === type) {
addPostConnectionCallback(_fun35346);
return true;
}
const GUILD_HOME = LinkingTypes.GUILD_HOME;
if (GUILD_HOME === type) {
if (payload.guildId != null) {
if (payload.highlightChannelId != null) {
if (payload.highlightMessageId != null) {
moduleValue3 = require(dependencyMap[53]);
r7 = {search: moduleValue3.stringify({highlight_channel_id: payload.highlightChannelId,
highlight_message_id: payload.highlightMessageId})};
} else {
r7 = value;
}
} else {
r7 = value;
}
value = require(dependencyMap[54]);
value.transitionTo(Routes.CHANNEL(payload.guildId, StaticChannelRoute.GUILD_HOME), r7);
}
return true;
}
const USER_CONNECTIONS_LINK_CALLBACK = LinkingTypes.USER_CONNECTIONS_LINK_CALLBACK;
if (USER_CONNECTIONS_LINK_CALLBACK === type) {
addPostConnectionCallback(_fun35347);
return true;
}
const USER_CONNECTIONS_CALLBACK = LinkingTypes.USER_CONNECTIONS_CALLBACK;
if (USER_CONNECTIONS_CALLBACK === type) {
addPostConnectionCallback(env1_6(_fun35349));
return true;
}
const CONNECTIONS = LinkingTypes.CONNECTIONS;
if (CONNECTIONS === type) {
addPostConnectionCallback(function() {
importDefault(dependencyMap[18]).popAll();
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.CONNECTIONS});
});
return true;
}
const GUILD_SETTINGS = LinkingTypes.GUILD_SETTINGS;
if (GUILD_SETTINGS === type) {
addPostConnectionCallback(_fun35351);
return true;
}
const ACTIVATE_DEVICE = LinkingTypes.ACTIVATE_DEVICE;
if (ACTIVATE_DEVICE === type) {
value = importDefault(dependencyMap[59]);
value.showModal(payload.userCode);
return true;
}
const GUILD_SETTINGS_PICKER = LinkingTypes.GUILD_SETTINGS_PICKER;
if (GUILD_SETTINGS_PICKER === type) {
addPostConnectionCallback(_fun35352);
return true;
}
const SHARE = LinkingTypes.SHARE;
if (SHARE === type) {
moduleValue = require(dependencyMap[61]);
if (moduleValue.isIOS()) {
importDefault(dependencyMap[18]).popAll();
defaultImport3 = importDefault(dependencyMap[18]);
defaultImport3.pushLazy(require(dependencyMap[34])(dependencyMap[62], dependencyMap.paths),
{text: payload.text,
channelId: payload.channelId, shareId: payload.shareId, attachmentManifest: payload.attachmentManifest},
SHARE_SCREEN_MODAL_KEY, {presentation: 'modal'});
}
return true;
}
const CREATE_VOICE_INVITE = LinkingTypes.CREATE_VOICE_INVITE;
if (CREATE_VOICE_INVITE === type) {
addPostConnectionCallback(_fun35353);
return true;
}
const SEND_VOICE_HANGOUT_WAVE = LinkingTypes.SEND_VOICE_HANGOUT_WAVE;
if (SEND_VOICE_HANGOUT_WAVE === type) {
addPostConnectionCallback(_fun35353);
return true;
}
const ACCOUNT_STANDING = LinkingTypes.ACCOUNT_STANDING;
if (ACCOUNT_STANDING === type) {
addPostConnectionCallback(function() {
importDefault(dependencyMap[18]).popAll();
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.ACCOUNT,
params: {initialTab: AccountSettingsTabs.STANDING}});
});
return true;
}
const MOBILE_NATIVE_UPDATE = LinkingTypes.MOBILE_NATIVE_UPDATE;
if (MOBILE_NATIVE_UPDATE === type) {
value = importAll(dependencyMap[64]);
value.openBuildInstallerUrl(payload.url);
return true;
}
const MOBILE_WEB_REDIRECT_CHECKOUT = LinkingTypes.MOBILE_WEB_REDIRECT_CHECKOUT;
if (MOBILE_WEB_REDIRECT_CHECKOUT === type) {
deepLinkAction = payload.deepLinkAction;
addPostConnectionCallback(env1_6(_fun35356));
return true;
}
const SHOP = LinkingTypes.SHOP;
if (SHOP === type) {
addPostConnectionCallback(function() {
var moduleValue = require(dependencyMap[67]);
var object = {};
var DEEPLINK = importDefault(dependencyMap[68]).DEEPLINK;
object.analyticsLocations = [DEEPLINK];
object.analyticsSource = importDefault(dependencyMap[68]).DEEPLINK;
var payloadBinding = payload;
object.screen = payloadBinding.screen;
object.initialProductSkuId = payloadBinding.skuId;
moduleValue.openCollectiblesShopMobile(object);
});
return true;
}
const AUTHORIZED_APPS = LinkingTypes.AUTHORIZED_APPS;
if (AUTHORIZED_APPS === type) {
addPostConnectionCallback(function() {
importDefault(dependencyMap[18]).popAll();
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.AUTHORIZED_APPS});
});
return true;
}
const DAVE_PROTOCOL_VERIFICATION = LinkingTypes.DAVE_PROTOCOL_VERIFICATION;
if (DAVE_PROTOCOL_VERIFICATION === type) {
addPostConnectionCallback(_fun35359);
return true;
}
const QUESTS = LinkingTypes.QUESTS;
if (QUESTS === type) {
addPostConnectionCallback(_fun35360);
return true;
}
const QUEST_HOME_PREVIEW = LinkingTypes.QUEST_HOME_PREVIEW;
if (QUEST_HOME_PREVIEW === type) {
addPostConnectionCallback(function() {
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.QUESTS,
params: {previewAdCreativeIds: payload.adCreativeIds}});
});
return true;
}
const GIFT = LinkingTypes.GIFT;
if (GIFT === type) {
addPostConnectionCallback(function() {
var moduleValue = require(dependencyMap[73]);
var DEEPLINK = importDefault(dependencyMap[68]).DEEPLINK;
moduleValue.openGiftModal({analyticsLocations: [DEEPLINK]});
});
return true;
}
const NITRO_HOME = LinkingTypes.NITRO_HOME;
if (NITRO_HOME === type) {
addPostConnectionCallback(function() {
var premiumNitroNavigationStoreBinding = PremiumNitroNavigationStore;
var setState = premiumNitroNavigationStoreBinding.setState;
var section = payload.section;
var value3 = undefined;
Reflect.apply(setState, premiumNitroNavigationStoreBinding, [{scrollToSectionId: section ?? value3}]);
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.PREMIUM});
return value3;
});
return true;
}
const ACTIVITY = LinkingTypes.ACTIVITY;
if (ACTIVITY === type) {
importDefault(dependencyMap[74])(payload.applicationId, payload.referrerId, payload.customId, payload.linkId,
payload.isDeepLink);
return true;
}
const CONNECTED_GAMES = LinkingTypes.CONNECTED_GAMES;
if (CONNECTED_GAMES === type) {
addPostConnectionCallback(function() {
importDefault(dependencyMap[18]).popAll();
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.CONTENT_AND_SOCIAL,
params: {tab: MobileSetting.CONNECTED_GAMES}});
});
return true;
}
const BOOST_MARKETING = LinkingTypes.BOOST_MARKETING;
if (BOOST_MARKETING === type) {
addPostConnectionCallback(_fun35365);
return true;
}
const BOOST_SETTINGS = LinkingTypes.BOOST_SETTINGS;
if (BOOST_SETTINGS === type) {
addPostConnectionCallback(function() {
importDefault(dependencyMap[18]).popAll();
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.GUILD_BOOSTING});
});
return true;
}
const QUEST_PREVIEW_TOOL = LinkingTypes.QUEST_PREVIEW_TOOL;
if (QUEST_PREVIEW_TOOL === type) {
addPostConnectionCallback(_fun35367);
return true;
}
const SUBSCRIPTION_SETTINGS = LinkingTypes.SUBSCRIPTION_SETTINGS;
if (SUBSCRIPTION_SETTINGS === type) {
addPostConnectionCallback(function() {
importDefault(dependencyMap[18]).popAll();
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.GUILD_ROLE_SUBSCRIPTIONS});
});
return true;
}
return false;
function _fun35326() { // fn#35326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:1370, offset: 0x0106fd0d, size: 56 bytes, params: 1, frame: 14
return env0_1.navigate('friends', {screen: 'add-friends', params: {sourcePage: 'Deeplink'}});
}
function _fun35327() { // fn#35327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:1581, offset: 0x0106fd45, size: 26 bytes, params: 1, frame: 11
env0_2.navigate('friends');
}
function _fun35329() { // fn#35329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:1926, offset: 0x0106fdb0, size: 137 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
(GuildTemplateActionCreators).hideModal();
if (inviteCode != null) {
value = require(1848) /* metro dependency 1848: KeyboardManagerUtils */;
value.dismissGlobalKeyboard();
value = require(10010) /* metro dependency 10010: DisplayedInviteActionCreators */;
value.showInvite(inviteCode, username, {'deeplinkAttemptId': null, 'fromDeeplink': true,
'location': 'Deep Link',
deeplinkAttemptId: deeplinkAttemptId});
}
}
function _fun35330() { // fn#35330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:2228, offset: 0x0106fe39, size: 111 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
(DisplayedInviteActionCreatorsModule).clearDisplayedInvite();
if (guildTemplateCode != null) {
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
value = importDefault(11422) /* metro dependency 11422: GuildTemplateActionCreators */;
value.showModal(guildTemplateCode);
}
}
function _fun35331({giftCode}) { // fn#35331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:2422, offset: 0x0106fea8, size: 103 bytes, params: 2, frame: 17
let value = environment.__proto__.__proto__;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
Reflect.apply(track, defaultImport, [OPEN_MODAL, {'type': 'gift_accept', 'location': null}]);
value = require(8453) /* metro dependency 8453: GiftCodeActionCreators */;
value.openGiftCodeRedeemModal(giftCode.code);
}
function _fun35334() { // fn#35334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:3320, offset: 0x0106ff60, size: 160 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
(ModalActionCreators).popAll();
const openUserSettings = OpenUserSettingsModule.openUserSettings;
const FAMILY_CENTER = UserSettingsSections.FAMILY_CENTER;
Reflect.apply(openUserSettings, OpenUserSettingsModule, [{screen: FAMILY_CENTER}]);
if (PostConnectionCallbackStoreModule.addPostConnectionCallback != null && FAMILY_CENTER_LINK_REQUEST_REGEX.test(PostConnectionCallbackStoreModule.addPostConnectionCallback)) {
(require(12620) /* metro dependency 12620: FamilyCenterNativeUtils */).handleFamilyCenterQRCodeScan(PostConnectionCallbackStoreModule.addPostConnectionCallback,
'NativeCameraScan');
}
}
function _fun35335() { // fn#35335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:3515, offset: 0x01070000, size: 183 bytes, params: 1, frame: 17
var environment;
var moduleValue2;
var openOAuth2Modal;
var object;
const value = environment.__proto__.__proto__;
importDefault(dependencyMap[18]).popAll();
const moduleValue = require(dependencyMap[32]);
if (moduleValue.isMidjourneyOnboardingFlow()) {
importDefault(dependencyMap[36]).openCreateGuildModal(_fun35336);
} else {
moduleValue2 = require(dependencyMap[37]);
openOAuth2Modal = moduleValue2.openOAuth2Modal;
object = {};
copyDataProperties(object, payload.props, dependencyMap);
object['callback'] = importDefault(dependencyMap[35]);
Reflect.apply(openOAuth2Modal, moduleValue2, [object]);
}
function _fun35336(a0) { // fn#35336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:3607, offset: 0x010700b7, size: 167 bytes, params: 2, frame: 20
importDefault(dependencyMap[18]).popAll();
const defaultImport2 = importDefault(dependencyMap[18]);
const pushLazy = defaultImport2.pushLazy;
const value2 = require(dependencyMap[34])(dependencyMap[33], dependencyMap.paths);
const object = {};
copyDataProperties(object, payload.props, undefined);
object['guildId'] = a0;
object['callback'] = importDefault(dependencyMap[35]);
object['dismissOAuthModal'] = function() {
importDefault(dependencyMap[18]).popWithKey(OAUTH2_AUTHORIZE_MODAL_KEY);
};
Reflect.apply(pushLazy, defaultImport2, [value2, object, OAUTH2_AUTHORIZE_MODAL_KEY]);
}
}
function _fun35338() { // fn#35338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:4026, offset: 0x01070188, size: 94 bytes, params: 1, frame: 16
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[18]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[34]);
value = value(dependencyMap[39], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {remoteAuthFingerprint: remoteAuthFingerprint}, 'REMOTE_AUTH_MODAL']);
}
function _fun35339() { // fn#35339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:4121, offset: 0x010701e6, size: 122 bytes, params: 1, frame: 14
var environment;
let value = environment.__proto__.__proto__;
const r4 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest() ? NativePermissionTypes.HEADSET_CAMERA : NativePermissionTypes.CAMERA;
value = importDefault(4662) /* metro dependency 4662: NativePermissionUtils */;
value = value.requestPermission(r4);
value = value.then(_fun35340);
value.catch(function() {
});
function _fun35340(a0) { // fn#35340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:4217, offset: 0x01070260, size: 90 bytes, params: 2, frame: 15
var value;
var defaultImport;
var pushLazy;
if (a0) {
value = environment.__proto__.__proto__.__proto__;
defaultImport = importDefault(dependencyMap[18]);
pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[34]);
value = value(dependencyMap[42], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {showHelp: true}]);
}
}
}
function* _fun35343() { // fn#35343, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:4727, offset: 0x010702c3, size: 291 bytes, params: 1, frame: 20
var r6;
if (true) {
value = environment.__proto__.__proto__.__proto__;
var binding = env3_1;
var binding2 = env3_3;
binding(binding2[18]).popAll();
binding = env1_0;
var guildId = binding.guildId;
var guildEventId = binding.guildEventId;
yield env3_0(binding2[34])(binding2[45], binding2.paths);
var value6 = undefined;
if (false) {
return value6;
}
if (value6.default.getGuild(guildId) != null) {
env3_0(env3_3[46]).transitionToGuild(guildId);
}
var guildScheduledEvent = env3_8.getGuildScheduledEvent(guildEventId);
if (guildScheduledEvent != null) {
r6 = guildScheduledEvent;
if (r6 != null) {
env3_0(env3_3[48]).openGuildEventDetails({eventId: r6.id, event: r6});
}
} else {
var value11 = env3_1(env3_3[47]);
yield value11.fetchGuildEvent(guildId, guildEventId);
var value12 = undefined;
if (false) {
return value12;
}
r6 = value12;
if (r6 != null) {
env3_0(env3_3[48]).openGuildEventDetails({eventId: r6.id, event: r6});
}
}
}
}
function* _fun35345() { // fn#35345, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:5267, offset: 0x010703ef, size: 380 bytes, params: 1, frame: 18
var r1;
var value6;
var binding;
var binding2;
var value8;
var property;
var value9;
var getGuild;
var value11;
var value12;
if (true) {
value = environment.__proto__;
var guildId = env1_0.guildId;
r1 = guildId != null && env1_0.channelId != null;
r1 = r1 && env1_0.userId != null;
if (r1) {
value6 = environment.__proto__.__proto__.__proto__;
binding = env3_1;
binding2 = env3_3;
binding(binding2[18]).popAll();
binding = env3_0;
value8 = binding(binding2[34]);
property = binding2[45];
yield value8(property, binding2.paths);
value9 = undefined;
if (false) {
return value9;
}
property = value9.default;
getGuild = property.getGuild;
guildId = env1_0.guildId;
if (Reflect.apply(getGuild, property, [guildId]) != null) {
value11 = env3_0(env3_3[46]);
value11.transitionToGuild(env1_0.guildId);
}
binding = env3_1;
value12 = binding(env3_3[50]);
binding = env1_0;
guildId = binding.guildId;
value12({streamType: env3_18.GUILD, ownerId: binding.userId, guildId: guildId,
channelId: binding.channelId});
if (env1_0.action === 'transfer_cancelled' && env1_0.via === 'xbox') {
value = environment.__proto__.__proto__.__proto__;
value = env3_0(env3_3[51]);
value.disconnectRemote();
}
} else if (env1_0.action === 'transfer_cancelled' && env1_0.via === 'xbox') {
value = environment.__proto__.__proto__.__proto__;
value = env3_0(env3_3[51]);
value.disconnectRemote();
}
}
}
function _fun35346() { // fn#35346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:5651, offset: 0x0107056b, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
(NavigationRouteUtilsNativeModule).navigateToRootTab({screen: 'icymi'});
}
function _fun35347() { // fn#35347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:6046, offset: 0x0107059c, size: 216 bytes, params: 1, frame: 13
var value5;
var items2;
var value7;
var defaultImport;
var dispatch;
let r0 = payload.callbackCode != null && payload.callbackState != null && payload.provider != null;
if (r0) {
value5 = environment.__proto__.__proto__;
items2 = [PlatformTypes.XBOX];
items2[1] = PlatformTypes.PLAYSTATION;
items2[2] = PlatformTypes.PLAYSTATION_STAGING;
items2[3] = PlatformTypes.CRUNCHYROLL;
r0 = items2.includes(payload.provider);
}
if (r0) {
value7 = environment.__proto__.__proto__;
defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = defaultImport.dispatch;
payloadBinding = payload;
Reflect.apply(dispatch, defaultImport, [{type: 'USER_CONNECTIONS_LINK_CALLBACK',
provider: payloadBinding.provider,
callbackCode: payloadBinding.callbackCode, callbackState: payloadBinding.callbackState}]);
}
}
function* _fun35349() { // fn#35349, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:6383, offset: 0x0107067d, size: 374 bytes, params: 1, frame: 27
var r5;
var r11;
var r1;
var propertyName;
var propertyName2;
var startsWith;
if (false) {
return undefined;
}
value = environment.__proto__;
let binding = env1_0;
const provider = binding.provider;
const searchParams = binding.searchParams;
const code = searchParams.code;
const state = searchParams.state;
value = environment.__proto__.__proto__.__proto__;
binding = env3_5;
const value3 = undefined;
if (state != null) {
var object = {code: code, state: state};
var properties = Object.keys(binding(searchParams, env3_4));
var properties2 = 0;
var properties3 = properties.length;
if (properties === value3) {
r1 = value3;
} else {
r5 = value3;
r11 = properties2;
while (true) {
propertyName = properties[r11];
propertyName2 = r11 + 1;
if (propertyName === value3) {
r1 = r5;
break;
}
startsWith = propertyName.startsWith;
if (!Reflect.apply(startsWith, propertyName, ['openid.'])) {
r11 = propertyName2;
continue;
}
if (r5 != null) {
continue;
}
r5 = {};
r5[propertyName] = searchParams[propertyName];
r11 = propertyName2;
}
}
if (r1 != null) {
object.openid_params = r1;
}
binding = env3_1;
var binding2 = env3_3;
binding(binding2[18]).popAll();
var value6 = env3_0(binding2[22]);
var openUserSettings = value6.openUserSettings;
var CONNECTIONS = env3_15.CONNECTIONS;
Reflect.apply(openUserSettings, value6, [{screen: CONNECTIONS}]);
var value7 = binding(binding2[56]);
yield value7.callback(provider, object);
var value8 = undefined;
if (false) {
return value8;
}
var value10 = env3_1(env3_3[57]);
var toURLSafe = value10.toURLSafe;
var body = value8.body;
var value11 = Reflect.apply(toURLSafe, value10, [body == null ? value3 : body.redirect]);
if (value11 != null) {
value = env3_1(env3_3[43]);
value.openURL(value11.toString());
}
}
return value3;
}
function _fun35351() { // fn#35351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:6941, offset: 0x01070844, size: 83 bytes, params: 1, frame: 17
var value2;
var defaultImport;
var open;
if (payload.guildId != null) {
value2 = environment.__proto__.__proto__;
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
open = defaultImport.open;
payloadBinding = payload;
Reflect.apply(open, defaultImport, [payloadBinding.guildId, payloadBinding.settingsSection, undefined,
payloadBinding.settingsSubsection]);
}
}
function _fun35352() { // fn#35352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:7143, offset: 0x01070897, size: 80 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = require(12662) /* metro dependency 12662: GuildSettingsPickerActionCreatorsNative */;
const openGuildSettingsPickerModal = value.openGuildSettingsPickerModal;
const payloadBinding = payload;
Reflect.apply(openGuildSettingsPickerModal, value, [{section: payloadBinding.settingsSection,
subsection: payloadBinding.settingsSubsection, feature: payloadBinding.feature}]);
}
function _fun35353() { // fn#35353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:7562, offset: 0x010708e7, size: 50 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = require(9151) /* metro dependency 9151: InstantInviteUtils */;
value.showInstantInviteActionSheetForChannel(payload.channelId);
}
function* _fun35356() { // fn#35356, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:7922, offset: 0x01070989, size: 300 bytes, params: 1, frame: 18
var binding3;
if (true) {
value = environment.__proto__;
var binding = env1_9;
var PREMIUM_CHECKOUT_SUCCESS = env3_22.PREMIUM_CHECKOUT_SUCCESS;
if (binding === PREMIUM_CHECKOUT_SUCCESS) {
env3_9('succeeded');
} else {
binding = env1_9;
var PREMIUM_SUBSCRIPTION_UPDATE = env3_22.PREMIUM_SUBSCRIPTION_UPDATE;
if (binding === PREMIUM_SUBSCRIPTION_UPDATE) {
env3_0(env3_3[65]).fetchSubscriptions();
return undefined;
}
binding = env1_9;
var GUILD_BOOST_CHECKOUT_SUCCESS = env3_22.GUILD_BOOST_CHECKOUT_SUCCESS;
if (binding !== GUILD_BOOST_CHECKOUT_SUCCESS) {
return undefined;
}
binding = env3_1;
var binding2 = env3_3;
binding(binding2[18]).popAll();
var guildId = env1_0.guildId;
binding = env3_0;
value = binding(binding2[34]);
var property = binding2[45];
yield value(property, binding2.paths);
value = undefined;
if (false) {
return value;
}
property = value.default;
value = property.getGuild(guildId);
if (value != null) {
binding = env3_0;
binding3 = env3_3;
binding(binding3[46]).transitionToGuild(guildId);
binding = env3_1;
binding(binding3[66])(value);
}
}
}
}
function _fun35359() { // fn#35359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:8600, offset: 0x01070b81, size: 91 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
value = importDefault(9279) /* metro dependency 9279: SecureFramesPlatformUtilsNative */;
const handleSecureFramesUserVerificationLink = value.handleSecureFramesUserVerificationLink;
const object = {};
const payloadBinding = payload;
const userId = payloadBinding.userId;
object.userId = userId;
object.fingerprint = payloadBinding.fingerprint.replaceAll(' ', '+');
Reflect.apply(handleSecureFramesUserVerificationLink, value, [object]);
}
function _fun35360() { // fn#35360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:8748, offset: 0x01070bdc, size: 324 bytes, params: 1, frame: 19
var value3;
var moduleValue;
var trackQuestEvent;
const QuestContent = (QuestContentModule).QuestContent;
const questId = payload.questId;
const value2 = null;
if (value2 != questId) {
value3 = environment.__proto__.__proto__;
moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */;
trackQuestEvent = moduleValue.trackQuestEvent;
payloadBinding = payload;
Reflect.apply(trackQuestEvent, moduleValue, [{questId: payloadBinding.questId,
event: AnalyticEvents.QUEST_SHARE_LINK_DEEP_LINKED_INTO_MOBILE_CLIENT,
sourceQuestContent: QuestContent.QUEST_EMBED_MOBILE,
properties: {referrer_id: payloadBinding.referrerId}}]);
}
payloadBinding = payload;
const value4 = undefined;
const sort = value2 == payloadBinding ? value4 : payload.sort;
const filter = value2 == payload ? value4 : payload.filter;
const openQuestHome = QuestUtilsNativeModule.openQuestHome;
const QUEST_SHARE_LINK = QuestContent.QUEST_SHARE_LINK;
Reflect.apply(openQuestHome, QuestUtilsNativeModule, [{scrollToQuestId: payload.questId,
sort: value2 != sort ? sort === '' ? value2 : sort : value2,
filter: value2 != filter ? filter === '' ? value2 : filter : value2, fromContent: QUEST_SHARE_LINK}]);
return value4;
}
function _fun35365() { // fn#35365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:9860, offset: 0x01070e8a, size: 50 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = require(6522) /* metro dependency 6522: BoostingActionCreators */;
value.openApplyBoostModal(payload.guildId);
}
function _fun35367() { // fn#35367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4426:10061, offset: 0x01070f0d, size: 77 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__.__proto__;
(ModalActionCreators).popAll();
(CloseVoicePanels)();
global.setTimeout(function() {
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.QUEST_PREVIEW_TOOL_2,
params: {questId: payload.questId}});
}, 1);
}
}
}
}
global.__d(_fun35323, 4254, [29, 5, 4255, 4117, 7039, 7552, 1226, 661, 1386, 4286, 4661, 8871, 5117, 4095, 12612,
11471, 8224, 11993, 5080, 4008, 12613, 8743, 7007, 10010, 11422, 1848, 8451, 683, 8453, 6838, 9863, 12620,
12633, 10206, 1962, 10203, 12025, 8870, 12635, 12637, 1581, 4662, 12642, 3853, 12644, 1867, 6947, 9037, 9032,
6906, 8915, 9422, 4007, 4123, 1230, 694, 5042, 1471, 9112, 12647, 12662, 477, 12673, 9151, 12680, 4223, 12681,
5120, 6789, 9279, 7110, 6533, 9480, 10381, 12705, 6522, 8088, 4078,
2]) /* metro module 4254, dependencies: [29, 5, 4255, 4117, 7039, 7552, 1226, 661, 1386, 4286, 4661, 8871, 5117, 4095, 12612, 11471, 8224, 11993, 5080, 4008, 12613, 8743, 7007, 10010, 11422, 1848, 8451, 683, 8453, 6838, 9863, 12620, 12633, 10206, 1962, 10203, 12025, 8870, 12635, 12637, 1581, 4662, 12642, 3853, 12644, 1867, 6947, 9037, 9032, 6906, 8915, 9422, 4007, 4123, 1230, 694, 5042, 1471, 9112, 12647, 12662, 477, 12673, 9151, 12680, 4223, 12681, 5120, 6789, 9279, 7110, 6533, 9480, 10381, 12705, 6522, 8088, 4078, 2] */;