Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,248 @@
|
||||
/* Metro module 8877; source: modules/links/LinkAnalyticsUtils.tsx; dependencies: [661, 8788, 1471, 4246, 683, 2] */
|
||||
function _fun69184(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:6, offset: 0x01c6c5bf, size: 316 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_69187 = 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 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
object = {MESSAGE: 'Discord Message Link', CHANNEL: 'Discord Channel Link', SERVER_INVITE: 'Discord Server Invite',
|
||||
GIFT: 'Discord Gift Link', UNKNOWN: 'Unknown', DISCOVERY: 'Discord Discovery Link'};
|
||||
object = [_fun69190, _fun69191, _fun69192];
|
||||
object = {trackDiscordLinkClicked: function(a0) {
|
||||
var defaultImport = importDefault(dependencyMap[4]);
|
||||
var LINK_CLICKED = AnalyticEvents.LINK_CLICKED;
|
||||
var object = {is_discord_link: true};
|
||||
object.discord_link_type = getDiscordLinkTypeFromMetadata(a0);
|
||||
defaultImport.track(LINK_CLICKED, object);
|
||||
}, trackLinkClicked: trackLinkClicked, trackAnnouncementMessageLinkClicked: function({messageId, channelId, guildId,
|
||||
sourceChannelId, sourceGuildId}) {
|
||||
var defaultImport = importDefault(dependencyMap[4]);
|
||||
var ANNOUNCEMENT_MESSAGE_LINK_CLICKED = AnalyticEvents.ANNOUNCEMENT_MESSAGE_LINK_CLICKED;
|
||||
defaultImport.track(ANNOUNCEMENT_MESSAGE_LINK_CLICKED, {message_id: messageId, channel_id: channelId,
|
||||
guild_id: guildId, source_channel_id: sourceChannelId, source_guild_id: sourceGuildId});
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/LinkAnalyticsUtils.tsx');
|
||||
exports.default = object;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_69185(a0, a1) { // fn#69185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:126, offset: 0x01c6c6fb, 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 _fun69186;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_69187(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_69187(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_69187(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun69186;
|
||||
}
|
||||
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 getDiscordLinkTypeFromMetadata(a0) { // fn#69188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:1579, offset: 0x01c6c86f, size: 95 bytes, params: 2, frame: 3
|
||||
return a0.guildId == null || a0.channelId == null ? a0.guildId == null ? env0_4.UNKNOWN : a0.channelId != null ? env0_4.CHANNEL : env0_4.UNKNOWN : a0.messageId != null ? env0_4.MESSAGE : a0.guildId == null ? env0_4.UNKNOWN : a0.channelId != null ? env0_4.CHANNEL : env0_4.UNKNOWN;
|
||||
}
|
||||
|
||||
function getDiscordLinkType(a0, a1) { // fn#69189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:1748, offset: 0x01c6c8ce, size: 128 bytes, params: 3, frame: 18
|
||||
var r4;
|
||||
var r1;
|
||||
var r0;
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var done;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var UNKNOWN;
|
||||
reducibleJoin11: while (true) {
|
||||
reducibleJoin2: while (true) {
|
||||
if (a1 != null) {
|
||||
break reducibleJoin2;
|
||||
}
|
||||
if (a0 == null) {
|
||||
value = environment;
|
||||
UNKNOWN = env0_4.UNKNOWN;
|
||||
r0 = UNKNOWN;
|
||||
break reducibleJoin11;
|
||||
}
|
||||
break reducibleJoin2;
|
||||
}
|
||||
if (a1 == null) {
|
||||
value = environment;
|
||||
value2 = _createForOfIteratorHelperLoose_69185(env0_5);
|
||||
value3 = value2();
|
||||
done = value3.done;
|
||||
reducibleJoin8: while (true) {
|
||||
reducibleJoin7: while (true) {
|
||||
if (done) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
r4 = value3;
|
||||
reducibleLoop5: while (true) {
|
||||
value4 = r4.value;
|
||||
value5 = value4(a0);
|
||||
if (value5 != null) {
|
||||
r1 = value5;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
value6 = value2();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
r4 = value6;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
r0 = r1;
|
||||
break reducibleJoin11;
|
||||
}
|
||||
UNKNOWN = env0_4.UNKNOWN;
|
||||
r1 = UNKNOWN;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
value = environment;
|
||||
value = getDiscordLinkTypeFromMetadata(a1);
|
||||
r0 = value;
|
||||
}
|
||||
break reducibleJoin11;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun69190(a0) { // fn#69190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:1264, offset: 0x01c6c94e, size: 56 bytes, params: 2, frame: 12
|
||||
return (importDefault(8788) /* metro dependency 8788: ValidationUtils */).isInvite(a0) ? env0_4.SERVER_INVITE : null;
|
||||
}
|
||||
|
||||
function _fun69191(a0) { // fn#69191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:1308, offset: 0x01c6c986, size: 133 bytes, params: 2, frame: 15
|
||||
const value2 = (importDefault(1471) /* metro dependency 1471: URLUtils */).safeParseWithQuery(a0);
|
||||
const value3 = null;
|
||||
if (value3 == value2) {
|
||||
return value3;
|
||||
}
|
||||
const linkUtilsModule = require(4246) /* metro dependency 4246: LinkUtils */;
|
||||
const value4 = linkUtilsModule.tryParseChannelPath(value2.path);
|
||||
return value3 == value4 ? value3 : getDiscordLinkTypeFromMetadata({guildId: value4.guildId,
|
||||
channelId: value4.channelId, messageId: value4.messageId});
|
||||
}
|
||||
|
||||
function _fun69192(a0) { // fn#69192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:1531, offset: 0x01c6ca0b, size: 56 bytes, params: 2, frame: 12
|
||||
return (importDefault(8788) /* metro dependency 8788: ValidationUtils */).isDiscoveryLink(a0) ? env0_4.DISCOVERY : null;
|
||||
}
|
||||
|
||||
function trackLinkClicked(a0, a1) { // fn#69194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:2208, offset: 0x01c6ca8d, size: 134 bytes, params: 3, frame: 20
|
||||
var r9;
|
||||
var defaultImport2;
|
||||
var track;
|
||||
var LINK_CLICKED;
|
||||
var object2;
|
||||
const value = null;
|
||||
if (value != a0) {
|
||||
r9 = (importDefault(1471) /* metro dependency 1471: URLUtils */).isDiscordUrl(a0, true) || value != a1;
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
LINK_CLICKED = AnalyticEvents.LINK_CLICKED;
|
||||
object2 = {is_discord_link: r9};
|
||||
object2.discord_link_type = r9 ? getDiscordLinkType(a0, a1) : value;
|
||||
Reflect.apply(track, defaultImport2, [LINK_CLICKED, object2]);
|
||||
} else if (value != a1) {
|
||||
r9 = (importDefault(1471) /* metro dependency 1471: URLUtils */).isDiscordUrl(a0, true) || value != a1;
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
LINK_CLICKED = AnalyticEvents.LINK_CLICKED;
|
||||
object2 = {is_discord_link: r9};
|
||||
object2.discord_link_type = r9 ? getDiscordLinkType(a0, a1) : value;
|
||||
Reflect.apply(track, defaultImport2, [LINK_CLICKED, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 4246; source: modules/links/LinkUtils.tsx; dependencies: [1379, 1867, 3784, 661, 1386, 4100, 2] */
|
||||
function _fun35276(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4418:6, offset: 0x0106d5e0, size: 687 bytes, params: 8, frame: 25
|
||||
const closure = canViewChannel;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const ME = value.ME;
|
||||
const env0_6 = value.Permissions;
|
||||
const StaticChannelRoutes = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoutes;
|
||||
const Array = global.Array;
|
||||
value = Array.from(StaticChannelRoutes);
|
||||
value = value.map(_fun35278);
|
||||
value = value.join('|');
|
||||
let RegExp = global.RegExp;
|
||||
let regExp = new RegExp('^/channels/(\\d+|' + ME + ')(?:/)?(\\d+|' + value + ')?');
|
||||
RegExp = global.RegExp;
|
||||
value = '^/channels/(\\d+|' + ME + ')(?:/)(\\d+|' + value + ')(?:/)(\\d+)';
|
||||
regExp = new RegExp(value);
|
||||
RegExp = global.RegExp;
|
||||
regExp = new RegExp('^/channels/(\\d+)(?:/)(\\d+)(?:/threads/)(\\d+)(?:/)(\\d+)');
|
||||
RegExp = global.RegExp;
|
||||
regExp = '^/channels/(\\d+|' + ME + ')(?:/)(\\d+)/roll-dice(?:/(\\d+)d(\\d+))?$';
|
||||
regExp = new RegExp(regExp);
|
||||
RegExp = global.RegExp;
|
||||
regExp = new RegExp('^/guild-stages/(\\d+)(?:/)?(\\d+)?');
|
||||
RegExp = global.RegExp;
|
||||
regExp = new RegExp('^/events/(\\d+)(?:/)(\\d+)?((?:/)(\\d+))?');
|
||||
RegExp = global.RegExp;
|
||||
regExp = '^https://(?:(?:canary\\.|ptb\\.)?discord(?:app)?.com|staging\\.discord\\.co)/channels/(\\d+|' + ME + ')(?:/(\\d+|[a-zA-Z-]+))?(?:/(\\d+|[a-zA-Z-]+))?';
|
||||
regExp = new RegExp(regExp);
|
||||
RegExp = global.RegExp;
|
||||
regExp = new RegExp('^https://(?:(?:canary\\.|ptb\\.)?discord(?:app)?.com|staging\\.discord\\.co)/channels/(\\d+)(?:/)(\\d+)(?:/threads/)(\\d+)(?:/)(\\d+)');
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/LinkUtils.tsx');
|
||||
exports.CHANNEL_OR_MESSAGES_URL_RE = regExp;
|
||||
exports.MEDIA_POST_URL_RE = regExp;
|
||||
exports.tryParseChannelPath = tryParseChannelPath;
|
||||
exports.tryParseEventDetailsPath = tryParseEventDetailsPath;
|
||||
exports.canViewChannel = closure;
|
||||
exports.isAccessibleChannelPath = isAccessibleChannelPath;
|
||||
exports.tryParseDiceRollLink = tryParseDiceRollLink;
|
||||
}
|
||||
|
||||
function canViewChannel(a0) { // fn#35277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4418:940, offset: 0x0106d88f, size: 53 bytes, params: 2, frame: 14
|
||||
const isPrivate = a0.isPrivate();
|
||||
return isPrivate ? !!isPrivate : PermissionStore.can(Permissions.VIEW_CHANNEL, a0);
|
||||
}
|
||||
|
||||
function _fun35278(a0) { // fn#35278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4418:210, offset: 0x0106d8c4, size: 41 bytes, params: 2, frame: 11
|
||||
return (importDefault(4100) /* metro dependency 4100: RegexUtils */).escape(a0);
|
||||
}
|
||||
|
||||
function tryParseChannelPath(a0) { // fn#35279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4418:1150, offset: 0x0106d8ed, size: 250 bytes, params: 2, frame: 18
|
||||
var r1;
|
||||
var property;
|
||||
let value = null;
|
||||
if (value == a0) {
|
||||
return value;
|
||||
}
|
||||
const value3 = a0.match(env0_8);
|
||||
if (value != value3) {
|
||||
if (value3.length > 3) {
|
||||
return {guildId: value3[1], channelId: value3[2], messageId: value3[3]};
|
||||
}
|
||||
}
|
||||
const value4 = a0.match(env0_9);
|
||||
if (value != value4) {
|
||||
if (value4.length > 4) {
|
||||
return {guildId: value4[1], channelId: value4[2], threadId: value4[3], messageId: value4[4]};
|
||||
}
|
||||
}
|
||||
const value5 = a0.match(env0_7);
|
||||
if (value == value5) {
|
||||
a0.match(env0_11);
|
||||
r1 = value;
|
||||
} else if (value5.length > 1) {
|
||||
property = value5[2];
|
||||
value = undefined;
|
||||
r1 = {guildId: value5[1], channelId: value != property ? property : value};
|
||||
} else {
|
||||
a0.match(env0_11);
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function tryParseEventDetailsPath(a0) { // fn#35280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4418:1542, offset: 0x0106d9e7, size: 94 bytes, params: 2, frame: 13
|
||||
const value = null;
|
||||
if (value == a0) {
|
||||
return value;
|
||||
}
|
||||
const value3 = a0.match(env0_12);
|
||||
return value != value3 && value3.length > 1 ? {guildId: value3[1], guildEventId: value3[2],
|
||||
recurrenceId: value3[4]} : value;
|
||||
}
|
||||
|
||||
function isAccessibleChannelPath({guildId, channelId}) { // fn#35281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4418:1761, offset: 0x0106da45, size: 91 bytes, params: 2, frame: 13
|
||||
if (GuildStore.getGuild(guildId) == null) {
|
||||
if (guildId !== ME) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (channelId == null) {
|
||||
return true;
|
||||
}
|
||||
const channel = ChannelStore.getChannel(channelId);
|
||||
return channel != null && canViewChannel(channel);
|
||||
}
|
||||
|
||||
function tryParseDiceRollLink(a0) { // fn#35282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4418:1958, offset: 0x0106daa0, size: 173 bytes, params: 2, frame: 19
|
||||
var r3;
|
||||
var r1;
|
||||
var length;
|
||||
var object2;
|
||||
let value = null;
|
||||
if (value == a0) {
|
||||
return value;
|
||||
}
|
||||
const value3 = a0.match(env0_10);
|
||||
if (value != value3) {
|
||||
length = value3.length;
|
||||
if (length > 2) {
|
||||
object2 = {};
|
||||
value = 1;
|
||||
object2.guildId = value3[value];
|
||||
object2.channelId = value3[2];
|
||||
length = value3.length;
|
||||
r3 = length !== 5 ? value : global.parseInt(value3[3], 10);
|
||||
object2.diceCount = r3;
|
||||
length = value3.length;
|
||||
value = 6;
|
||||
r3 = length !== 5 ? value : global.parseInt(value3[4], 10);
|
||||
object2.diceSides = r3;
|
||||
r1 = object2;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 3768; source: modules/links/getLocalizedLink.tsx; dependencies: [1244, 2] */
|
||||
function _fun28555(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3895:6, offset: 0x00f7d58f, size: 94 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/getLocalizedLink.tsx');
|
||||
exports.default = getLocalizedLink;
|
||||
}
|
||||
|
||||
function getLocalizedLink(a0) { // fn#28556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3895:170, offset: 0x00f7d5ed, size: 68 bytes, params: 2, frame: 12
|
||||
const value = (require(1244) /* metro dependency 1244: indexNative */).intl.currentLocale.toLowerCase();
|
||||
return value in a0 ? a0[value] : a0.default;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,423 @@
|
||||
/* Metro module 6839; source: modules/links/isAccessibleChannelOrThreadPath.tsx; dependencies: [5, 1936, 6599, 1379, 1938, 1867, 661, 1386, 6840, 6849, 6829, 6853, 6855, 5103, 6856, 5112, 6857, 6858, 1360, 6904, 4603, 4246, 2] */
|
||||
function _fun53847(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7017:6, offset: 0x013574a9, size: 269 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const gatedChannelStore = importDefault(1936) /* metro dependency 1936: GatedChannelStore */;
|
||||
const guildOnboardingStore = importDefault(6599) /* metro dependency 6599: GuildOnboardingStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = value.GuildFeatures;
|
||||
const env0_10 = value.ME;
|
||||
value = require(1386) /* metro dependency 1386: ChannelConstants */;
|
||||
const env0_11 = value.isStaticChannelRoute;
|
||||
const env0_12 = value.StaticChannelRoute;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/isAccessibleChannelOrThreadPath.tsx');
|
||||
exports.default = function() {
|
||||
return _isAccessibleChannelOrThreadPath.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _isAccessibleChannelOrThreadPath() { // fn#53848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7017:249, offset: 0x013575b6, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun53850).apply(this, arguments);
|
||||
}
|
||||
|
||||
async function _fun53850({guildId, channelId}) { // fn#53850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7017:336, offset: 0x013575f8, size: 1148 bytes, params: 2, frame: 25
|
||||
var r13;
|
||||
var r7;
|
||||
var r3;
|
||||
var channel;
|
||||
var value8;
|
||||
var value9;
|
||||
var channel2;
|
||||
var value15;
|
||||
var value16;
|
||||
var value26;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_8;
|
||||
const guild = binding.getGuild(guildId);
|
||||
const unsafeMutableRoles = env2_7.getUnsafeMutableRoles(guildId);
|
||||
if (guild != null) {
|
||||
if (channelId == null) {
|
||||
return true;
|
||||
}
|
||||
if (env2_11(channelId)) {
|
||||
if (env2_12.ROLE_SUBSCRIPTIONS === channelId) {
|
||||
return env2_0(env2_2[8]).areRoleSubscriptionsVisibleInGuild(guildId, unsafeMutableRoles);
|
||||
}
|
||||
if (env2_12.SERVER_MONETIZATION_ONBOARDING === channelId) {
|
||||
value26 = guild != null;
|
||||
if (value26) {
|
||||
value = env2_0(env2_2[9]);
|
||||
value = value.canUserSeeMonetizationOnboarding(guild);
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = value26;
|
||||
}
|
||||
return r3;
|
||||
}
|
||||
if (env2_12.GAME_SHOP === channelId) {
|
||||
value = env2_0(env2_2[10]);
|
||||
return value.hasSocialLayerStorefront(guild ?? ({id: guildId, type: 'id-only'}));
|
||||
}
|
||||
if (env2_12.GUILD_SHOP === channelId) {
|
||||
return env2_0(env2_2[11]).isGuildShopVisibleInGuild(guild, unsafeMutableRoles);
|
||||
}
|
||||
if (env2_12.MEMBER_APPLICATIONS === channelId) {
|
||||
return env2_0(env2_2[12]).canReviewGuildMemberApplications(guildId);
|
||||
}
|
||||
if (env2_12.GUILD_HOME === channelId) {
|
||||
return env2_0(env2_2[13]).canSeeOnboardingHome(guildId);
|
||||
}
|
||||
if (env2_12.CHANNEL_BROWSER === channelId) {
|
||||
return guild != null && guild.features.has(env2_9.COMMUNITY);
|
||||
}
|
||||
if (env2_12.GUILD_ONBOARDING === channelId) {
|
||||
return env2_5.shouldShowOnboarding(guildId);
|
||||
}
|
||||
if (env2_12.CUSTOMIZE_COMMUNITY === channelId) {
|
||||
return guild != null && guild.features.has(env2_9.COMMUNITY);
|
||||
}
|
||||
if (env2_12.MEMBER_SAFETY === channelId) {
|
||||
return env2_0(env2_2[14]).canAccessMemberSafetyPage(guildId);
|
||||
}
|
||||
if (env2_12.GUILD_BOOSTS === channelId) {
|
||||
return true;
|
||||
}
|
||||
if (env2_12.REPORT_TO_MOD === channelId) {
|
||||
return guild != null && env2_1(env2_2[15])(guild);
|
||||
}
|
||||
if (env2_12.GAME_SERVERS === channelId) {
|
||||
r7 = env2_0(env2_2[16]).getGameServerEnabled(guildId,
|
||||
'isAccessibleChannelOrThreadPath') && guild != null;
|
||||
r7 = r7 && guild.features.has(env2_9.GAME_SERVERS);
|
||||
return r7;
|
||||
}
|
||||
if (env2_12.GUILD_OFFICIAL_MESSAGES === channelId) {
|
||||
return env2_0(env2_2[17]).isGuildOfficialMessagesEnabled(guild, 'isAccessibleChannelOrThreadPath');
|
||||
}
|
||||
binding = env2_0;
|
||||
binding(env2_2[18]).assertNever(channelId);
|
||||
binding = env2_6;
|
||||
channel = binding.getChannel(channelId);
|
||||
value8 = channel != null;
|
||||
if (value8) {
|
||||
r7 = value8;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(channel) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
binding = env2_1;
|
||||
value9 = binding(env2_2[19]);
|
||||
await value9.loadThread(channelId);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_6;
|
||||
channel2 = binding.getChannel(channelId);
|
||||
if (channel2 == null && guildId === env2_10) {
|
||||
value15 = env2_1(env2_2[20]);
|
||||
await value15.openChannel(channelId);
|
||||
value16 = undefined;
|
||||
if (false) {
|
||||
return value16;
|
||||
}
|
||||
r13 = value16;
|
||||
r7 = r13 != null;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
r13 = channel2;
|
||||
r7 = r13 != null;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId, channelId));
|
||||
return r7;
|
||||
}
|
||||
binding = env2_6;
|
||||
channel = binding.getChannel(channelId);
|
||||
value8 = channel != null;
|
||||
if (value8) {
|
||||
r7 = value8;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(channel) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
binding = env2_1;
|
||||
value9 = binding(env2_2[19]);
|
||||
await value9.loadThread(channelId);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_6;
|
||||
channel2 = binding.getChannel(channelId);
|
||||
} else {
|
||||
if (guildId === env2_10) {
|
||||
if (channelId == null) {
|
||||
return true;
|
||||
}
|
||||
if (env2_11(channelId)) {
|
||||
if (env2_12.ROLE_SUBSCRIPTIONS === channelId) {
|
||||
return env2_0(env2_2[8]).areRoleSubscriptionsVisibleInGuild(guildId, unsafeMutableRoles);
|
||||
}
|
||||
if (env2_12.SERVER_MONETIZATION_ONBOARDING === channelId) {
|
||||
value26 = guild != null;
|
||||
if (value26) {
|
||||
value = env2_0(env2_2[9]);
|
||||
value = value.canUserSeeMonetizationOnboarding(guild);
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = value26;
|
||||
}
|
||||
return r3;
|
||||
}
|
||||
if (env2_12.GAME_SHOP === channelId) {
|
||||
value = env2_0(env2_2[10]);
|
||||
return value.hasSocialLayerStorefront(guild ?? ({id: guildId, type: 'id-only'}));
|
||||
}
|
||||
if (env2_12.GUILD_SHOP === channelId) {
|
||||
return env2_0(env2_2[11]).isGuildShopVisibleInGuild(guild, unsafeMutableRoles);
|
||||
}
|
||||
if (env2_12.MEMBER_APPLICATIONS === channelId) {
|
||||
return env2_0(env2_2[12]).canReviewGuildMemberApplications(guildId);
|
||||
}
|
||||
if (env2_12.GUILD_HOME === channelId) {
|
||||
return env2_0(env2_2[13]).canSeeOnboardingHome(guildId);
|
||||
}
|
||||
if (env2_12.CHANNEL_BROWSER === channelId) {
|
||||
return guild != null && guild.features.has(env2_9.COMMUNITY);
|
||||
}
|
||||
if (env2_12.GUILD_ONBOARDING === channelId) {
|
||||
return env2_5.shouldShowOnboarding(guildId);
|
||||
}
|
||||
if (env2_12.CUSTOMIZE_COMMUNITY === channelId) {
|
||||
return guild != null && guild.features.has(env2_9.COMMUNITY);
|
||||
}
|
||||
if (env2_12.MEMBER_SAFETY === channelId) {
|
||||
return env2_0(env2_2[14]).canAccessMemberSafetyPage(guildId);
|
||||
}
|
||||
if (env2_12.GUILD_BOOSTS === channelId) {
|
||||
return true;
|
||||
}
|
||||
if (env2_12.REPORT_TO_MOD === channelId) {
|
||||
return guild != null && env2_1(env2_2[15])(guild);
|
||||
}
|
||||
if (env2_12.GAME_SERVERS === channelId) {
|
||||
r7 = env2_0(env2_2[16]).getGameServerEnabled(guildId,
|
||||
'isAccessibleChannelOrThreadPath') && guild != null;
|
||||
r7 = r7 && guild.features.has(env2_9.GAME_SERVERS);
|
||||
return r7;
|
||||
}
|
||||
if (env2_12.GUILD_OFFICIAL_MESSAGES === channelId) {
|
||||
return env2_0(env2_2[17]).isGuildOfficialMessagesEnabled(guild, 'isAccessibleChannelOrThreadPath');
|
||||
}
|
||||
binding = env2_0;
|
||||
binding(env2_2[18]).assertNever(channelId);
|
||||
binding = env2_6;
|
||||
channel = binding.getChannel(channelId);
|
||||
value8 = channel != null;
|
||||
if (value8) {
|
||||
r7 = value8;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(channel) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
binding = env2_1;
|
||||
value9 = binding(env2_2[19]);
|
||||
await value9.loadThread(channelId);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_6;
|
||||
channel2 = binding.getChannel(channelId);
|
||||
if (channel2 == null && guildId === env2_10) {
|
||||
value15 = env2_1(env2_2[20]);
|
||||
await value15.openChannel(channelId);
|
||||
value16 = undefined;
|
||||
if (false) {
|
||||
return value16;
|
||||
}
|
||||
r13 = value16;
|
||||
r7 = r13 != null;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
r13 = channel2;
|
||||
r7 = r13 != null;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
binding = env2_6;
|
||||
channel = binding.getChannel(channelId);
|
||||
value8 = channel != null;
|
||||
if (value8) {
|
||||
r7 = value8;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(channel) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
binding = env2_1;
|
||||
value9 = binding(env2_2[19]);
|
||||
await value9.loadThread(channelId);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_6;
|
||||
channel2 = binding.getChannel(channelId);
|
||||
if (channel2 == null && guildId === env2_10) {
|
||||
value15 = env2_1(env2_2[20]);
|
||||
await value15.openChannel(channelId);
|
||||
value16 = undefined;
|
||||
if (false) {
|
||||
return value16;
|
||||
}
|
||||
r13 = value16;
|
||||
r7 = r13 != null;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
r13 = channel2;
|
||||
r7 = r13 != null;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId, channelId));
|
||||
return r7;
|
||||
}
|
||||
if (channelId !== env2_12.GAME_SHOP) {
|
||||
return false;
|
||||
}
|
||||
if (channelId == null) {
|
||||
return true;
|
||||
}
|
||||
if (env2_11(channelId)) {
|
||||
if (env2_12.ROLE_SUBSCRIPTIONS === channelId) {
|
||||
return env2_0(env2_2[8]).areRoleSubscriptionsVisibleInGuild(guildId, unsafeMutableRoles);
|
||||
}
|
||||
if (env2_12.SERVER_MONETIZATION_ONBOARDING === channelId) {
|
||||
value26 = guild != null;
|
||||
if (value26) {
|
||||
value = env2_0(env2_2[9]);
|
||||
value = value.canUserSeeMonetizationOnboarding(guild);
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = value26;
|
||||
}
|
||||
return r3;
|
||||
}
|
||||
if (env2_12.GAME_SHOP === channelId) {
|
||||
value = env2_0(env2_2[10]);
|
||||
return value.hasSocialLayerStorefront(guild ?? ({id: guildId, type: 'id-only'}));
|
||||
}
|
||||
if (env2_12.GUILD_SHOP === channelId) {
|
||||
return env2_0(env2_2[11]).isGuildShopVisibleInGuild(guild, unsafeMutableRoles);
|
||||
}
|
||||
if (env2_12.MEMBER_APPLICATIONS === channelId) {
|
||||
return env2_0(env2_2[12]).canReviewGuildMemberApplications(guildId);
|
||||
}
|
||||
if (env2_12.GUILD_HOME === channelId) {
|
||||
return env2_0(env2_2[13]).canSeeOnboardingHome(guildId);
|
||||
}
|
||||
if (env2_12.CHANNEL_BROWSER === channelId) {
|
||||
return guild != null && guild.features.has(env2_9.COMMUNITY);
|
||||
}
|
||||
if (env2_12.GUILD_ONBOARDING === channelId) {
|
||||
return env2_5.shouldShowOnboarding(guildId);
|
||||
}
|
||||
if (env2_12.CUSTOMIZE_COMMUNITY === channelId) {
|
||||
return guild != null && guild.features.has(env2_9.COMMUNITY);
|
||||
}
|
||||
if (env2_12.MEMBER_SAFETY === channelId) {
|
||||
return env2_0(env2_2[14]).canAccessMemberSafetyPage(guildId);
|
||||
}
|
||||
if (env2_12.GUILD_BOOSTS === channelId) {
|
||||
return true;
|
||||
}
|
||||
if (env2_12.REPORT_TO_MOD === channelId) {
|
||||
return guild != null && env2_1(env2_2[15])(guild);
|
||||
}
|
||||
if (env2_12.GAME_SERVERS === channelId) {
|
||||
r7 = env2_0(env2_2[16]).getGameServerEnabled(guildId,
|
||||
'isAccessibleChannelOrThreadPath') && guild != null;
|
||||
r7 = r7 && guild.features.has(env2_9.GAME_SERVERS);
|
||||
return r7;
|
||||
}
|
||||
if (env2_12.GUILD_OFFICIAL_MESSAGES === channelId) {
|
||||
return env2_0(env2_2[17]).isGuildOfficialMessagesEnabled(guild, 'isAccessibleChannelOrThreadPath');
|
||||
}
|
||||
binding = env2_0;
|
||||
binding(env2_2[18]).assertNever(channelId);
|
||||
binding = env2_6;
|
||||
channel = binding.getChannel(channelId);
|
||||
value8 = channel != null;
|
||||
if (value8) {
|
||||
r7 = value8;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(channel) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
binding = env2_1;
|
||||
value9 = binding(env2_2[19]);
|
||||
await value9.loadThread(channelId);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_6;
|
||||
channel2 = binding.getChannel(channelId);
|
||||
if (channel2 == null && guildId === env2_10) {
|
||||
value15 = env2_1(env2_2[20]);
|
||||
await value15.openChannel(channelId);
|
||||
value16 = undefined;
|
||||
if (false) {
|
||||
return value16;
|
||||
}
|
||||
r13 = value16;
|
||||
r7 = r13 != null;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
r13 = channel2;
|
||||
r7 = r13 != null;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId, channelId));
|
||||
return r7;
|
||||
}
|
||||
channel = env2_6.getChannel(channelId);
|
||||
value8 = channel != null;
|
||||
if (value8) {
|
||||
r7 = value8;
|
||||
r7 = r7 && (env2_0(env2_2[21]).canViewChannel(channel) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
return r7;
|
||||
}
|
||||
value9 = env2_1(env2_2[19]);
|
||||
await value9.loadThread(channelId);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
channel2 = env2_6.getChannel(channelId);
|
||||
}
|
||||
if (channel2 == null && guildId === env2_10) {
|
||||
value15 = env2_1(env2_2[20]);
|
||||
await value15.openChannel(channelId);
|
||||
value16 = undefined;
|
||||
if (false) {
|
||||
return value16;
|
||||
}
|
||||
r13 = value16;
|
||||
} else {
|
||||
r13 = channel2;
|
||||
}
|
||||
return r13 != null && (env2_0(env2_2[21]).canViewChannel(r13) || env2_4.isChannelGatedAndVisible(guildId,
|
||||
channelId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,432 @@
|
||||
/* Metro module 4078; source: modules/links/native/BrowserManager.tsx; dependencies: [27, 629, 477, 4079, 676, 3853, 1360, 2] */
|
||||
function _fun33440(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:6, offset: 0x0102e8e1, size: 331 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getBrowserManagerIsChromeInstalled;
|
||||
const closure2 = getBrowserManagerSelectedBrowser;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.AppState;
|
||||
const env0_4 = value.NativeEventEmitter;
|
||||
const NativeModules = value.NativeModules;
|
||||
const env0_6 = NativeModules.BrowserManager;
|
||||
const env0_7 = (require(629) /* metro dependency 629 */).create(_fun33444);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/native/BrowserManager.tsx');
|
||||
exports.useBrowserManagerIsChromeInstalled = useBrowserManagerIsChromeInstalled;
|
||||
exports.getBrowserManagerIsChromeInstalled = closure;
|
||||
exports.useBrowserManagerSupportsInAppBrowser = useBrowserManagerSupportsInAppBrowser;
|
||||
exports.useBrowserManagerSelectedBrowser = useBrowserManagerSelectedBrowser;
|
||||
exports.getBrowserManagerSelectedBrowser = closure2;
|
||||
exports.useIsInAppBrowserOpen = useIsInAppBrowserOpen;
|
||||
exports.getIsInAppBrowserOpen = getIsInAppBrowserOpen;
|
||||
exports.subscribeToIsInAppBrowserOpen = subscribeToIsInAppBrowserOpen;
|
||||
exports.browserManagerOpenUrl = browserManagerOpenUrl;
|
||||
exports.browserManagerSelectBrowser = browserManagerSelectBrowser;
|
||||
exports.browserManagerCloseBrowser = browserManagerCloseBrowser;
|
||||
exports.openPlayStoreInlineInstall = openPlayStoreInlineInstall;
|
||||
}
|
||||
|
||||
function removeInAppBrowserCloseSubscription() { // fn#33441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:536, offset: 0x0102ea2c, size: 31 bytes, params: 1, frame: 11
|
||||
const binding = env0_8;
|
||||
if (binding != null) {
|
||||
binding.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function getBrowserManagerIsChromeInstalled() { // fn#33442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:620, offset: 0x0102ea4b, size: 25 bytes, params: 1, frame: 9
|
||||
const binding = env0_7;
|
||||
const getState = binding.getState;
|
||||
return Reflect.apply(getState, binding, []).isChromeInstalled;
|
||||
}
|
||||
|
||||
function getBrowserManagerSelectedBrowser() { // fn#33443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:704, offset: 0x0102ea64, size: 25 bytes, params: 1, frame: 9
|
||||
const binding = env0_7;
|
||||
const getState = binding.getState;
|
||||
return Reflect.apply(getState, binding, []).selectedBrowser;
|
||||
}
|
||||
|
||||
function _fun33444() { // fn#33444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:197, offset: 0x0102ea7d, size: 268 bytes, params: 1, frame: 16
|
||||
var isChromeInstalled;
|
||||
var selectedBrowser;
|
||||
var supportsInAppBrowser;
|
||||
var defaultImport;
|
||||
var defaultImport2;
|
||||
const object2 = {};
|
||||
var value;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
defaultImport = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
isChromeInstalled = defaultImport.getConstants().isChromeInstalled;
|
||||
} else {
|
||||
isChromeInstalled = BrowserManager.isChromeInstalled;
|
||||
}
|
||||
object2.isChromeInstalled = isChromeInstalled;
|
||||
const moduleValue2 = platformUtilsModule;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
defaultImport2 = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
selectedBrowser = defaultImport2.getConstants().selectedBrowser;
|
||||
} else {
|
||||
selectedBrowser = BrowserManager.selectedBrowser;
|
||||
}
|
||||
object2.selectedBrowser = selectedBrowser;
|
||||
const moduleValue3 = platformUtilsModule;
|
||||
if (moduleValue3.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
supportsInAppBrowser = value.getConstants().supportsInAppBrowser;
|
||||
} else {
|
||||
supportsInAppBrowser = BrowserManager.supportsInAppBrowser;
|
||||
}
|
||||
object2.supportsInAppBrowser = supportsInAppBrowser;
|
||||
object2.isInAppBrowserOpen = false;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function useBrowserManagerIsChromeInstalled() { // fn#33445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:894, offset: 0x0102eb89, size: 23 bytes, params: 1, frame: 11
|
||||
return env0_7(function(a0) {
|
||||
return a0.isChromeInstalled;
|
||||
});
|
||||
}
|
||||
|
||||
function useBrowserManagerSupportsInAppBrowser() { // fn#33447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:1088, offset: 0x0102ebab, size: 23 bytes, params: 1, frame: 11
|
||||
return env0_7(function(a0) {
|
||||
return a0.supportsInAppBrowser;
|
||||
});
|
||||
}
|
||||
|
||||
function useBrowserManagerSelectedBrowser() { // fn#33449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:1211, offset: 0x0102ebcd, size: 23 bytes, params: 1, frame: 11
|
||||
return env0_7(function(a0) {
|
||||
return a0.selectedBrowser;
|
||||
});
|
||||
}
|
||||
|
||||
function useIsInAppBrowserOpen() { // fn#33451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:1381, offset: 0x0102ebef, size: 23 bytes, params: 1, frame: 11
|
||||
return env0_7(function(a0) {
|
||||
return a0.isInAppBrowserOpen;
|
||||
});
|
||||
}
|
||||
|
||||
function getIsInAppBrowserOpen() { // fn#33453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:1475, offset: 0x0102ec11, size: 25 bytes, params: 1, frame: 9
|
||||
const binding = env0_7;
|
||||
const getState = binding.getState;
|
||||
return Reflect.apply(getState, binding, []).isInAppBrowserOpen;
|
||||
}
|
||||
|
||||
function subscribeToIsInAppBrowserOpen(a0) { // fn#33454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:1580, offset: 0x0102ec2a, size: 34 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return env0_7.subscribe(_fun33455);
|
||||
}
|
||||
|
||||
function browserManagerOpenUrl(a0) { // fn#33456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:1768, offset: 0x0102ec81, size: 542 bytes, params: 2, frame: 17
|
||||
var r1;
|
||||
var IN_APP;
|
||||
var moduleValue;
|
||||
var binding;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
let value = a1;
|
||||
let r5 = value !== undefined ? value : getBrowserManagerSelectedBrowser();
|
||||
const WebBrowserType = (require(676) /* metro dependency 676: ConstantsIOS */).WebBrowserType;
|
||||
const SAFARI = WebBrowserType.SAFARI;
|
||||
if (r5 === SAFARI) {
|
||||
(importDefault(3853) /* metro dependency 3853: Linking */).performURLNavigation(a0);
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
const CHROME = WebBrowserType.CHROME;
|
||||
if (r5 !== CHROME) {
|
||||
IN_APP = WebBrowserType.IN_APP;
|
||||
if (r5 !== IN_APP) {
|
||||
if (WebBrowserType.IN_APP === r5) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue3.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInAppURL(a0);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = BrowserManager.openInAppURL(a0);
|
||||
}
|
||||
return r5.then(_fun33457);
|
||||
}
|
||||
if (WebBrowserType.CHROME === r5) {
|
||||
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInChromeURL(a0);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = BrowserManager.openInChromeURL(a0, true);
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value = require(1360) /* metro dependency 1360: GlobalUtils */;
|
||||
return value.assertNever(r5);
|
||||
}
|
||||
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue.isAndroid()) {
|
||||
binding = env0_7;
|
||||
if (binding.getState().supportsInAppBrowser) {
|
||||
if (WebBrowserType.IN_APP === r5) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue3.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInAppURL(a0);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = BrowserManager.openInAppURL(a0);
|
||||
}
|
||||
return r5.then(_fun33457);
|
||||
}
|
||||
if (WebBrowserType.CHROME === r5) {
|
||||
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInChromeURL(a0);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = BrowserManager.openInChromeURL(a0, true);
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value = require(1360) /* metro dependency 1360: GlobalUtils */;
|
||||
return value.assertNever(r5);
|
||||
}
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
value.performURLNavigation(a0);
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
IN_APP = WebBrowserType.IN_APP;
|
||||
if (IN_APP === r5) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue3.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInAppURL(a0);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = BrowserManager.openInAppURL(a0);
|
||||
}
|
||||
return r5.then(_fun33457);
|
||||
}
|
||||
if (WebBrowserType.CHROME === r5) {
|
||||
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInChromeURL(a0);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = BrowserManager.openInChromeURL(a0, true);
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value = require(1360) /* metro dependency 1360: GlobalUtils */;
|
||||
return value.assertNever(r5);
|
||||
}
|
||||
if (getBrowserManagerIsChromeInstalled()) {
|
||||
IN_APP = WebBrowserType.IN_APP;
|
||||
if (r5 !== IN_APP) {
|
||||
if (WebBrowserType.IN_APP === r5) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue3.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInAppURL(a0);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = BrowserManager.openInAppURL(a0);
|
||||
}
|
||||
return r5.then(_fun33457);
|
||||
}
|
||||
if (WebBrowserType.CHROME === r5) {
|
||||
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInChromeURL(a0);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = BrowserManager.openInChromeURL(a0, true);
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value = require(1360) /* metro dependency 1360: GlobalUtils */;
|
||||
return value.assertNever(r5);
|
||||
}
|
||||
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue.isAndroid()) {
|
||||
binding = env0_7;
|
||||
if (binding.getState().supportsInAppBrowser) {
|
||||
if (WebBrowserType.IN_APP === r5) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue3.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInAppURL(a0);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = BrowserManager.openInAppURL(a0);
|
||||
}
|
||||
return r5.then(_fun33457);
|
||||
}
|
||||
if (WebBrowserType.CHROME === r5) {
|
||||
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInChromeURL(a0);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = BrowserManager.openInChromeURL(a0, true);
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value = require(1360) /* metro dependency 1360: GlobalUtils */;
|
||||
return value.assertNever(r5);
|
||||
}
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
value.performURLNavigation(a0);
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
IN_APP = WebBrowserType.IN_APP;
|
||||
if (IN_APP === r5) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue3.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInAppURL(a0);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = BrowserManager.openInAppURL(a0);
|
||||
}
|
||||
return r5.then(_fun33457);
|
||||
}
|
||||
if (WebBrowserType.CHROME === r5) {
|
||||
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openInChromeURL(a0);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = BrowserManager.openInChromeURL(a0, true);
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value = require(1360) /* metro dependency 1360: GlobalUtils */;
|
||||
return value.assertNever(r5);
|
||||
}
|
||||
(importDefault(3853) /* metro dependency 3853: Linking */).performURLNavigation(a0);
|
||||
const Promise = global.Promise;
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
function browserManagerSelectBrowser(a0) { // fn#33461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:2892, offset: 0x0102eff2, size: 371 bytes, params: 2, frame: 16
|
||||
const WebBrowserType = (require(676) /* metro dependency 676: ConstantsIOS */).WebBrowserType;
|
||||
var defaultImport;
|
||||
const BrowserType = (require(4079) /* metro dependency 4079: NativeBrowserManagerModule */).BrowserType;
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
if (WebBrowserType.SAFARI === a0) {
|
||||
defaultImport3 = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
defaultImport3.selectBrowser(BrowserType.SAFARI);
|
||||
} else if (WebBrowserType.IN_APP === a0) {
|
||||
defaultImport2 = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
defaultImport2.selectBrowser(BrowserType.IN_APP);
|
||||
} else if (WebBrowserType.CHROME === a0) {
|
||||
defaultImport = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
defaultImport.selectBrowser(BrowserType.CHROME);
|
||||
}
|
||||
} else {
|
||||
NativeModules.BrowserManager.selectBrowser(a0);
|
||||
}
|
||||
env0_7.setState({selectedBrowser: a0});
|
||||
}
|
||||
|
||||
function browserManagerCloseBrowser() { // fn#33462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:3333, offset: 0x0102f165, size: 86 bytes, params: 1, frame: 13
|
||||
env0_7.setState({isInAppBrowserOpen: false});
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (!platformUtilsModule.isAndroid()) {
|
||||
NativeModules.BrowserManager.closeBrowser();
|
||||
}
|
||||
}
|
||||
|
||||
function openPlayStoreInlineInstall(a0, a1, a2) { // fn#33463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:3490, offset: 0x0102f1bb, size: 188 bytes, params: 4, frame: 19
|
||||
var r0;
|
||||
const env0_0 = a2;
|
||||
const Date = global.Date;
|
||||
const env0_1 = Date.now();
|
||||
var value;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
|
||||
value = value.openPlayStoreInline(a0, a1, _fun33464);
|
||||
r0 = value;
|
||||
} else if (a1 == null) {
|
||||
r0 = global.Promise.resolve(false);
|
||||
} else {
|
||||
if (a2 != null) {
|
||||
BrowserManager.setOpenAppStoreDismissCallback(_fun33465);
|
||||
}
|
||||
r0 = BrowserManager.openAppStoreInline(a0, a1);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun33455(a0, a1) { // fn#33455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:1642, offset: 0x0102ec4c, size: 53 bytes, params: 3, frame: 13
|
||||
if (a0.isInAppBrowserOpen !== a1.isInAppBrowserOpen) {
|
||||
env0_0(a0.isInAppBrowserOpen, a1.isInAppBrowserOpen);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33457(a0) { // fn#33457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:2220, offset: 0x0102ee9f, size: 53 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
var value;
|
||||
if (a0 !== false) {
|
||||
value = environment.__proto__;
|
||||
env1_7.setState({isInAppBrowserOpen: true});
|
||||
subscribeToInAppBrowserClose();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33464() { // fn#33464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:3610, offset: 0x0102f277, size: 53 bytes, params: 1, frame: 12
|
||||
const Date = global.Date;
|
||||
let value = Date.now();
|
||||
value -= env0_1;
|
||||
if (importDefault != null) {
|
||||
importDefault(value);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33465() { // fn#33465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:3723, offset: 0x0102f2ac, size: 41 bytes, params: 1, frame: 11
|
||||
const Date = global.Date;
|
||||
let value = Date.now();
|
||||
value -= env0_1;
|
||||
importDefault(value);
|
||||
}
|
||||
|
||||
function subscribeToInAppBrowserClose() { // fn#33458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:2269, offset: 0x0102eed4, size: 166 bytes, params: 1, frame: 16
|
||||
var moduleValue2;
|
||||
var value2;
|
||||
var nativeEventEmitter;
|
||||
removeInAppBrowserCloseSubscription();
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isIOS()) {
|
||||
value2 = Object.create(NativeEventEmitter.prototype, {constructor: {value: NativeEventEmitter}});
|
||||
nativeEventEmitter = new NativeEventEmitter(BrowserManager);
|
||||
env2_8 = (nativeEventEmitter instanceof Object ? nativeEventEmitter : value2).addListener('safariViewControllerDidFinish',
|
||||
|
||||
_fun33459);
|
||||
} else {
|
||||
moduleValue2 = platformUtilsModule;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
env2_8 = AppState.addEventListener('change', _fun33460);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33459() { // fn#33459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:2431, offset: 0x0102ef7a, size: 39 bytes, params: 1, frame: 13
|
||||
env3_7.setState({isInAppBrowserOpen: false});
|
||||
removeInAppBrowserCloseSubscription();
|
||||
}
|
||||
|
||||
function _fun33460(a0) { // fn#33460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4236:2571, offset: 0x0102efa1, size: 81 bytes, params: 2, frame: 13
|
||||
if (a0 === 'active' && env3_7.getState().isInAppBrowserOpen) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
env3_7.setState({isInAppBrowserOpen: false});
|
||||
removeInAppBrowserCloseSubscription();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Metro module 3850; source: modules/links/native/LinkingModule.tsx; dependencies: [27, 477, 3851, 2] */
|
||||
function _fun31777(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3989:6, offset: 0x01003285, size: 139 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
object2 = {tryOpenUrlAsUniversalLink: tryOpenUrlAsUniversalLink, tryOpenScheme: tryOpenScheme};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/native/LinkingModule.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function tryOpenUrlAsUniversalLink(a0) { // fn#31778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3989:149, offset: 0x01003310, size: 97 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
value = importDefault(3851) /* metro dependency 3851: NativeLinkingModule */;
|
||||
value = value.tryOpenUrlAsUniversalLink(a0);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = NativeModules.DCDLinkingManager.tryOpenUrlAsUniversalLink(a0);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function tryOpenScheme(a0) { // fn#31779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3989:272, offset: 0x01003371, size: 97 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
value = importDefault(3851) /* metro dependency 3851: NativeLinkingModule */;
|
||||
value = value.tryOpenScheme(a0);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = NativeModules.DCDLinkingManager.tryOpenScheme(a0);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 3852; source: modules/links/native/LinkingSchemas.tsx; dependencies: [2] */
|
||||
function _fun31781(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3991:6, offset: 0x01003443, size: 143 bytes, params: 8, frame: 17
|
||||
var object2;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {};
|
||||
object2.bestbuy = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?bestbuy\\.com(?:\\/(.*))?$', 'i'),
|
||||
protocol: 'bestbuy://'};
|
||||
Object = global.Object;
|
||||
const value = Object.values(object2);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/native/LinkingSchemas.tsx');
|
||||
exports.LINKING_SCHEMAS = object2;
|
||||
exports.LINKING_SCHEMAS_VALUES = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 3854; source: modules/links/native/LinkingWhitelist.tsx; dependencies: [2] */
|
||||
function _fun31787(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3993:6, offset: 0x010035fe, size: 554 bytes, params: 8, frame: 17
|
||||
var object2;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {};
|
||||
object2.discordConnect = {regex: RegExp('(?:^discordconnect:\\/\\/)', 'i'), protocol: 'discordconnect://'};
|
||||
object2.facebook = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(facebook\\.com)(?:$|\\/)', 'i'), protocol: 'fb://'};
|
||||
object2.instagram = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(instagram\\.com|instagr\\.am)(?:$|\\/)', 'i'),
|
||||
protocol: 'instagram://'};
|
||||
object2.snapchat = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(snapchat\\.com)(?:$|\\/)', 'i'),
|
||||
protocol: 'snapchat://'};
|
||||
object2.spotify = {regex: RegExp('(?:^https?:\\/\\/)(?:open\\.)?(spotify\\.com)(?:$|\\/)', 'i'),
|
||||
protocol: 'https://open.spotify.com'};
|
||||
object2.tiktok = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(tiktok\\.com)(?:$|\\/)', 'i'), protocol: 'tiktok://'};
|
||||
object2.twitch = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(twitch\\.tv)(?:$|\\/)', 'i'), protocol: 'twitch://'};
|
||||
object2.telegram = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(t\\.me)(?:$|\\/)', 'i'), protocol: 'tg://'};
|
||||
object2.twitter = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(?:twitter\\.com|x\\.com)(?:$|\\/)', 'i'),
|
||||
protocol: 'twitter://'};
|
||||
object2.whatsapp = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(whatsapp\\.com)(?:$|\\/)', 'i'),
|
||||
protocol: 'whatsapp://'};
|
||||
object2.youtube = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(youtube\\.com|youtu\\.be)(?:$|\\/)', 'i'),
|
||||
protocol: 'youtube://'};
|
||||
object2.zoom = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(zoom\\.us)(?:$|\\/)', 'i'), protocol: 'zoomus://'};
|
||||
Object = global.Object;
|
||||
const value = Object.values(object2);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/native/LinkingWhitelist.tsx');
|
||||
exports.LINKING_WHITELIST = object2;
|
||||
exports.LINKING_WHITELIST_VALUES = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
/* Metro module 9863; source: modules/links/native/handleContentLinking.tsx; dependencies: [5, 4255, 661, 5080, 6837, 1230, 9864, 2] */
|
||||
function _fun77312(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:6, offset: 0x01df8fb7, size: 179 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = (require(4255) /* metro dependency 4255: PostConnectionCallbackStore */).addPostConnectionCallback;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).Routes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/native/handleContentLinking.tsx');
|
||||
exports.default = function() {
|
||||
return _handleContentLinking.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _handleContentLinking() { // fn#77313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:166, offset: 0x01df906a, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun77315).apply(this, arguments);
|
||||
}
|
||||
|
||||
async function _fun77315({guildId, channelId, navigationSettings, messageId, summaryId}) { // fn#77315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:231, offset: 0x01df90b0, size: 411 bytes, params: 2, frame: 26
|
||||
var environment;
|
||||
var Promise;
|
||||
var value7;
|
||||
var promise;
|
||||
var value11;
|
||||
var transitionTo;
|
||||
var value13;
|
||||
if (true) {
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
binding(env2_2[3]).popAll();
|
||||
var safe = navigationSettings.safe;
|
||||
var navigationReplace = navigationSettings.navigationReplace;
|
||||
var r11 = navigationReplace === undefined || navigationReplace;
|
||||
var waitForConnection = navigationSettings.waitForConnection;
|
||||
var r2 = waitForConnection === undefined || waitForConnection;
|
||||
var skipMessageFetch = navigationSettings.skipMessageFetch;
|
||||
if (r2) {
|
||||
if (env2_6 != null) {
|
||||
env2_6();
|
||||
}
|
||||
Promise = global.Promise;
|
||||
value7 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
promise = new Promise(_fun77316);
|
||||
await (promise instanceof Object ? promise : value7);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (safe) {
|
||||
binding = env2_1;
|
||||
value13 = binding(env2_2[4]);
|
||||
binding = env2_5;
|
||||
await value13(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: r11,
|
||||
openChannel: true,
|
||||
skipMessageFetch: skipMessageFetch});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (channelId != null && summaryId != null) {
|
||||
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
value11 = binding(env2_2[5]);
|
||||
transitionTo = value11.transitionTo;
|
||||
binding = env2_5;
|
||||
Reflect.apply(transitionTo, value11, [binding.CHANNEL(guildId, channelId, messageId),
|
||||
{navigationReplace: r11,
|
||||
openChannel: true, skipMessageFetch: skipMessageFetch}]);
|
||||
if (channelId != null && summaryId != null) {
|
||||
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
|
||||
}
|
||||
} else {
|
||||
if (safe) {
|
||||
binding = env2_1;
|
||||
value13 = binding(env2_2[4]);
|
||||
binding = env2_5;
|
||||
await value13(binding.CHANNEL(guildId, channelId, messageId), {navigationReplace: r11,
|
||||
openChannel: true,
|
||||
skipMessageFetch: skipMessageFetch});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (channelId != null && summaryId != null) {
|
||||
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
value11 = binding(env2_2[5]);
|
||||
transitionTo = value11.transitionTo;
|
||||
binding = env2_5;
|
||||
Reflect.apply(transitionTo, value11, [binding.CHANNEL(guildId, channelId, messageId),
|
||||
{navigationReplace: r11,
|
||||
openChannel: true, skipMessageFetch: skipMessageFetch}]);
|
||||
if (channelId != null && summaryId != null) {
|
||||
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77316(a0, a1) { // fn#77316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:474, offset: 0x01df924b, size: 50 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
env3_4(_fun77318);
|
||||
}
|
||||
|
||||
function o_77317() { // fn#77317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:484, offset: 0x01df927d, size: 50 bytes, params: 1, frame: 12
|
||||
const Error = global.Error;
|
||||
return require(new Error('superseded'));
|
||||
}
|
||||
|
||||
function _fun77318() { // fn#77318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10049:518, offset: 0x01df92af, size: 24 bytes, params: 1, frame: 9
|
||||
env0_0();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,717 @@
|
||||
/* Metro module 16224; source: modules/links/native/handleIncomingURL.tsx; dependencies: [5, 1379, 4294, 7030, 661, 3, 4884, 16223, 7709, 683, 4254, 4093, 4098, 490, 8879, 16225, 2] */
|
||||
function _fun125461(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16432:6, offset: 0x025d9111, size: 261 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const appStateStore = importDefault(7030) /* metro dependency 7030: AppStateStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = value.AppStates;
|
||||
const env0_8 = value.AnalyticEvents;
|
||||
const env0_9 = value.LinkingTypes;
|
||||
value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('index.native.tsx');
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/native/handleIncomingURL.tsx');
|
||||
exports.default = function() {
|
||||
return _handleIncomingURL.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _handleIncomingURL() { // fn#125462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16432:231, offset: 0x025d9216, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun125464).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun125464(a0, a1) { // fn#125464, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16432:290, offset: 0x025d9253, size: 2000 bytes, params: 3, frame: 33
|
||||
var environment;
|
||||
var r1;
|
||||
var r16;
|
||||
var r23;
|
||||
var r12;
|
||||
var r9;
|
||||
var r11;
|
||||
var r4;
|
||||
var value4;
|
||||
var value8;
|
||||
var warn;
|
||||
var object;
|
||||
var value9;
|
||||
var URL;
|
||||
var prototype;
|
||||
var value10;
|
||||
var uRL;
|
||||
var value11;
|
||||
var searchParams;
|
||||
var value12;
|
||||
var value13;
|
||||
var closure;
|
||||
var value14;
|
||||
var value15;
|
||||
var binding2;
|
||||
var property;
|
||||
var value16;
|
||||
var DeeplinkSource;
|
||||
var AppsFlyer;
|
||||
var value17;
|
||||
var value18;
|
||||
var value20;
|
||||
var Iterable;
|
||||
var value23;
|
||||
var fingerprint;
|
||||
var attemptId;
|
||||
var payload;
|
||||
var installationId;
|
||||
var inviteCode;
|
||||
var guildTemplateCode;
|
||||
var authToken;
|
||||
var value32;
|
||||
var track;
|
||||
var EXTERNAL_DYNAMIC_LINK_RECEIVED;
|
||||
var length;
|
||||
var object3;
|
||||
var binding3;
|
||||
var value40;
|
||||
var value41;
|
||||
var channelId;
|
||||
var value49;
|
||||
var URLSearchParams;
|
||||
var value52;
|
||||
var uRLSearchParams;
|
||||
var value54;
|
||||
var value57;
|
||||
var error;
|
||||
var message;
|
||||
if (true) {
|
||||
var env0_0;
|
||||
var env0_1;
|
||||
var url = a0.url;
|
||||
var source = a0.source;
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_10;
|
||||
binding.log('Opening url: ' + url + ' [' + source + ']');
|
||||
var state = env2_6.getState();
|
||||
var ACTIVE = env2_7.ACTIVE;
|
||||
if (state !== ACTIVE) {
|
||||
binding = env2_0;
|
||||
value4 = binding(env2_2[6]);
|
||||
value4.trackAppOpened(url == null ? 'launcher' : 'deeplink');
|
||||
}
|
||||
var value7 = null;
|
||||
if (value7 != url) {
|
||||
var startsWith = url.startsWith;
|
||||
if (Reflect.apply(startsWith, url, ['discord://app/open'])) {
|
||||
value8 = url.indexOf('#');
|
||||
if (value8 !== -1) {
|
||||
value9 = url.substring(value8 + 1);
|
||||
if (value9 === '') {
|
||||
binding = env2_10;
|
||||
binding.warn('Empty or whitespace-only URL fragment in AppsFlyer legacy URL',
|
||||
{originalUrl: url});
|
||||
return undefined;
|
||||
}
|
||||
if (value9.trim() === '') {
|
||||
binding = env2_10;
|
||||
binding.warn('Empty or whitespace-only URL fragment in AppsFlyer legacy URL',
|
||||
{originalUrl: url});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
URL = global.URL;
|
||||
prototype = URL.prototype;
|
||||
value10 = Object.create(prototype, {constructor: {value: URL}});
|
||||
uRL = new URL();
|
||||
value11 = uRL instanceof Object ? uRL : value10;
|
||||
env0_0 = value11;
|
||||
env0_1 = ['campaign', 'deep_link_value', 'media_source'];
|
||||
searchParams = value11.searchParams;
|
||||
value12 = searchParams.keys();
|
||||
object = [];
|
||||
value13 = 0;
|
||||
arraySpread(object, value12, value13, ']');
|
||||
closure = _fun125465;
|
||||
value14 = object.filter(closure);
|
||||
closure = _fun125466;
|
||||
value14.forEach(closure);
|
||||
value15 = value11.toString();
|
||||
binding = env2_0;
|
||||
binding2 = env2_2;
|
||||
property = binding2[7];
|
||||
value16 = binding(property);
|
||||
DeeplinkSource = value16.DeeplinkSource;
|
||||
AppsFlyer = DeeplinkSource.AppsFlyer;
|
||||
binding = env2_10;
|
||||
log = binding.log;
|
||||
value17 = 'Extracted clean URL from AppsFlyer legacy URL: ' + value15;
|
||||
Reflect.apply(log, binding, [value17]);
|
||||
r1 = value15;
|
||||
r16 = AppsFlyer;
|
||||
r23 = value13;
|
||||
} catch (error) {
|
||||
binding = env2_10;
|
||||
warn = binding.warn;
|
||||
url = a0.url;
|
||||
message = error.message;
|
||||
Reflect.apply(warn, binding, ['Failed to parse URL from AppsFlyer legacy URL',
|
||||
{originalUrl: url,
|
||||
extractedUrlString: value9, error: message}]);
|
||||
return undefined;
|
||||
}
|
||||
if (r1.startsWith('discordwidget:///')) {
|
||||
if (r1.startsWith('discordwidget:///open-voice-panel')) {
|
||||
channelId = env2_5.getChannelId();
|
||||
r11 = value7 != channelId ? env2_4.getChannel(channelId) : value7;
|
||||
if (value7 != r11) {
|
||||
env2_0(env2_2[8]).navigateToVoiceChannel(r11, 'LiveActivity');
|
||||
value49 = r1.indexOf('?');
|
||||
URLSearchParams = global.URLSearchParams;
|
||||
r4 = value49 >= 0 ? r1.slice(value49 + 1) : '';
|
||||
value52 = Object.create(URLSearchParams.prototype,
|
||||
{constructor: {value: URLSearchParams}});
|
||||
uRLSearchParams = new URLSearchParams();
|
||||
value54 = (uRLSearchParams instanceof Object ? uRLSearchParams : value52).get('source');
|
||||
r4 = value54 !== 'lockScreen' && value54 !== 'dynamicIsland';
|
||||
if (!r4) {
|
||||
value57 = env2_1(env2_2[9]);
|
||||
value57.track(env2_8.LIVE_ACTIVITY_INTERACTED, {action: 'Open Voice Panel',
|
||||
channel_id: r11.id,
|
||||
surface: value54});
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
value40 = r1.split('voice/');
|
||||
length = value40.length;
|
||||
if (length !== 2) {
|
||||
return undefined;
|
||||
}
|
||||
property = value40[1];
|
||||
value41 = property.split('/');
|
||||
length = value41.length;
|
||||
if (length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'user') {
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'invite') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CREATE_VOICE_INVITE, guildId: value41[1],
|
||||
channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'wave') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.SEND_VOICE_HANGOUT_WAVE, guildId: value41[1],
|
||||
channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'join') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CHANNEL, guildId: value41[1],
|
||||
channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
length = value41.length;
|
||||
if (length !== 2) {
|
||||
return undefined;
|
||||
}
|
||||
property = value41[0];
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CHANNEL, guildId: property, channelId: value41[1]}});
|
||||
return undefined;
|
||||
}
|
||||
URL = global.URL;
|
||||
prototype = URL.prototype;
|
||||
value18 = Object.create(prototype, {constructor: {value: URL}});
|
||||
uRL = new URL();
|
||||
if ((uRL instanceof Object ? uRL : value18).hostname !== 'l.discord.com') {
|
||||
binding = env2_1;
|
||||
value23 = binding(env2_2[11])(r1, true);
|
||||
fingerprint = value23.fingerprint;
|
||||
attemptId = value23.attemptId;
|
||||
payload = value23.payload;
|
||||
installationId = value23.installationId;
|
||||
binding = env2_10;
|
||||
binding.log('Parsed url as: ', value23);
|
||||
inviteCode = payload.inviteCode;
|
||||
guildTemplateCode = payload.guildTemplateCode;
|
||||
authToken = payload.authToken;
|
||||
r12 = value7 != inviteCode ? env2_0(env2_2[12]).parseInviteCodeFromInviteKey(inviteCode) : value7;
|
||||
r9 = value7 == fingerprint && value7 == attemptId;
|
||||
r9 = r9 && value7 == inviteCode;
|
||||
r9 = r9 && value7 == guildTemplateCode;
|
||||
r9 = r9 && value7 == authToken;
|
||||
r9 = r9 && value7 == r16;
|
||||
r9 = r9 && value7 == installationId;
|
||||
if (!r9) {
|
||||
binding = env2_1;
|
||||
value32 = binding(env2_2[9]);
|
||||
track = value32.track;
|
||||
EXTERNAL_DYNAMIC_LINK_RECEIVED = env2_8.EXTERNAL_DYNAMIC_LINK_RECEIVED;
|
||||
object = {invite_code: r12, guild_template_code: guildTemplateCode};
|
||||
object.has_auth_token = value7 != authToken && authToken.length === 0;
|
||||
binding = env2_6;
|
||||
object.is_backgrounded = binding.getState() === env2_7.BACKGROUND;
|
||||
object.attempt_id = attemptId;
|
||||
object.deeplink_source = r16;
|
||||
object.link_type = payload.type;
|
||||
object.is_cold_start = a1;
|
||||
object.received_installation_id = installationId;
|
||||
if (value7 != fingerprint) {
|
||||
object3 = {};
|
||||
object3.fingerprint = env2_0(env2_2[13]).extractId(fingerprint);
|
||||
r16 = object3;
|
||||
} else {
|
||||
r16 = value7;
|
||||
}
|
||||
copyDataProperties(object, r16, r23);
|
||||
Reflect.apply(track, value32, [EXTERNAL_DYNAMIC_LINK_RECEIVED, object]);
|
||||
}
|
||||
r9 = value7 != r12 && value7 != installationId;
|
||||
if (r9) {
|
||||
env2_1(env2_2[14]).setReceivedInstallationIdForInviteCode(r12, installationId);
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
binding(binding3[15])(r1);
|
||||
binding(binding3[10])({payload: payload});
|
||||
return undefined;
|
||||
}
|
||||
yield global.fetch(r1, {'method': 'HEAD', 'redirect': 'follow'});
|
||||
value20 = undefined;
|
||||
if (false) {
|
||||
return value20;
|
||||
}
|
||||
url = value20.url;
|
||||
binding = env2_0;
|
||||
DeeplinkSource = binding(env2_2[7]).DeeplinkSource;
|
||||
Iterable = DeeplinkSource.Iterable;
|
||||
r1 = url;
|
||||
r16 = Iterable;
|
||||
binding = env2_1;
|
||||
value23 = binding(env2_2[11])(r1, true);
|
||||
fingerprint = value23.fingerprint;
|
||||
attemptId = value23.attemptId;
|
||||
payload = value23.payload;
|
||||
installationId = value23.installationId;
|
||||
binding = env2_10;
|
||||
binding.log('Parsed url as: ', value23);
|
||||
inviteCode = payload.inviteCode;
|
||||
guildTemplateCode = payload.guildTemplateCode;
|
||||
authToken = payload.authToken;
|
||||
r12 = value7 != inviteCode ? env2_0(env2_2[12]).parseInviteCodeFromInviteKey(inviteCode) : value7;
|
||||
r9 = value7 == fingerprint && value7 == attemptId;
|
||||
r9 = r9 && value7 == inviteCode;
|
||||
r9 = r9 && value7 == guildTemplateCode;
|
||||
r9 = r9 && value7 == authToken;
|
||||
r9 = r9 && value7 == r16;
|
||||
r9 = r9 && value7 == installationId;
|
||||
if (!r9) {
|
||||
binding = env2_1;
|
||||
value32 = binding(env2_2[9]);
|
||||
track = value32.track;
|
||||
EXTERNAL_DYNAMIC_LINK_RECEIVED = env2_8.EXTERNAL_DYNAMIC_LINK_RECEIVED;
|
||||
object = {invite_code: r12, guild_template_code: guildTemplateCode};
|
||||
object.has_auth_token = value7 != authToken && authToken.length === 0;
|
||||
binding = env2_6;
|
||||
object.is_backgrounded = binding.getState() === env2_7.BACKGROUND;
|
||||
object.attempt_id = attemptId;
|
||||
object.deeplink_source = r16;
|
||||
object.link_type = payload.type;
|
||||
object.is_cold_start = a1;
|
||||
object.received_installation_id = installationId;
|
||||
if (value7 != fingerprint) {
|
||||
object3 = {};
|
||||
object3.fingerprint = env2_0(env2_2[13]).extractId(fingerprint);
|
||||
r16 = object3;
|
||||
} else {
|
||||
r16 = value7;
|
||||
}
|
||||
copyDataProperties(object, r16, r23);
|
||||
Reflect.apply(track, value32, [EXTERNAL_DYNAMIC_LINK_RECEIVED, object]);
|
||||
}
|
||||
r9 = value7 != r12 && value7 != installationId;
|
||||
if (r9) {
|
||||
env2_1(env2_2[14]).setReceivedInstallationIdForInviteCode(r12, installationId);
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
binding(binding3[15])(r1);
|
||||
binding(binding3[10])({payload: payload});
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_10;
|
||||
warn = binding.warn;
|
||||
object = {originalUrl: url};
|
||||
Reflect.apply(warn, binding, ['No hash mark found in AppsFlyer legacy URL', object]);
|
||||
r1 = url;
|
||||
r16 = source;
|
||||
r23 = source;
|
||||
if (r1.startsWith('discordwidget:///')) {
|
||||
if (r1.startsWith('discordwidget:///open-voice-panel')) {
|
||||
channelId = env2_5.getChannelId();
|
||||
r11 = value7 != channelId ? env2_4.getChannel(channelId) : value7;
|
||||
if (value7 != r11) {
|
||||
env2_0(env2_2[8]).navigateToVoiceChannel(r11, 'LiveActivity');
|
||||
value49 = r1.indexOf('?');
|
||||
URLSearchParams = global.URLSearchParams;
|
||||
r4 = value49 >= 0 ? r1.slice(value49 + 1) : '';
|
||||
value52 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
|
||||
uRLSearchParams = new URLSearchParams();
|
||||
value54 = (uRLSearchParams instanceof Object ? uRLSearchParams : value52).get('source');
|
||||
r4 = value54 !== 'lockScreen' && value54 !== 'dynamicIsland';
|
||||
if (!r4) {
|
||||
value57 = env2_1(env2_2[9]);
|
||||
value57.track(env2_8.LIVE_ACTIVITY_INTERACTED, {action: 'Open Voice Panel',
|
||||
channel_id: r11.id,
|
||||
surface: value54});
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
value40 = r1.split('voice/');
|
||||
length = value40.length;
|
||||
if (length !== 2) {
|
||||
return undefined;
|
||||
}
|
||||
property = value40[1];
|
||||
value41 = property.split('/');
|
||||
length = value41.length;
|
||||
if (length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'user') {
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'invite') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CREATE_VOICE_INVITE, guildId: value41[1],
|
||||
channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'wave') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.SEND_VOICE_HANGOUT_WAVE, guildId: value41[1],
|
||||
channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'join') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CHANNEL, guildId: value41[1],
|
||||
channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
length = value41.length;
|
||||
if (length !== 2) {
|
||||
return undefined;
|
||||
}
|
||||
property = value41[0];
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CHANNEL, guildId: property, channelId: value41[1]}});
|
||||
return undefined;
|
||||
}
|
||||
URL = global.URL;
|
||||
prototype = URL.prototype;
|
||||
value18 = Object.create(prototype, {constructor: {value: URL}});
|
||||
uRL = new URL();
|
||||
if ((uRL instanceof Object ? uRL : value18).hostname !== 'l.discord.com') {
|
||||
binding = env2_1;
|
||||
value23 = binding(env2_2[11])(r1, true);
|
||||
fingerprint = value23.fingerprint;
|
||||
attemptId = value23.attemptId;
|
||||
payload = value23.payload;
|
||||
installationId = value23.installationId;
|
||||
binding = env2_10;
|
||||
binding.log('Parsed url as: ', value23);
|
||||
inviteCode = payload.inviteCode;
|
||||
guildTemplateCode = payload.guildTemplateCode;
|
||||
authToken = payload.authToken;
|
||||
r12 = value7 != inviteCode ? env2_0(env2_2[12]).parseInviteCodeFromInviteKey(inviteCode) : value7;
|
||||
r9 = value7 == fingerprint && value7 == attemptId;
|
||||
r9 = r9 && value7 == inviteCode;
|
||||
r9 = r9 && value7 == guildTemplateCode;
|
||||
r9 = r9 && value7 == authToken;
|
||||
r9 = r9 && value7 == r16;
|
||||
r9 = r9 && value7 == installationId;
|
||||
if (!r9) {
|
||||
binding = env2_1;
|
||||
value32 = binding(env2_2[9]);
|
||||
track = value32.track;
|
||||
EXTERNAL_DYNAMIC_LINK_RECEIVED = env2_8.EXTERNAL_DYNAMIC_LINK_RECEIVED;
|
||||
object = {invite_code: r12, guild_template_code: guildTemplateCode};
|
||||
object.has_auth_token = value7 != authToken && authToken.length === 0;
|
||||
binding = env2_6;
|
||||
object.is_backgrounded = binding.getState() === env2_7.BACKGROUND;
|
||||
object.attempt_id = attemptId;
|
||||
object.deeplink_source = r16;
|
||||
object.link_type = payload.type;
|
||||
object.is_cold_start = a1;
|
||||
object.received_installation_id = installationId;
|
||||
if (value7 != fingerprint) {
|
||||
object3 = {};
|
||||
object3.fingerprint = env2_0(env2_2[13]).extractId(fingerprint);
|
||||
r16 = object3;
|
||||
} else {
|
||||
r16 = value7;
|
||||
}
|
||||
copyDataProperties(object, r16, r23);
|
||||
Reflect.apply(track, value32, [EXTERNAL_DYNAMIC_LINK_RECEIVED, object]);
|
||||
}
|
||||
r9 = value7 != r12 && value7 != installationId;
|
||||
if (r9) {
|
||||
env2_1(env2_2[14]).setReceivedInstallationIdForInviteCode(r12, installationId);
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
binding(binding3[15])(r1);
|
||||
binding(binding3[10])({payload: payload});
|
||||
return undefined;
|
||||
}
|
||||
yield global.fetch(r1, {'method': 'HEAD', 'redirect': 'follow'});
|
||||
value20 = undefined;
|
||||
if (false) {
|
||||
return value20;
|
||||
}
|
||||
url = value20.url;
|
||||
binding = env2_0;
|
||||
DeeplinkSource = binding(env2_2[7]).DeeplinkSource;
|
||||
Iterable = DeeplinkSource.Iterable;
|
||||
r1 = url;
|
||||
r16 = Iterable;
|
||||
binding = env2_1;
|
||||
value23 = binding(env2_2[11])(r1, true);
|
||||
fingerprint = value23.fingerprint;
|
||||
attemptId = value23.attemptId;
|
||||
payload = value23.payload;
|
||||
installationId = value23.installationId;
|
||||
binding = env2_10;
|
||||
binding.log('Parsed url as: ', value23);
|
||||
inviteCode = payload.inviteCode;
|
||||
guildTemplateCode = payload.guildTemplateCode;
|
||||
authToken = payload.authToken;
|
||||
r12 = value7 != inviteCode ? env2_0(env2_2[12]).parseInviteCodeFromInviteKey(inviteCode) : value7;
|
||||
r9 = value7 == fingerprint && value7 == attemptId;
|
||||
r9 = r9 && value7 == inviteCode;
|
||||
r9 = r9 && value7 == guildTemplateCode;
|
||||
r9 = r9 && value7 == authToken;
|
||||
r9 = r9 && value7 == r16;
|
||||
r9 = r9 && value7 == installationId;
|
||||
if (!r9) {
|
||||
binding = env2_1;
|
||||
value32 = binding(env2_2[9]);
|
||||
track = value32.track;
|
||||
EXTERNAL_DYNAMIC_LINK_RECEIVED = env2_8.EXTERNAL_DYNAMIC_LINK_RECEIVED;
|
||||
object = {invite_code: r12, guild_template_code: guildTemplateCode};
|
||||
object.has_auth_token = value7 != authToken && authToken.length === 0;
|
||||
binding = env2_6;
|
||||
object.is_backgrounded = binding.getState() === env2_7.BACKGROUND;
|
||||
object.attempt_id = attemptId;
|
||||
object.deeplink_source = r16;
|
||||
object.link_type = payload.type;
|
||||
object.is_cold_start = a1;
|
||||
object.received_installation_id = installationId;
|
||||
if (value7 != fingerprint) {
|
||||
object3 = {};
|
||||
object3.fingerprint = env2_0(env2_2[13]).extractId(fingerprint);
|
||||
r16 = object3;
|
||||
} else {
|
||||
r16 = value7;
|
||||
}
|
||||
copyDataProperties(object, r16, r23);
|
||||
Reflect.apply(track, value32, [EXTERNAL_DYNAMIC_LINK_RECEIVED, object]);
|
||||
}
|
||||
r9 = value7 != r12 && value7 != installationId;
|
||||
if (r9) {
|
||||
env2_1(env2_2[14]).setReceivedInstallationIdForInviteCode(r12, installationId);
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
binding(binding3[15])(r1);
|
||||
binding(binding3[10])({payload: payload});
|
||||
return undefined;
|
||||
}
|
||||
r1 = url;
|
||||
r16 = source;
|
||||
r23 = source;
|
||||
startsWith = r1.startsWith;
|
||||
if (Reflect.apply(startsWith, r1, ['discordwidget:///'])) {
|
||||
if (r1.startsWith('discordwidget:///open-voice-panel')) {
|
||||
channelId = env2_5.getChannelId();
|
||||
r11 = value7 != channelId ? env2_4.getChannel(channelId) : value7;
|
||||
if (value7 != r11) {
|
||||
env2_0(env2_2[8]).navigateToVoiceChannel(r11, 'LiveActivity');
|
||||
value49 = r1.indexOf('?');
|
||||
URLSearchParams = global.URLSearchParams;
|
||||
r4 = value49 >= 0 ? r1.slice(value49 + 1) : '';
|
||||
value52 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
|
||||
uRLSearchParams = new URLSearchParams();
|
||||
value54 = (uRLSearchParams instanceof Object ? uRLSearchParams : value52).get('source');
|
||||
r4 = value54 !== 'lockScreen' && value54 !== 'dynamicIsland';
|
||||
if (!r4) {
|
||||
value57 = env2_1(env2_2[9]);
|
||||
value57.track(env2_8.LIVE_ACTIVITY_INTERACTED, {action: 'Open Voice Panel',
|
||||
channel_id: r11.id,
|
||||
surface: value54});
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
value40 = r1.split('voice/');
|
||||
length = value40.length;
|
||||
if (length !== 2) {
|
||||
return undefined;
|
||||
}
|
||||
property = value40[1];
|
||||
value41 = property.split('/');
|
||||
length = value41.length;
|
||||
if (length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'user') {
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'invite') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CREATE_VOICE_INVITE, guildId: value41[1],
|
||||
channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'wave') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.SEND_VOICE_HANGOUT_WAVE, guildId: value41[1],
|
||||
channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
if (value41[0] === 'join') {
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CHANNEL, guildId: value41[1], channelId: value41[2]}});
|
||||
return undefined;
|
||||
}
|
||||
length = value41.length;
|
||||
if (length !== 2) {
|
||||
return undefined;
|
||||
}
|
||||
property = value41[0];
|
||||
env2_1(env2_2[10])({payload: {type: env2_9.CHANNEL, guildId: property, channelId: value41[1]}});
|
||||
return undefined;
|
||||
}
|
||||
URL = global.URL;
|
||||
prototype = URL.prototype;
|
||||
value18 = Object.create(prototype, {constructor: {value: URL}});
|
||||
uRL = new URL();
|
||||
if ((uRL instanceof Object ? uRL : value18).hostname !== 'l.discord.com') {
|
||||
binding = env2_1;
|
||||
value23 = binding(env2_2[11])(r1, true);
|
||||
fingerprint = value23.fingerprint;
|
||||
attemptId = value23.attemptId;
|
||||
payload = value23.payload;
|
||||
installationId = value23.installationId;
|
||||
binding = env2_10;
|
||||
binding.log('Parsed url as: ', value23);
|
||||
inviteCode = payload.inviteCode;
|
||||
guildTemplateCode = payload.guildTemplateCode;
|
||||
authToken = payload.authToken;
|
||||
r12 = value7 != inviteCode ? env2_0(env2_2[12]).parseInviteCodeFromInviteKey(inviteCode) : value7;
|
||||
r9 = value7 == fingerprint && value7 == attemptId;
|
||||
r9 = r9 && value7 == inviteCode;
|
||||
r9 = r9 && value7 == guildTemplateCode;
|
||||
r9 = r9 && value7 == authToken;
|
||||
r9 = r9 && value7 == r16;
|
||||
r9 = r9 && value7 == installationId;
|
||||
if (!r9) {
|
||||
binding = env2_1;
|
||||
value32 = binding(env2_2[9]);
|
||||
track = value32.track;
|
||||
EXTERNAL_DYNAMIC_LINK_RECEIVED = env2_8.EXTERNAL_DYNAMIC_LINK_RECEIVED;
|
||||
object = {invite_code: r12, guild_template_code: guildTemplateCode};
|
||||
object.has_auth_token = value7 != authToken && authToken.length === 0;
|
||||
binding = env2_6;
|
||||
object.is_backgrounded = binding.getState() === env2_7.BACKGROUND;
|
||||
object.attempt_id = attemptId;
|
||||
object.deeplink_source = r16;
|
||||
object.link_type = payload.type;
|
||||
object.is_cold_start = a1;
|
||||
object.received_installation_id = installationId;
|
||||
if (value7 != fingerprint) {
|
||||
object3 = {};
|
||||
object3.fingerprint = env2_0(env2_2[13]).extractId(fingerprint);
|
||||
r16 = object3;
|
||||
} else {
|
||||
r16 = value7;
|
||||
}
|
||||
copyDataProperties(object, r16, r23);
|
||||
Reflect.apply(track, value32, [EXTERNAL_DYNAMIC_LINK_RECEIVED, object]);
|
||||
}
|
||||
r9 = value7 != r12 && value7 != installationId;
|
||||
if (r9) {
|
||||
env2_1(env2_2[14]).setReceivedInstallationIdForInviteCode(r12, installationId);
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
binding(binding3[15])(r1);
|
||||
binding(binding3[10])({payload: payload});
|
||||
return undefined;
|
||||
}
|
||||
yield global.fetch(r1, {'method': 'HEAD', 'redirect': 'follow'});
|
||||
value20 = undefined;
|
||||
if (false) {
|
||||
return value20;
|
||||
}
|
||||
url = value20.url;
|
||||
binding = env2_0;
|
||||
DeeplinkSource = binding(env2_2[7]).DeeplinkSource;
|
||||
Iterable = DeeplinkSource.Iterable;
|
||||
r1 = url;
|
||||
r16 = Iterable;
|
||||
binding = env2_1;
|
||||
value23 = binding(env2_2[11])(r1, true);
|
||||
fingerprint = value23.fingerprint;
|
||||
attemptId = value23.attemptId;
|
||||
payload = value23.payload;
|
||||
installationId = value23.installationId;
|
||||
binding = env2_10;
|
||||
binding.log('Parsed url as: ', value23);
|
||||
inviteCode = payload.inviteCode;
|
||||
guildTemplateCode = payload.guildTemplateCode;
|
||||
authToken = payload.authToken;
|
||||
r12 = value7 != inviteCode ? env2_0(env2_2[12]).parseInviteCodeFromInviteKey(inviteCode) : value7;
|
||||
r9 = value7 == fingerprint && value7 == attemptId;
|
||||
r9 = r9 && value7 == inviteCode;
|
||||
r9 = r9 && value7 == guildTemplateCode;
|
||||
r9 = r9 && value7 == authToken;
|
||||
r9 = r9 && value7 == r16;
|
||||
r9 = r9 && value7 == installationId;
|
||||
if (!r9) {
|
||||
binding = env2_1;
|
||||
value32 = binding(env2_2[9]);
|
||||
track = value32.track;
|
||||
EXTERNAL_DYNAMIC_LINK_RECEIVED = env2_8.EXTERNAL_DYNAMIC_LINK_RECEIVED;
|
||||
object = {invite_code: r12, guild_template_code: guildTemplateCode};
|
||||
object.has_auth_token = value7 != authToken && authToken.length === 0;
|
||||
binding = env2_6;
|
||||
object.is_backgrounded = binding.getState() === env2_7.BACKGROUND;
|
||||
object.attempt_id = attemptId;
|
||||
object.deeplink_source = r16;
|
||||
object.link_type = payload.type;
|
||||
object.is_cold_start = a1;
|
||||
object.received_installation_id = installationId;
|
||||
if (value7 != fingerprint) {
|
||||
object3 = {};
|
||||
object3.fingerprint = env2_0(env2_2[13]).extractId(fingerprint);
|
||||
r16 = object3;
|
||||
} else {
|
||||
r16 = value7;
|
||||
}
|
||||
copyDataProperties(object, r16, r23);
|
||||
Reflect.apply(track, value32, [EXTERNAL_DYNAMIC_LINK_RECEIVED, object]);
|
||||
}
|
||||
r9 = value7 != r12 && value7 != installationId;
|
||||
if (r9) {
|
||||
env2_1(env2_2[14]).setReceivedInstallationIdForInviteCode(r12, installationId);
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
binding(binding3[15])(r1);
|
||||
binding(binding3[10])({payload: payload});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun125465(a0) { // fn#125465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16432:776, offset: 0x025d9a23, size: 42 bytes, params: 2, frame: 12
|
||||
return a0.startsWith('af_') || env0_1.includes(a0);
|
||||
}
|
||||
|
||||
function _fun125466(a0) { // fn#125466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16432:825, offset: 0x025d9a4d, size: 28 bytes, params: 2, frame: 11
|
||||
return env0_0.searchParams.delete(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,962 @@
|
||||
/* 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] */
|
||||
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});
|
||||
const env0_5 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_6 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_7 = (require(4255) /* metro dependency 4255: PostConnectionCallbackStore */).addPostConnectionCallback;
|
||||
const guildScheduledEventStore = importDefault(4117) /* metro dependency 4117: GuildScheduledEventStore */;
|
||||
const env0_9 = (require(7039) /* metro dependency 7039: PremiumPlanPurchasedStore */).handleMobileWebCheckoutStatus;
|
||||
const premiumNitroNavigationStore = importDefault(7552) /* metro dependency 7552: PremiumNitroNavigationStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_12 = constantsModule.AnalyticEvents;
|
||||
const env0_13 = constantsModule.LinkingTypes;
|
||||
const env0_14 = constantsModule.Routes;
|
||||
const env0_15 = constantsModule.UserSettingsSections;
|
||||
const env0_16 = constantsModule.PlatformTypes;
|
||||
const env0_17 = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoute;
|
||||
const env0_18 = (require(4286) /* metro dependency 4286: Constants */).StreamTypes;
|
||||
const env0_19 = (require(4661) /* metro dependency 4661: NativePermissionConstants */).NativePermissionTypes;
|
||||
const env0_20 = (require(8871) /* metro dependency 8871: Constants */).OAUTH2_AUTHORIZE_MODAL_KEY;
|
||||
const env0_21 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).FAMILY_CENTER_LINK_REQUEST_REGEX;
|
||||
const env0_22 = (require(4095) /* metro dependency 4095: PaymentConstants */).MobileWebRedirectCheckoutDeepLinkActions;
|
||||
const env0_23 = (require(12612) /* metro dependency 12612: ShareScreenConstants */).SHARE_SCREEN_MODAL_KEY;
|
||||
const env0_24 = (require(11471) /* metro dependency 11471: SettingsAccountConstants */).AccountSettingsTabs;
|
||||
const env0_25 = (require(8224) /* metro dependency 8224: SettingsConstants */).MobileSetting;
|
||||
(require(2) /* metro dependency 2 */).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 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;
|
||||
if (AuthenticationStore.isAuthenticated()) {
|
||||
addPostConnectionCallback(_fun35329);
|
||||
} else if (inviteCode == null) {
|
||||
addPostConnectionCallback(_fun35329);
|
||||
} else {
|
||||
require(dependencyMap[23]).showInvite(inviteCode, payload.username, {'deeplinkAttemptId': null,
|
||||
'fromDeeplink': true, 'location': 'Deep Link', deeplinkAttemptId: payload.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 setState = PremiumNitroNavigationStore.setState;
|
||||
var section = payload.section;
|
||||
var value3 = undefined;
|
||||
Reflect.apply(setState, PremiumNitroNavigationStore, [{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__;
|
||||
(importDefault(11422) /* metro dependency 11422: 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__;
|
||||
(require(10010) /* metro dependency 10010: DisplayedInviteActionCreators */).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 = importDefault(683) /* metro dependency 683: 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__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popAll();
|
||||
const openUserSettingsModule = require(7007) /* metro dependency 7007: openUserSettings */;
|
||||
const openUserSettings = openUserSettingsModule.openUserSettings;
|
||||
const FAMILY_CENTER = UserSettingsSections.FAMILY_CENTER;
|
||||
Reflect.apply(openUserSettings, openUserSettingsModule, [{screen: FAMILY_CENTER}]);
|
||||
if (env0_7 != null && FAMILY_CENTER_LINK_REQUEST_REGEX.test(env0_7)) {
|
||||
(require(12620) /* metro dependency 12620: FamilyCenterNativeUtils */).handleFamilyCenterQRCodeScan(env0_7,
|
||||
'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 object2;
|
||||
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;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, payload.props, dependencyMap);
|
||||
object2['callback'] = importDefault(dependencyMap[35]);
|
||||
Reflect.apply(openOAuth2Modal, moduleValue2, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
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* _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__;
|
||||
(require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).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 items;
|
||||
var value7;
|
||||
var defaultImport;
|
||||
var dispatch;
|
||||
let r0 = payload.callbackCode != null && payload.callbackState != null && payload.provider != null;
|
||||
if (r0) {
|
||||
value5 = environment.__proto__.__proto__;
|
||||
items = [PlatformTypes.XBOX];
|
||||
items[1] = PlatformTypes.PLAYSTATION;
|
||||
items[2] = PlatformTypes.PLAYSTATION_STAGING;
|
||||
items[3] = PlatformTypes.CRUNCHYROLL;
|
||||
r0 = items.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 object2 = {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) {
|
||||
object2.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, object2);
|
||||
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 object2 = {};
|
||||
const payloadBinding = payload;
|
||||
const userId = payloadBinding.userId;
|
||||
object2.userId = userId;
|
||||
object2.fingerprint = payloadBinding.fingerprint.replaceAll(' ', '+');
|
||||
Reflect.apply(handleSecureFramesUserVerificationLink, value, [object2]);
|
||||
}
|
||||
|
||||
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 = (require(6533) /* metro dependency 6533: QuestContent */).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 questUtilsNativeModule = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
||||
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__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popAll();
|
||||
(importDefault(8088) /* metro dependency 8088: closeVoicePanels */)();
|
||||
global.setTimeout(function() {
|
||||
require(dependencyMap[22]).openUserSettings({screen: UserSettingsSections.QUEST_PREVIEW_TOOL_2,
|
||||
params: {questId: payload.questId}});
|
||||
}, 1);
|
||||
}
|
||||
|
||||
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 object2 = {};
|
||||
copyDataProperties(object2, payload.props, undefined);
|
||||
object2['guildId'] = a0;
|
||||
object2['callback'] = importDefault(dependencyMap[35]);
|
||||
object2['dismissOAuthModal'] = function() {
|
||||
importDefault(dependencyMap[18]).popWithKey(OAUTH2_AUTHORIZE_MODAL_KEY);
|
||||
};
|
||||
Reflect.apply(pushLazy, defaultImport2, [value2, object2, OAUTH2_AUTHORIZE_MODAL_KEY]);
|
||||
}
|
||||
|
||||
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}]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,614 @@
|
||||
/* Metro module 3848; source: modules/links/native/handleURL.tsx; dependencies: [5, 27, 3849, 661, 3, 3850, 3852, 3853, 3854, 3855, 3856, 1244, 4078, 477, 4080, 1473, 4093, 4254, 2] */
|
||||
function _fun31724(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:6, offset: 0x01001fe6, size: 254 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_31727 = 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 sanitizeURLPart = function(a0) {
|
||||
var r0;
|
||||
var value = a0;
|
||||
if (value == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.replace(RegExp('[^\\x00-\\x7F]+', 'g'), _fun31729);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).Linking;
|
||||
const actionSheetStore = importDefault(3849) /* metro dependency 3849: ActionSheetStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).WebBrowserType;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('handleURL');
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/native/handleURL.tsx');
|
||||
exports.default = function(a0, a1) {
|
||||
return _handleURL.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_31725(a0, a1) { // fn#31725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:165, offset: 0x010020e4, size: 370 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 _fun31726;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_31727(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_31727(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_31727(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun31726;
|
||||
}
|
||||
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 sanitizeURLPart(a0) { // fn#31728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:1107, offset: 0x01002256, size: 46 bytes, params: 2, frame: 14
|
||||
const value = a0;
|
||||
return value == null ? value : value.replace(RegExp('[^\\x00-\\x7F]+', 'g'), function(a0) {
|
||||
return (0, global.encodeURIComponent)(a0);
|
||||
});
|
||||
}
|
||||
|
||||
function _handleURL() { // fn#31730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:1207, offset: 0x01002284, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun31732).apply(this, arguments);
|
||||
}
|
||||
|
||||
async function _fun31732(a0, a1) { // fn#31732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:1250, offset: 0x010022c6, size: 471 bytes, params: 3, frame: 22
|
||||
var environment;
|
||||
var r1;
|
||||
var r7;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value9;
|
||||
var value10;
|
||||
var binding3;
|
||||
var pathname;
|
||||
var search;
|
||||
var hash;
|
||||
var binding4;
|
||||
var payload;
|
||||
var error;
|
||||
let value = a0;
|
||||
let value2 = a2;
|
||||
if (true) {
|
||||
var env0_0;
|
||||
var env0_1 = a1;
|
||||
r1 = value2 !== undefined ? value2 : {};
|
||||
var allowExternal = r1.allowExternal;
|
||||
allowExternal = allowExternal === undefined || allowExternal;
|
||||
var forceExternalBrowser = r1.forceExternalBrowser;
|
||||
forceExternalBrowser = !(forceExternalBrowser === undefined) && forceExternalBrowser;
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
var closure = openInBrowser;
|
||||
if (forceExternalBrowser) {
|
||||
closure();
|
||||
} else {
|
||||
var regexp = RegExp('^[a-zA-Z0-9+-.]+:', '');
|
||||
var test = regexp.test;
|
||||
if (Reflect.apply(test, regexp, [value])) {
|
||||
r7 = value;
|
||||
} else {
|
||||
value = 'https://' + value;
|
||||
r7 = value;
|
||||
}
|
||||
regexp = RegExp('^https?:', 'i');
|
||||
test = regexp.test;
|
||||
if (Reflect.apply(test, regexp, [r7])) {
|
||||
try {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding2 = env2_2;
|
||||
property = binding2[15];
|
||||
value9 = binding(property);
|
||||
value10 = value9.parse(r7);
|
||||
binding3 = env2_10;
|
||||
pathname = value10.pathname;
|
||||
value = binding3(pathname);
|
||||
value10.pathname = value;
|
||||
search = value10.search;
|
||||
value = binding3(search);
|
||||
value10.search = value;
|
||||
hash = value10.hash;
|
||||
value = binding3(hash);
|
||||
value10.hash = value;
|
||||
property = binding2[15];
|
||||
value = binding(property);
|
||||
value = value.format(value10);
|
||||
env0_0 = value;
|
||||
r7 = value;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
payload = binding(binding4[16])(r7).payload;
|
||||
value = binding(binding4[17]);
|
||||
if (value({payload: payload, safe: true})) {
|
||||
return undefined;
|
||||
}
|
||||
if (allowExternal) {
|
||||
await ((a0) => {
|
||||
var env0_0 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun31737);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
})(r7);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (value) {
|
||||
return undefined;
|
||||
}
|
||||
await tryHandleCustomScheme(r7);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (value) {
|
||||
return undefined;
|
||||
}
|
||||
await tryHandleWhitelistedURL(r7);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (!value) {
|
||||
closure();
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
payload = binding(binding4[16])(r7).payload;
|
||||
value = binding(binding4[17]);
|
||||
if (value({payload: payload, safe: true})) {
|
||||
return undefined;
|
||||
}
|
||||
if (allowExternal) {
|
||||
await ((a0) => {
|
||||
var env0_0 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun31737);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
})(r7);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (value) {
|
||||
return undefined;
|
||||
}
|
||||
await tryHandleCustomScheme(r7);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (value) {
|
||||
return undefined;
|
||||
}
|
||||
await tryHandleWhitelistedURL(r7);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (!value) {
|
||||
closure();
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function openInBrowser() { // fn#31733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:1333, offset: 0x0100249d, size: 631 bytes, params: 1, frame: 21
|
||||
var environment;
|
||||
var r7;
|
||||
var r3;
|
||||
var r4;
|
||||
var binding2;
|
||||
var presentFailedToast;
|
||||
var intl;
|
||||
var SAFARI;
|
||||
var browserManagerSelectedBrowser;
|
||||
var isIOS2;
|
||||
var value9;
|
||||
var browserManagerOpenUrl;
|
||||
var value10;
|
||||
var binding3;
|
||||
var value11;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
let binding = env3_1;
|
||||
if (binding(env3_2[9]).sanitizeUrl(env0_0) != null) {
|
||||
SAFARI = env3_6.SAFARI;
|
||||
binding = env0_0;
|
||||
if (binding.startsWith('https:')) {
|
||||
binding = env3_0;
|
||||
browserManagerSelectedBrowser = binding(env3_2[12]).getBrowserManagerSelectedBrowser();
|
||||
r7 = require ?? browserManagerSelectedBrowser;
|
||||
if (forceExternalBrowser && r7 === env3_6.IN_APP) {
|
||||
if (browserManagerSelectedBrowser !== env3_6.IN_APP) {
|
||||
r3 = browserManagerSelectedBrowser;
|
||||
} else {
|
||||
binding = env3_0;
|
||||
isIOS2 = binding(env3_2[13]).isIOS();
|
||||
binding = env3_6;
|
||||
r3 = isIOS2 ? binding.SAFARI : binding.CHROME;
|
||||
}
|
||||
r4 = r3;
|
||||
} else {
|
||||
r4 = r7;
|
||||
}
|
||||
} else {
|
||||
binding = env0_0;
|
||||
if (binding.startsWith('http:')) {
|
||||
binding = env3_0;
|
||||
browserManagerSelectedBrowser = binding(env3_2[12]).getBrowserManagerSelectedBrowser();
|
||||
r7 = require ?? browserManagerSelectedBrowser;
|
||||
if (forceExternalBrowser && r7 === env3_6.IN_APP) {
|
||||
if (browserManagerSelectedBrowser !== env3_6.IN_APP) {
|
||||
r3 = browserManagerSelectedBrowser;
|
||||
} else {
|
||||
binding = env3_0;
|
||||
isIOS2 = binding(env3_2[13]).isIOS();
|
||||
binding = env3_6;
|
||||
r3 = isIOS2 ? binding.SAFARI : binding.CHROME;
|
||||
}
|
||||
r4 = r3;
|
||||
} else {
|
||||
r4 = r7;
|
||||
}
|
||||
} else {
|
||||
r4 = SAFARI;
|
||||
}
|
||||
}
|
||||
if (env3_6.IN_APP === r4) {
|
||||
binding = env3_0;
|
||||
binding3 = env3_2;
|
||||
value11 = binding(binding3[12]);
|
||||
value11.browserManagerOpenUrl(env0_0, env3_6.IN_APP).catch(_fun31734);
|
||||
if (binding(binding3[13]).isIOS() && env3_5.isOpen()) {
|
||||
env3_1(env3_2[14]).hideAllActionSheets();
|
||||
}
|
||||
} else if (env3_6.CHROME === r4) {
|
||||
binding = env3_0;
|
||||
value10 = binding(env3_2[12]);
|
||||
browserManagerOpenUrl = value10.browserManagerOpenUrl;
|
||||
binding = env0_0;
|
||||
Reflect.apply(browserManagerOpenUrl, value10, [binding, env3_6.CHROME]).catch(_fun31735);
|
||||
} else {
|
||||
env3_6.SAFARI;
|
||||
binding = env3_0;
|
||||
value9 = binding(env3_2[12]);
|
||||
browserManagerOpenUrl = value9.browserManagerOpenUrl;
|
||||
binding = env0_0;
|
||||
Reflect.apply(browserManagerOpenUrl, value9, [binding, env3_6.SAFARI]);
|
||||
}
|
||||
} else {
|
||||
binding = env3_0;
|
||||
binding2 = env3_2;
|
||||
value = binding(binding2[10]);
|
||||
presentFailedToast = value.presentFailedToast;
|
||||
intl = binding(binding2[11]).intl;
|
||||
Reflect.apply(presentFailedToast, value, [intl.string(binding(binding2[11]).t.XiqzAp)]);
|
||||
}
|
||||
}
|
||||
|
||||
function tryHandleUniversalLink(a0) { // fn#31736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:2453, offset: 0x0100278e, size: 44 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun31737);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function tryHandleCustomScheme(a0) { // fn#31740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:2709, offset: 0x01002863, size: 305 bytes, params: 2, frame: 23
|
||||
var r5;
|
||||
var r6;
|
||||
var r2;
|
||||
var r10;
|
||||
var r4;
|
||||
var promise;
|
||||
var regex;
|
||||
var protocol;
|
||||
var property;
|
||||
let value = a0;
|
||||
var env0_0;
|
||||
const binding = env3_8;
|
||||
const binding2 = env3_0;
|
||||
const value3 = undefined;
|
||||
const LINKING_SCHEMAS_VALUES = binding2(env3_2[6]).LINKING_SCHEMAS_VALUES;
|
||||
const value4 = binding(LINKING_SCHEMAS_VALUES);
|
||||
const value5 = value4();
|
||||
let done = value5.done;
|
||||
const value6 = null;
|
||||
if (done) {
|
||||
r4 = value;
|
||||
} else {
|
||||
r5 = value5;
|
||||
r6 = value;
|
||||
while (true) {
|
||||
value = r5.value;
|
||||
regex = value.regex;
|
||||
protocol = value.protocol;
|
||||
value = regex.exec(r6);
|
||||
if (value6 == value) {
|
||||
r2 = value3;
|
||||
} else {
|
||||
property = value[1];
|
||||
r2 = property;
|
||||
}
|
||||
if (value6 == r2) {
|
||||
r10 = r6;
|
||||
continue;
|
||||
}
|
||||
value = protocol + r2;
|
||||
env0_0 = value;
|
||||
r10 = value;
|
||||
value = value4();
|
||||
done = value.done;
|
||||
if (done) {
|
||||
r4 = r10;
|
||||
break;
|
||||
}
|
||||
r5 = value;
|
||||
r6 = r10;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
const r3 = r4.indexOf('://') === -1 ? value6 : r4.split('://')[0];
|
||||
if (r3 === 'http') {
|
||||
promise = new global.Promise(_fun31741);
|
||||
} else if (r3 === 'https') {
|
||||
promise = new global.Promise(_fun31741);
|
||||
} else {
|
||||
env3_7.info('tryHandleCustomScheme', r4);
|
||||
promise = new global.Promise(_fun31742);
|
||||
}
|
||||
return promise;
|
||||
}
|
||||
|
||||
function tryHandleWhitelistedURL(a0) { // fn#31745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3301, offset: 0x01002a63, size: 163 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
var r3;
|
||||
var value3;
|
||||
var regex;
|
||||
var protocol;
|
||||
var value4;
|
||||
var value5;
|
||||
var Promise;
|
||||
var promise;
|
||||
const env0_0 = a0;
|
||||
const closure = tryHandleWhitelistedURL_loop;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_8;
|
||||
const LINKING_WHITELIST_VALUES = env3_0(env3_2[8]).LINKING_WHITELIST_VALUES;
|
||||
const value2 = binding(LINKING_WHITELIST_VALUES)();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
r3 = value2;
|
||||
reducibleLoop1: while (true) {
|
||||
value3 = r3.value;
|
||||
regex = value3.regex;
|
||||
var env0_1 = regex;
|
||||
protocol = value3.protocol;
|
||||
value4 = closure(protocol);
|
||||
if (value4 !== 0) {
|
||||
reducibleJoin3: while (true) {
|
||||
if (value4) {
|
||||
return value4.v;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
}
|
||||
value5 = value();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
Promise = global.Promise;
|
||||
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
promise = new Promise(_fun31750);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
r3 = value5;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
}
|
||||
Promise = global.Promise;
|
||||
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
promise = new Promise(_fun31750);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun31734() { // fn#31734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:1648, offset: 0x01002714, size: 122 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
const binding = env4_0;
|
||||
const binding2 = env4_2;
|
||||
value = binding(binding2[10]);
|
||||
const presentFailedToast = value.presentFailedToast;
|
||||
const intl = binding(binding2[11]).intl;
|
||||
const string = intl.string;
|
||||
const HryVrx = binding(binding2[11]).t.HryVrx;
|
||||
Reflect.apply(presentFailedToast, value, ['' + Reflect.apply(string, intl, [HryVrx]) + ' ' + env1_0]);
|
||||
}
|
||||
|
||||
function _fun31737(a0) { // fn#31737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:2508, offset: 0x010027ba, size: 85 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
value = env4_1(env4_2[5]);
|
||||
value = value.tryOpenUrlAsUniversalLink(env0_0);
|
||||
value = value.then(_fun31738);
|
||||
value.catch(_fun31739);
|
||||
}
|
||||
|
||||
function _fun31741(a0) { // fn#31741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3020, offset: 0x01002994, size: 38 bytes, params: 2, frame: 11
|
||||
env4_7.info('URL is not a custom scheme.');
|
||||
a0(false);
|
||||
}
|
||||
|
||||
function _fun31742(a0) { // fn#31742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3119, offset: 0x010029ba, size: 85 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
value = env4_1(env4_2[5]);
|
||||
value = value.tryOpenScheme(env0_0);
|
||||
value = value.then(_fun31743);
|
||||
value.catch(_fun31744);
|
||||
}
|
||||
|
||||
function tryHandleWhitelistedURL_loop(a0) { // fn#31746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3355, owner: tryHandleWhitelistedURL._loop, offset: 0x01002b06, size: 83 bytes, params: 2, frame: 13
|
||||
return regex.exec(a0) === null ? 0 : {v: new global.Promise(_fun31747)};
|
||||
}
|
||||
|
||||
function _fun31750(a0) { // fn#31750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3823, offset: 0x01002c3c, size: 38 bytes, params: 2, frame: 11
|
||||
env4_7.info('URL is not whitelisted.');
|
||||
a0(false);
|
||||
}
|
||||
|
||||
function _fun31738() { // fn#31738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:2555, offset: 0x0100280f, size: 42 bytes, params: 1, frame: 11
|
||||
env5_7.info('Universal link opened successfully.');
|
||||
env0_0(true);
|
||||
}
|
||||
|
||||
function _fun31739() { // fn#31739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:2622, offset: 0x01002839, size: 42 bytes, params: 1, frame: 11
|
||||
env5_7.info('URL is not a handled universal link.');
|
||||
env0_0(false);
|
||||
}
|
||||
|
||||
function _fun31743() { // fn#31743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3154, offset: 0x01002a0f, size: 42 bytes, params: 1, frame: 11
|
||||
env5_7.info('Custom scheme opened successfully.');
|
||||
env0_0(true);
|
||||
}
|
||||
|
||||
function _fun31744() { // fn#31744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3220, offset: 0x01002a39, size: 42 bytes, params: 1, frame: 11
|
||||
env5_7.info('Custom scheme failed to open.');
|
||||
env0_0(false);
|
||||
}
|
||||
|
||||
function _fun31747(a0) { // fn#31747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3409, offset: 0x01002b59, size: 69 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
value = env5_4.canOpenURL(env0_0);
|
||||
value = value.then(_fun31748);
|
||||
value.catch(_fun31749);
|
||||
}
|
||||
|
||||
function _fun31748(a0) { // fn#31748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3435, offset: 0x01002b9e, size: 106 bytes, params: 2, frame: 12
|
||||
var performURLNavigation;
|
||||
var value2;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
if (a0) {
|
||||
value = env6_1(env6_2[7]);
|
||||
performURLNavigation = value.performURLNavigation;
|
||||
value2 = environment.__proto__.__proto__;
|
||||
Reflect.apply(performURLNavigation, value, [env2_0]);
|
||||
env0_0(true);
|
||||
} else {
|
||||
env6_7.info('Whitelisted URL, but cannot be opened (app likely not installed).');
|
||||
env0_0(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun31749(a0) { // fn#31749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3987:3575, offset: 0x01002c08, size: 52 bytes, params: 2, frame: 13
|
||||
env6_7.info('Whitelisted URL encountered an error.', {error: a0});
|
||||
env0_0(false);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 9862; source: modules/links/native/showLongPressURLActionSheet.tsx; dependencies: [4081, 1244, 3856, 6797, 3853, 9212, 9863, 6802, 2] */
|
||||
function _fun77304(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10048:6, offset: 0x01df8a92, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/native/showLongPressURLActionSheet.tsx');
|
||||
exports.default = showLongPressURLActionSheet;
|
||||
}
|
||||
|
||||
function showLongPressURLActionSheet({urlString, guildId, channelId, messageId, disableHapticFeedback}) { // fn#77305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10048:188, offset: 0x01df8af9, size: 825 bytes, params: 2, frame: 26
|
||||
var r15;
|
||||
var r10;
|
||||
var value;
|
||||
var push;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var object2;
|
||||
disableHapticFeedback = !(disableHapticFeedback === undefined) && disableHapticFeedback;
|
||||
if (!disableHapticFeedback) {
|
||||
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
value.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT);
|
||||
}
|
||||
const items2 = [];
|
||||
value = urlString.match(RegExp('^(tel|sms|mailto):([^?;]+)', ''));
|
||||
if (value != null) {
|
||||
push = items2.push;
|
||||
string = intl.string;
|
||||
if (value[1] === 'mailto') {
|
||||
r10 = t.ZYLVKo;
|
||||
r15 = require;
|
||||
} else {
|
||||
r10 = t['3zozoR'];
|
||||
}
|
||||
Reflect.apply(push, items2, [{label: Reflect.apply(string, intl, [r10]), onPress: onPress_77306}]);
|
||||
if (value[1] === 'tel') {
|
||||
push = items2.push;
|
||||
object2 = {};
|
||||
object2.label = intl.string(t['+wbjMW']);
|
||||
object2.onPress = onPress_77307;
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
}
|
||||
}
|
||||
const items3 = [{label: intl.string(t.wuRE8M), onPress: onPress_77308}];
|
||||
string = intl.string;
|
||||
const WqhZss = t.WqhZss;
|
||||
items3[1] = {label: Reflect.apply(string, intl, [WqhZss]), onPress: onPress_77309};
|
||||
const value3 = arraySpread(items3, items2, 2, r15);
|
||||
string = intl.string;
|
||||
const Ej3B3Y = t.Ej3B3Y;
|
||||
items3[value3] = {label: Reflect.apply(string, intl, [Ej3B3Y]), onPress: onPress_77310};
|
||||
value3 + 1;
|
||||
if (channelId != null) {
|
||||
items3.unshift({label: intl.string(t.aW2YlJ), onPress: onPress_77311});
|
||||
}
|
||||
value = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
|
||||
const showSimpleActionSheet = value.showSimpleActionSheet;
|
||||
const object4 = {};
|
||||
object4.title = intl.string(t['5oIOLX']);
|
||||
object4.subtitle = urlString;
|
||||
Reflect.apply(showSimpleActionSheet, value, [{key: 'LongPressUrl', header: object4, options: items3,
|
||||
hasIcons: false}]);
|
||||
}
|
||||
|
||||
function showLongPressURLActionSheetOnPress() { // fn#77306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10048:523, owner: showLongPressURLActionSheet.onPress, offset: 0x01df8e32, size: 71 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentLinkCopied();
|
||||
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(env0_4[2]);
|
||||
}
|
||||
|
||||
function showLongPressURLActionSheetOnPress_77307() { // fn#77307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10048:652, owner: showLongPressURLActionSheet.onPress, offset: 0x01df8e79, size: 68 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
const openURL = value.openURL;
|
||||
const urlStringBinding = urlString;
|
||||
Reflect.apply(openURL, value, [urlStringBinding.replace('tel:', 'sms:')]);
|
||||
}
|
||||
|
||||
function showLongPressURLActionSheetOnPress_77308() { // fn#77308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10048:760, owner: showLongPressURLActionSheet.onPress, offset: 0x01df8ebd, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
value.openURL(urlString);
|
||||
}
|
||||
|
||||
function showLongPressURLActionSheetOnPress_77309() { // fn#77309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10048:836, owner: showLongPressURLActionSheet.onPress, offset: 0x01df8eea, size: 67 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentLinkCopied();
|
||||
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
value.copy(urlString);
|
||||
}
|
||||
|
||||
function showLongPressURLActionSheetOnPress_77310() { // fn#77310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10048:942, owner: showLongPressURLActionSheet.onPress, offset: 0x01df8f2d, size: 58 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(require(9212) /* metro dependency 9212: showShareActionSheetAndroid */).showShareActionSheet({url: urlString},
|
||||
'Share Link');
|
||||
}
|
||||
|
||||
function showLongPressURLActionSheetOnPress_77311() { // fn#77311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10048:1070, owner: showLongPressURLActionSheet.onPress, offset: 0x01df8f67, size: 80 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(9863) /* metro dependency 9863: handleContentLinking */)({guildId: guildId, channelId: channelId,
|
||||
messageId: messageId, navigationSettings: {'navigationReplace': true, 'safe': true}});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
/* Metro module 6837; source: modules/links/safeTransitionTo.native.tsx; dependencies: [5, 1867, 661, 4246, 6838, 1230, 6839, 4496, 1244, 6864, 2324, 6905, 2] */
|
||||
function _fun53840(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7015:6, offset: 0x0135700b, size: 163 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).Routes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/links/safeTransitionTo.native.tsx');
|
||||
exports.default = function() {
|
||||
return _safeTransitionTo.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _safeTransitionTo() { // fn#53841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7015:133, offset: 0x013570ae, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun53843).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun53843(a0, a1) { // fn#53843, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7015:190, offset: 0x013570e7, size: 794 bytes, params: 3, frame: 28
|
||||
var show;
|
||||
var object2;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var guildId;
|
||||
var getGuild;
|
||||
var value10;
|
||||
var channelId;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var transitionTo;
|
||||
var binding3;
|
||||
var value15;
|
||||
var binding4;
|
||||
var diceCount;
|
||||
var diceSides;
|
||||
var binding5;
|
||||
var value17;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_0;
|
||||
var value4 = binding(env2_2[3]).tryParseDiceRollLink(a0);
|
||||
if (value4 != null) {
|
||||
guildId = value4.guildId;
|
||||
channelId = value4.channelId;
|
||||
diceCount = value4.diceCount;
|
||||
diceSides = value4.diceSides;
|
||||
binding = env2_0;
|
||||
binding5 = env2_2;
|
||||
binding(binding5[4]).startDiceRoll(channelId, diceCount, diceSides);
|
||||
value17 = binding(binding5[5]);
|
||||
transitionTo = value17.transitionTo;
|
||||
binding = env2_5;
|
||||
Reflect.apply(transitionTo, value17, [binding.CHANNEL(guildId, channelId), a1]);
|
||||
} else {
|
||||
binding = env2_0;
|
||||
var value6 = binding(env2_2[3]).tryParseChannelPath(a0);
|
||||
if (value6 == null) {
|
||||
if (value6 == null) {
|
||||
value12 = env2_1(env2_2[11]);
|
||||
yield value12.maybePerformRoleSubscriptionUpsellRedirect(value6 ?? ({guildId: undefined}));
|
||||
value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
if (!value13) {
|
||||
env2_0(env2_2[5]).transitionTo(a0, a1);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
guildId = value6.guildId;
|
||||
if (guildId == null) {
|
||||
value12 = env2_1(env2_2[11]);
|
||||
yield value12.maybePerformRoleSubscriptionUpsellRedirect(value6 ?? ({guildId: undefined}));
|
||||
value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
if (!value13) {
|
||||
env2_0(env2_2[5]).transitionTo(a0, a1);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_4;
|
||||
getGuild = binding.getGuild;
|
||||
guildId = value6.guildId;
|
||||
value10 = Reflect.apply(getGuild, binding, [guildId]);
|
||||
channelId = value6.channelId;
|
||||
if (value10 == null) {
|
||||
value12 = env2_1(env2_2[11]);
|
||||
yield value12.maybePerformRoleSubscriptionUpsellRedirect(value6 ?? ({guildId: undefined}));
|
||||
value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
if (!value13) {
|
||||
env2_0(env2_2[5]).transitionTo(a0, a1);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
value11 = binding(env2_2[9]);
|
||||
if (value11.isModeratorReportOrPostChannelId(channelId)) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value15 = binding(binding3[7]);
|
||||
show = value15.show;
|
||||
object2 = {};
|
||||
binding4 = env2_0;
|
||||
intl = binding4(binding3[8]).intl;
|
||||
object2.title = intl.string(binding(binding3[10]).iCIEAV);
|
||||
intl = binding4(binding3[8]).intl;
|
||||
object2.body = intl.string(binding(binding3[10]).bvzo6p);
|
||||
intl = binding4(binding3[8]).intl;
|
||||
object2.confirmText = intl.string(binding4(binding3[8]).t.BddRzS);
|
||||
Reflect.apply(show, value15, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
value12 = binding(env2_2[11]);
|
||||
yield value12.maybePerformRoleSubscriptionUpsellRedirect(value6 ?? ({guildId: undefined}));
|
||||
value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
if (!value13) {
|
||||
env2_0(env2_2[5]).transitionTo(a0, a1);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
yield binding(env2_2[6])(value6);
|
||||
var value7 = undefined;
|
||||
if (false) {
|
||||
return value7;
|
||||
}
|
||||
if (value7) {
|
||||
if (value6 == null) {
|
||||
value12 = env2_1(env2_2[11]);
|
||||
yield value12.maybePerformRoleSubscriptionUpsellRedirect(value6 ?? ({guildId: undefined}));
|
||||
value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
if (!value13) {
|
||||
env2_0(env2_2[5]).transitionTo(a0, a1);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
guildId = value6.guildId;
|
||||
if (guildId == null) {
|
||||
value12 = env2_1(env2_2[11]);
|
||||
yield value12.maybePerformRoleSubscriptionUpsellRedirect(value6 ?? ({guildId: undefined}));
|
||||
value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
if (!value13) {
|
||||
env2_0(env2_2[5]).transitionTo(a0, a1);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_4;
|
||||
getGuild = binding.getGuild;
|
||||
guildId = value6.guildId;
|
||||
value10 = Reflect.apply(getGuild, binding, [guildId]);
|
||||
channelId = value6.channelId;
|
||||
if (value10 == null) {
|
||||
value12 = env2_1(env2_2[11]);
|
||||
yield value12.maybePerformRoleSubscriptionUpsellRedirect(value6 ?? ({guildId: undefined}));
|
||||
value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
if (!value13) {
|
||||
env2_0(env2_2[5]).transitionTo(a0, a1);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
value11 = binding(env2_2[9]);
|
||||
if (value11.isModeratorReportOrPostChannelId(channelId)) {
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value15 = binding(binding3[7]);
|
||||
show = value15.show;
|
||||
object2 = {};
|
||||
binding4 = env2_0;
|
||||
intl = binding4(binding3[8]).intl;
|
||||
object2.title = intl.string(binding(binding3[10]).iCIEAV);
|
||||
intl = binding4(binding3[8]).intl;
|
||||
object2.body = intl.string(binding(binding3[10]).bvzo6p);
|
||||
intl = binding4(binding3[8]).intl;
|
||||
object2.confirmText = intl.string(binding4(binding3[8]).t.BddRzS);
|
||||
Reflect.apply(show, value15, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
value12 = binding(env2_2[11]);
|
||||
yield value12.maybePerformRoleSubscriptionUpsellRedirect(value6 ?? ({guildId: undefined}));
|
||||
value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
if (!value13) {
|
||||
env2_0(env2_2[5]).transitionTo(a0, a1);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
var binding2 = env2_2;
|
||||
var value9 = binding(binding2[7]);
|
||||
show = value9.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding2[8]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding2[8]).t;
|
||||
object2.title = Reflect.apply(string, intl, [t.r0DLNm]);
|
||||
intl = binding(binding2[8]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding2[8]).t;
|
||||
object2.body = Reflect.apply(string, intl, [t['6Y0JlN']]);
|
||||
intl = binding(binding2[8]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding2[8]).t;
|
||||
object2.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
||||
Reflect.apply(show, value9, [object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user