This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

+161 -151
View File
@@ -1,4 +1,9 @@
/* Metro module 8877; source: modules/links/LinkAnalyticsUtils.tsx; dependencies: [661, 8788, 1471, 4246, 683, 2] */
import URLUtils from '../../utils/URLUtils.tsx'; /* Metro dependency 1471 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as LinkUtilsModule from './LinkUtils.tsx'; /* Metro dependency 4246 */
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) {
@@ -46,7 +51,6 @@ function _fun69184(global, require, importDefault, importAll, module, exports, d
};
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];
@@ -63,186 +67,192 @@ function _fun69184(global, require, importDefault, importAll, module, exports, d
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');
(FileImportTrackerModule).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)) {
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);
}
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') {
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);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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 {
r6 = value;
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;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun69186;
}
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 _fun69186() { // fn#69186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9062:697, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
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 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) {
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 (a0 == null) {
if (a1 == 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;
value2 = _createForOfIteratorHelperLoose_69185(env0_5);
value3 = value2();
done = value3.done;
reducibleJoin8: while (true) {
reducibleJoin7: while (true) {
if (done) {
break reducibleJoin7;
}
r4 = value6;
continue reducibleLoop5;
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;
}
r0 = r1;
break reducibleJoin11;
UNKNOWN = env0_4.UNKNOWN;
r1 = UNKNOWN;
break reducibleJoin8;
}
UNKNOWN = env0_4.UNKNOWN;
r1 = UNKNOWN;
break reducibleJoin8;
r0 = r1;
} else {
value = environment;
value = getDiscordLinkTypeFromMetadata(a1);
r0 = value;
}
r0 = r1;
} else {
value = environment;
value = getDiscordLinkTypeFromMetadata(a1);
r0 = value;
break reducibleJoin11;
}
break reducibleJoin11;
return r0;
}
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;
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;
}
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]);
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 = (URLUtils).safeParseWithQuery(a0);
const value3 = null;
if (value3 == value2) {
return value3;
}
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 object;
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;
object = {is_discord_link: r9};
object.discord_link_type = r9 ? getDiscordLinkType(a0, a1) : value;
Reflect.apply(track, defaultImport2, [LINK_CLICKED, object]);
} 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;
object = {is_discord_link: r9};
object.discord_link_type = r9 ? getDiscordLinkType(a0, a1) : value;
Reflect.apply(track, defaultImport2, [LINK_CLICKED, object]);
}
}
}
global.__d(_fun69184, 8877, [661, 8788, 1471, 4246, 683,
2]) /* metro module 8877, dependencies: [661, 8788, 1471, 4246, 683, 2] */;
+103 -96
View File
@@ -1,15 +1,20 @@
/* Metro module 4246; source: modules/links/LinkUtils.tsx; dependencies: [1379, 1867, 3784, 661, 1386, 4100, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import RegexUtils from '../../utils/RegexUtils.tsx'; /* Metro dependency 4100 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
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 canViewChannel2 = 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 */;
let value = ConstantsModule;
const ME = value.ME;
const env0_6 = value.Permissions;
const StaticChannelRoutes = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoutes;
const StaticChannelRoutes = (ChannelConstantsModule).StaticChannelRoutes;
const Array = global.Array;
value = Array.from(StaticChannelRoutes);
value = value.map(_fun35278);
@@ -33,113 +38,115 @@ function _fun35276(global, require, importDefault, importAll, module, exports, d
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');
(FileImportTrackerModule).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.canViewChannel = canViewChannel2;
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;
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);
}
const value3 = a0.match(env0_8);
if (value != value3) {
if (value3.length > 3) {
return {guildId: value3[1], channelId: value3[2], messageId: value3[3]};
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 (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 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 value3 = a0.match(env0_8);
if (value != value3) {
if (value3.length > 3) {
return {guildId: value3[1], channelId: value3[2], messageId: value3[3]};
}
}
}
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;
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;
}
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;
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;
}
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];
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 object;
let value = null;
if (value == a0) {
return value;
}
const value3 = a0.match(env0_10);
if (value != value3) {
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;
if (length > 2) {
object = {};
value = 1;
object.guildId = value3[value];
object.channelId = value3[2];
length = value3.length;
r3 = length !== 5 ? value : global.parseInt(value3[3], 10);
object.diceCount = r3;
length = value3.length;
value = 6;
r3 = length !== 5 ? value : global.parseInt(value3[4], 10);
object.diceSides = r3;
r1 = object;
} else {
r1 = value;
}
} else {
r1 = value;
}
} else {
r1 = value;
return r1;
}
return r1;
}
global.__d(_fun35276, 4246, [1379, 1867, 3784, 661, 1386, 4100,
2]) /* metro module 4246, dependencies: [1379, 1867, 3784, 661, 1386, 4100, 2] */;
+10 -6
View File
@@ -1,14 +1,18 @@
/* Metro module 3768; source: modules/links/getLocalizedLink.tsx; dependencies: [1244, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
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');
(FileImportTrackerModule).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 = (IndexNativeModule).intl.currentLocale.toLowerCase();
return value in a0 ? a0[value] : a0.default;
}
}
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;
}
global.__d(_fun28555, 3768, [1244, 2]) /* metro module 3768, dependencies: [1244, 2] */;
@@ -1,227 +1,147 @@
/* 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] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GatedChannelStore from '../channel/GatedChannelStore.tsx'; /* Metro dependency 1936 */
import GuildRoleStore from '../../stores/GuildRoleStore.tsx'; /* Metro dependency 1938 */
import GuildOnboardingStore from '../guild_onboarding/GuildOnboardingStore.tsx'; /* Metro dependency 6599 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
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 */;
let value = ConstantsModule;
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');
(FileImportTrackerModule).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);
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 Module00005(_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;
}
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;
await undefined;
if (false) {
return undefined;
}
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) {
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_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);
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;
}
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;
@@ -239,185 +159,271 @@ async function _fun53850({guildId, channelId}) { // fn#53850, source: /ci/build/
}
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;
} else {
if (guildId === env2_10) {
if (channelId == null) {
return true;
}
r13 = value16;
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,
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;
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,
return r13 != null && (env2_0(env2_2[21]).canViewChannel(r13) || 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));
}
global.__d(_fun53847, 6839, [5, 1936, 6599, 1379, 1938, 1867, 661, 1386, 6840, 6849, 6829, 6853, 6855, 5103, 6856,
5112, 6857, 6858, 1360, 6904, 4603, 4246,
2]) /* metro module 6839, dependencies: [5, 1936, 6599, 1379, 1938, 1867, 661, 1386, 6840, 6849, 6829, 6853, 6855, 5103, 6856, 5112, 6857, 6858, 1360, 6904, 4603, 4246, 2] */;
+391 -392
View File
@@ -1,22 +1,26 @@
/* Metro module 4078; source: modules/links/native/BrowserManager.tsx; dependencies: [27, 629, 477, 4079, 676, 3853, 1360, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as Module00629Module from '../../../by-id/module-00629.js'; /* Metro dependency 629 */
import * as ConstantsIOSModule from '../../../ConstantsIOS.tsx'; /* Metro dependency 676 */
import * as NativeBrowserManagerModuleModule from '../../../external/discord_common/js/packages/rtn-codegen/js/NativeBrowserManagerModule.tsx'; /* Metro dependency 4079 */
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 getBrowserManagerIsChromeInstalled2 = getBrowserManagerIsChromeInstalled;
const getBrowserManagerSelectedBrowser2 = 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 NativeModules = ReactNativeModule.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');
const env0_7 = (Module00629Module).create(_fun33444);
(FileImportTrackerModule).fileFinishedImporting('modules/links/native/BrowserManager.tsx');
exports.useBrowserManagerIsChromeInstalled = useBrowserManagerIsChromeInstalled;
exports.getBrowserManagerIsChromeInstalled = closure;
exports.getBrowserManagerIsChromeInstalled = getBrowserManagerIsChromeInstalled2;
exports.useBrowserManagerSupportsInAppBrowser = useBrowserManagerSupportsInAppBrowser;
exports.useBrowserManagerSelectedBrowser = useBrowserManagerSelectedBrowser;
exports.getBrowserManagerSelectedBrowser = closure2;
exports.getBrowserManagerSelectedBrowser = getBrowserManagerSelectedBrowser2;
exports.useIsInAppBrowserOpen = useIsInAppBrowserOpen;
exports.getIsInAppBrowserOpen = getIsInAppBrowserOpen;
exports.subscribeToIsInAppBrowserOpen = subscribeToIsInAppBrowserOpen;
@@ -24,409 +28,404 @@ function _fun33440(global, require, importDefault, importAll, module, exports, d
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 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;
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;
}
object2.isChromeInstalled = isChromeInstalled;
const moduleValue2 = platformUtilsModule;
if (moduleValue2.isAndroid()) {
defaultImport2 = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
selectedBrowser = defaultImport2.getConstants().selectedBrowser;
} else {
selectedBrowser = BrowserManager.selectedBrowser;
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;
}
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) {
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 object = {};
var value;
if (PlatformUtilsModule.isAndroid()) {
defaultImport = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
defaultImport.selectBrowser(BrowserType.CHROME);
isChromeInstalled = defaultImport.getConstants().isChromeInstalled;
} else {
isChromeInstalled = BrowserManager.isChromeInstalled;
}
} 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);
object.isChromeInstalled = isChromeInstalled;
if (PlatformUtilsModule.isAndroid()) {
defaultImport2 = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
selectedBrowser = defaultImport2.getConstants().selectedBrowser;
} else {
selectedBrowser = BrowserManager.selectedBrowser;
}
r0 = BrowserManager.openAppStoreInline(a0, a1);
object.selectedBrowser = selectedBrowser;
if (PlatformUtilsModule.isAndroid()) {
value = importDefault(4079) /* metro dependency 4079: NativeBrowserManagerModule */;
supportsInAppBrowser = value.getConstants().supportsInAppBrowser;
} else {
supportsInAppBrowser = BrowserManager.supportsInAppBrowser;
}
object.supportsInAppBrowser = supportsInAppBrowser;
object.isInAppBrowserOpen = false;
return object;
}
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 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 _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 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 _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 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 _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 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 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 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 _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 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 = (ConstantsIOSModule).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 _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 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();
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();
}
}
}
}
}
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 = (ConstantsIOSModule).WebBrowserType;
var defaultImport;
const BrowserType = (NativeBrowserManagerModuleModule).BrowserType;
var defaultImport2;
var defaultImport3;
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});
if (!PlatformUtilsModule.isAndroid()) {
NativeModules.BrowserManager.closeBrowser();
}
}
}
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 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;
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 _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 _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();
}
}
global.__d(_fun33440, 4078, [27, 629, 477, 4079, 676, 3853, 1360,
2]) /* metro module 4078, dependencies: [27, 629, 477, 4079, 676, 3853, 1360, 2] */;
+31 -30
View File
@@ -1,40 +1,41 @@
/* Metro module 3850; source: modules/links/native/LinkingModule.tsx; dependencies: [27, 477, 3851, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
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);
object = {tryOpenUrlAsUniversalLink: tryOpenUrlAsUniversalLink, tryOpenScheme: tryOpenScheme};
(FileImportTrackerModule).fileFinishedImporting('modules/links/native/LinkingModule.tsx');
exports.default = object;
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;
if (PlatformUtilsModule.isAndroid()) {
value = importDefault(3851) /* metro dependency 3851: NativeLinkingModule */;
value = value.tryOpenUrlAsUniversalLink(a0);
r0 = value;
} else {
r0 = NativeModules.DCDLinkingManager.tryOpenUrlAsUniversalLink(a0);
}
return r0;
}
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);
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;
if (PlatformUtilsModule.isAndroid()) {
value = importDefault(3851) /* metro dependency 3851: NativeLinkingModule */;
value = value.tryOpenScheme(a0);
r0 = value;
} else {
r0 = NativeModules.DCDLinkingManager.tryOpenScheme(a0);
}
return r0;
}
return r0;
}
global.__d(_fun31777, 3850, [27, 477, 3851, 2]) /* metro module 3850, dependencies: [27, 477, 3851, 2] */;
@@ -1,15 +1,17 @@
/* Metro module 3852; source: modules/links/native/LinkingSchemas.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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'),
object = {};
object.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;
const value = Object.values(object);
(FileImportTrackerModule).fileFinishedImporting('modules/links/native/LinkingSchemas.tsx');
exports.LINKING_SCHEMAS = object;
exports.LINKING_SCHEMAS_VALUES = value;
}
global.__d(_fun31781, 3852, [2]) /* metro module 3852, dependencies: [2] */;
@@ -1,31 +1,33 @@
/* Metro module 3854; source: modules/links/native/LinkingWhitelist.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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'),
object = {};
object.discordConnect = {regex: RegExp('(?:^discordconnect:\\/\\/)', 'i'), protocol: 'discordconnect://'};
object.facebook = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(facebook\\.com)(?:$|\\/)', 'i'), protocol: 'fb://'};
object.instagram = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(instagram\\.com|instagr\\.am)(?:$|\\/)', 'i'),
protocol: 'instagram://'};
object2.snapchat = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(snapchat\\.com)(?:$|\\/)', 'i'),
object.snapchat = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(snapchat\\.com)(?:$|\\/)', 'i'),
protocol: 'snapchat://'};
object2.spotify = {regex: RegExp('(?:^https?:\\/\\/)(?:open\\.)?(spotify\\.com)(?:$|\\/)', 'i'),
object.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'),
object.tiktok = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(tiktok\\.com)(?:$|\\/)', 'i'), protocol: 'tiktok://'};
object.twitch = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(twitch\\.tv)(?:$|\\/)', 'i'), protocol: 'twitch://'};
object.telegram = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(t\\.me)(?:$|\\/)', 'i'), protocol: 'tg://'};
object.twitter = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(?:twitter\\.com|x\\.com)(?:$|\\/)', 'i'),
protocol: 'twitter://'};
object2.whatsapp = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(whatsapp\\.com)(?:$|\\/)', 'i'),
object.whatsapp = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(whatsapp\\.com)(?:$|\\/)', 'i'),
protocol: 'whatsapp://'};
object2.youtube = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(youtube\\.com|youtu\\.be)(?:$|\\/)', 'i'),
object.youtube = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(youtube\\.com|youtu\\.be)(?:$|\\/)', 'i'),
protocol: 'youtube://'};
object2.zoom = {regex: RegExp('(?:^https?:\\/\\/)(?:www\\.)?(zoom\\.us)(?:$|\\/)', 'i'), protocol: 'zoomus://'};
object.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;
const value = Object.values(object);
(FileImportTrackerModule).fileFinishedImporting('modules/links/native/LinkingWhitelist.tsx');
exports.LINKING_WHITELIST = object;
exports.LINKING_WHITELIST_VALUES = value;
}
global.__d(_fun31787, 3854, [2]) /* metro module 3854, dependencies: [2] */;
@@ -1,121 +1,125 @@
/* Metro module 9863; source: modules/links/native/handleContentLinking.tsx; dependencies: [5, 4255, 661, 5080, 6837, 1230, 9864, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as PostConnectionCallbackStoreModule from '../../gateway/PostConnectionCallbackStore.tsx'; /* Metro dependency 4255 */
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');
(FileImportTrackerModule).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});
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 Module00005(_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;
}
if (channelId != null && summaryId != null) {
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
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);
}
}
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;
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'));
}
if (channelId != null && summaryId != null) {
env2_1(env2_2[6]).setSelectedSummary(channelId, summaryId);
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();
}
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();
}
global.__d(_fun77312, 9863, [5, 4255, 661, 5080, 6837, 1230, 9864,
2]) /* metro module 9863, dependencies: [5, 4255, 661, 5080, 6837, 1230, 9864, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,103 +1,112 @@
/* Metro module 9862; source: modules/links/native/showLongPressURLActionSheet.tsx; dependencies: [4081, 1244, 3856, 6797, 3853, 9212, 9863, 6802, 2] */
import HandleContentLinking from './handleContentLinking.tsx'; /* Metro dependency 9863 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ToastUtilsModule from '../../toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */
import * as ClipboardUtilsNativeModule from '../../../utils/ClipboardUtils.native.tsx'; /* Metro dependency 6797 */
import * as ShowShareActionSheetAndroidModule from '../../action_sheet/native/showShareActionSheet.android.tsx'; /* Metro dependency 9212 */
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');
(FileImportTrackerModule).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'];
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 = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
var object;
disableHapticFeedback = !(disableHapticFeedback === undefined) && disableHapticFeedback;
if (!disableHapticFeedback) {
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
value.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT);
}
Reflect.apply(push, items2, [{label: Reflect.apply(string, intl, [r10]), onPress: onPress_77306}]);
if (value[1] === 'tel') {
const items2 = [];
value = urlString.match(RegExp('^(tel|sms|mailto):([^?;]+)', ''));
if (value != null) {
push = items2.push;
object2 = {};
object2.label = intl.string(t['+wbjMW']);
object2.onPress = onPress_77307;
Reflect.apply(push, items2, [object2]);
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;
object = {};
object.label = intl.string(t['+wbjMW']);
object.onPress = onPress_77307;
Reflect.apply(push, items2, [object]);
}
}
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 object3 = {};
object3.title = intl.string(t['5oIOLX']);
object3.subtitle = urlString;
Reflect.apply(showSimpleActionSheet, value, [{key: 'LongPressUrl', header: object3, 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__;
(ToastUtilsModule).presentLinkCopied();
(ClipboardUtilsNativeModule).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__;
(ToastUtilsModule).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__;
(ShowShareActionSheetAndroidModule).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__;
(HandleContentLinking)({guildId: guildId, channelId: channelId,
messageId: messageId, navigationSettings: {'navigationReplace': true, 'safe': true}});
}
}
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}});
}
global.__d(_fun77304, 9862, [4081, 1244, 3856, 6797, 3853, 9212, 9863, 6802,
2]) /* metro module 9862, dependencies: [4081, 1244, 3856, 6797, 3853, 9212, 9863, 6802, 2] */;
+217 -213
View File
@@ -1,233 +1,237 @@
/* Metro module 6837; source: modules/links/safeTransitionTo.native.tsx; dependencies: [5, 1867, 661, 4246, 6838, 1230, 6839, 4496, 1244, 6864, 2324, 6905, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
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');
(FileImportTrackerModule).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;
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 Module00005(_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 object;
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;
object = {};
binding4 = env2_0;
intl = binding4(binding3[8]).intl;
object.title = intl.string(binding(binding3[10]).iCIEAV);
intl = binding4(binding3[8]).intl;
object.body = intl.string(binding(binding3[10]).bvzo6p);
intl = binding4(binding3[8]).intl;
object.confirmText = intl.string(binding4(binding3[8]).t.BddRzS);
Reflect.apply(show, value15, [object]);
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;
}
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;
yield binding(env2_2[6])(value6);
var value7 = undefined;
if (false) {
return value13;
return value7;
}
if (!value13) {
env2_0(env2_2[5]).transitionTo(a0, a1);
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;
object = {};
binding4 = env2_0;
intl = binding4(binding3[8]).intl;
object.title = intl.string(binding(binding3[10]).iCIEAV);
intl = binding4(binding3[8]).intl;
object.body = intl.string(binding(binding3[10]).bvzo6p);
intl = binding4(binding3[8]).intl;
object.confirmText = intl.string(binding4(binding3[8]).t.BddRzS);
Reflect.apply(show, value15, [object]);
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;
}
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;
var binding2 = env2_2;
var value9 = binding(binding2[7]);
show = value9.show;
object = {};
binding = env2_0;
intl = binding(binding2[8]).intl;
string = intl.string;
t = binding(binding2[8]).t;
object.title = Reflect.apply(string, intl, [t.r0DLNm]);
intl = binding(binding2[8]).intl;
string = intl.string;
t = binding(binding2[8]).t;
object.body = Reflect.apply(string, intl, [t['6Y0JlN']]);
intl = binding(binding2[8]).intl;
string = intl.string;
t = binding(binding2[8]).t;
object.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
Reflect.apply(show, value9, [object]);
}
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]);
}
}
}
global.__d(_fun53840, 6837, [5, 1867, 661, 4246, 6838, 1230, 6839, 4496, 1244, 6864, 2324, 6905,
2]) /* metro module 6837, dependencies: [5, 1867, 661, 4246, 6838, 1230, 6839, 4496, 1244, 6864, 2324, 6905, 2] */;