Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,145 @@
/* Metro module 7229; source: modules/forwarding/ForwardActionCreators.tsx; dependencies: [5, 1379, 3784, 4503, 7230, 7076, 679, 7067, 7231, 4142, 2] */
function _fun57900(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7407:6, offset: 0x016b8f74, size: 191 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const env0_6 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation;
object2 = {sendForward: sendForward, sendForwards: sendForwards};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/ForwardActionCreators.tsx');
exports.default = object2;
}
function sendForward(a0, a1, a2) { // fn#57901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7407:171, offset: 0x016b9033, size: 48 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
return env0_3(_fun57903)();
}
function sendForwards(a0, a1, a2) { // fn#57904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7407:1086, offset: 0x016b9312, size: 66 bytes, params: 4, frame: 13
const env0_0 = a0;
const env0_1 = a2;
return (importDefault(4142) /* metro dependency 4142 */)(a1.map(_fun57905));
}
function* _fun57903() { // fn#57903, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7407:183, offset: 0x016b906c, size: 678 bytes, params: 1, frame: 26
var withMessage;
var binding2;
var value7;
var parse;
var value9;
var object2;
var id;
var value10;
var sendMessage;
var FORWARDING;
var binding3;
var value15;
var value16;
var value17;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_4;
const channel = binding.getChannel(importDefault);
const channel2 = binding.getChannel(require.channel_id);
let r1 = dependencyMap == null ? channel2?.guild_id : dependencyMap.isICYMIGameContentForwarding ? env2_0(env2_2[4]).GAME_CONTENT_GUILD_ID : channel2?.guild_id;
if (channel2 != null) {
if (channel == null) {
throw new global.Error('Unable to find destination channel for message');
}
binding = env2_1;
binding2 = env2_2;
value7 = undefined;
value9 = binding(binding2[5]).parse(channel, '');
object2 = {guild_id: r1};
object2.channel_id = require.channel_id;
id = require.id;
object2.message_id = id;
binding = env2_0;
object2.type = binding(binding2[6]).MessageReferenceTypes.FORWARD;
r1 = (dependencyMap == null ? value7 : dependencyMap.onlyAttachmentIds) != null || (dependencyMap == null ? value7 : dependencyMap.onlyEmbedIndices) != null ? {attachment_ids: dependencyMap.onlyAttachmentIds,
embed_indices: dependencyMap.onlyEmbedIndices} : value7;
object2.forward_only = r1;
binding = env2_1;
value10 = binding(env2_2[7]);
sendMessage = value10.sendMessage;
id = channel.id;
FORWARDING = env2_6.FORWARDING;
yield Reflect.apply(sendMessage, value10, [id, value9, false, {messageReference: object2, location: FORWARDING,
eagerDispatch: false}]);
if (false) {
return undefined;
}
withMessage = dependencyMap == null ? value7 : dependencyMap.withMessage;
if (withMessage == null || env2_0(env2_2[8]).isRatelimitedInChannel(channel, env2_5)) {
return value7;
}
binding = env2_1;
binding3 = env2_2;
value15 = binding(binding3[7]);
sendMessage = value15.sendMessage;
id = channel.id;
value16 = binding(binding3[5]);
parse = value16.parse;
withMessage = dependencyMap.withMessage;
value17 = Reflect.apply(parse, value16, [channel, withMessage]);
FORWARDING = env2_6.FORWARDING;
yield Reflect.apply(sendMessage, value15, [id, value17, false, {location: FORWARDING}]);
value = undefined;
} else {
if (r1 == null) {
throw new global.Error('Unable to find original channel for message');
}
if (channel == null) {
throw new global.Error('Unable to find destination channel for message');
}
binding = env2_1;
binding2 = env2_2;
value7 = undefined;
value9 = binding(binding2[5]).parse(channel, '');
object2 = {guild_id: r1};
object2.channel_id = require.channel_id;
object2.message_id = require.id;
object2.type = env2_0(binding2[6]).MessageReferenceTypes.FORWARD;
object2.forward_only = (dependencyMap == null ? value7 : dependencyMap.onlyAttachmentIds) != null || (dependencyMap == null ? value7 : dependencyMap.onlyEmbedIndices) != null ? {attachment_ids: dependencyMap.onlyAttachmentIds,
embed_indices: dependencyMap.onlyEmbedIndices} : value7;
value10 = env2_1(env2_2[7]);
sendMessage = value10.sendMessage;
id = channel.id;
FORWARDING = env2_6.FORWARDING;
yield Reflect.apply(sendMessage, value10, [id, value9, false, {messageReference: object2, location: FORWARDING,
eagerDispatch: false}]);
if (false) {
return undefined;
}
if ((dependencyMap == null ? value7 : dependencyMap.withMessage) == null || env2_0(env2_2[8]).isRatelimitedInChannel(channel,
env2_5)) {
return value7;
}
binding = env2_1;
binding3 = env2_2;
value15 = binding(binding3[7]);
sendMessage = value15.sendMessage;
id = channel.id;
value16 = binding(binding3[5]);
value17 = value16.parse(channel, dependencyMap.withMessage);
FORWARDING = env2_6.FORWARDING;
yield Reflect.apply(sendMessage, value15, [id, value17, false, {location: FORWARDING}]);
}
return value7;
}
function _fun57905(a0) { // fn#57905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7407:1110, offset: 0x016b9354, size: 36 bytes, params: 2, frame: 15
const binding = env1_7;
return binding.sendForward(env0_0, a0, importDefault);
}
@@ -0,0 +1,8 @@
/* Metro module 9594; source: modules/forwarding/ForwardConstants.tsx; dependencies: [2] */
function _fun75194(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9780:6, offset: 0x01da5a1f, size: 81 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/ForwardConstants.tsx');
exports.MAX_DESTINATION_COUNT = 5;
}
@@ -0,0 +1,749 @@
/* Metro module 7231; source: modules/forwarding/ForwardDestinationUtils.tsx; dependencies: [31, 6583, 1383, 1379, 3784, 3793, 1878, 661, 7232, 1360, 566, 677, 4643, 1909, 5072, 1244, 4641, 3995, 4805, 2] */
function _fun57908(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:6, offset: 0x016b9637, size: 332 bytes, params: 8, frame: 20
let env0_0 = require;
const closure = isRatelimitedInChannel;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const stickersStore = importDefault(6583) /* metro dependency 6583: StickersStore */;
let value = require(1383) /* metro dependency 1383: ChannelRecord */;
const env0_5 = value.ChannelRecordBase;
const env0_6 = value.isGuildChannelType;
const env0_7 = value.createChannelRecord;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
value = require(661) /* metro dependency 661: Constants */;
const env0_12 = value.MessageFlags;
const env0_13 = value.Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/ForwardDestinationUtils.tsx');
exports.useSelectedDestinationChannel = useSelectedDestinationChannel;
exports.getDestinationIsUnavailable = getDestinationIsUnavailable;
exports.isRatelimitedInChannel = closure;
exports.useSelectedDestinationNames = function(a0) {
var env0_0 = a0;
return require(dependencyMap[10]).useStateFromStoresArray([UserStore, ChannelStore, RelationshipStore],
_fun57921,
[a0]);
};
exports.useDestinationNamesWithSlowmode = useDestinationNamesWithSlowmode;
}
function messageHasCheckpoint(a0) { // fn#57909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:278, offset: 0x016b9783, size: 81 bytes, params: 2, frame: 13
return a0.components.length > 0 && a0.components[0].type === (require(1909) /* metro dependency 1909: Server */).ComponentType.CHECKPOINT_CARD;
}
function isRatelimitedInChannel(a0, a1) { // fn#57910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:403, offset: 0x016b97d4, size: 91 bytes, params: 3, frame: 15
return a0.rateLimitPerUser != null && a0.rateLimitPerUser > 0 && !(a1.can(Permissions.MANAGE_CHANNELS,
a0) || a1.can(Permissions.MANAGE_MESSAGES, a0));
}
function useSelectedDestinationChannel(a0) { // fn#57911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:666, offset: 0x016b982f, size: 162 bytes, params: 2, frame: 18
const map = a0.map;
const getChannelIdFromDestinationId = (require(7232) /* metro dependency 7232: formatResults */).getChannelIdFromDestinationId;
const value2 = Reflect.apply(map, a0, [getChannelIdFromDestinationId]);
return env0_3.useMemo(_fun57913, [(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore],
_fun57912, [value2.find((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish)])]);
}
function getDestinationIsUnavailable(a0, a1, a2, a3) { // fn#57914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:958, offset: 0x016b993e, size: 1040 bytes, params: 5, frame: 26
var r4;
var value3;
var messageHasCheckpointBinding;
var value4;
var messageSnapshots;
var length;
var value5;
var message;
var value6;
var moduleValue;
var isChannelOrGuildNSFW;
var moduleValue2;
var items;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var KgPx1D;
var isGuildChannelTypeBinding;
var type;
var attachments;
var some;
var can;
var ATTACH_FILES;
var embeds;
var moduleValue3;
var canEmbedLinks;
var moduleValue4;
var shouldStripEmbeds;
var moduleValue5;
var moduleValue6;
var getMessageStickers;
var value7;
var value8;
var flatMap;
var USE_EXTERNAL_STICKERS;
var hasFlag;
var IS_VOICE_MESSAGE;
var SEND_VOICE_MESSAGES;
const env0_0 = a2;
const value2 = a2 instanceof ChannelRecordBase;
if (a3 != null) {
value3 = a3(a2);
reducibleJoin2: while (true) {
if (value3 != null) {
return value3;
}
break reducibleJoin2;
}
}
if (a0 != null) {
value4 = messageHasCheckpoint(a0);
messageSnapshots = a0.messageSnapshots;
length = messageSnapshots.length;
value5 = length > 0;
reducibleJoin5: while (true) {
if (value5) {
messageHasCheckpointBinding = messageHasCheckpoint;
messageSnapshots = a0.messageSnapshots;
message = messageSnapshots[0].message;
value6 = messageHasCheckpointBinding(message);
r4 = value6;
break reducibleJoin5;
}
r4 = value5;
break reducibleJoin5;
}
reducibleJoin34: while (true) {
reducibleJoin11: while (true) {
if (a1 != null) {
moduleValue = require(5072) /* metro dependency 5072: AgeGateUtils */;
isChannelOrGuildNSFW = moduleValue.isChannelOrGuildNSFW;
if (Reflect.apply(isChannelOrGuildNSFW, moduleValue, [a1])) {
if (value2) {
moduleValue2 = require(5072) /* metro dependency 5072: AgeGateUtils */;
isChannelOrGuildNSFW = moduleValue2.isChannelOrGuildNSFW;
reducibleJoin10: while (true) {
if (Reflect.apply(isChannelOrGuildNSFW, moduleValue2, [a2])) {
break reducibleJoin11;
}
break reducibleJoin10;
}
}
string = intl.string;
KgPx1D = t.KgPx1D;
return {label: Reflect.apply(string, intl, [KgPx1D])};
}
break reducibleJoin11;
}
if (value4) {
moduleValue = require(5072) /* metro dependency 5072: AgeGateUtils */;
isChannelOrGuildNSFW = moduleValue.isChannelOrGuildNSFW;
if (Reflect.apply(isChannelOrGuildNSFW, moduleValue, [a1])) {
if (value2) {
moduleValue2 = require(5072) /* metro dependency 5072: AgeGateUtils */;
isChannelOrGuildNSFW = moduleValue2.isChannelOrGuildNSFW;
reducibleJoin10: while (true) {
if (Reflect.apply(isChannelOrGuildNSFW, moduleValue2, [a2])) {
break reducibleJoin11;
}
break reducibleJoin10;
}
}
string = intl.string;
KgPx1D = t.KgPx1D;
return {label: Reflect.apply(string, intl, [KgPx1D])};
}
break reducibleJoin11;
}
break reducibleJoin34;
}
if (value2) {
isGuildChannelTypeBinding = isGuildChannelType;
type = a2.type;
if (isGuildChannelTypeBinding(type)) {
attachments = a0.attachments;
length = attachments.length;
if (!(length > 0)) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin15: while (true) {
if (Reflect.apply(some, messageSnapshots, [function(a0) {
return a0.message.attachments.length > 0;
}])) {
break reducibleJoin15;
}
embeds = a0.embeds;
length = embeds.length;
if (!(length > 0)) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin19: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57916])) {
break reducibleJoin19;
}
if (!value4) {
reducibleJoin24: while (true) {
if (r4) {
break reducibleJoin24;
}
moduleValue6 = require(4643) /* metro dependency 4643: StickersUtils */;
getMessageStickers = moduleValue6.getMessageStickers;
value7 = Reflect.apply(getMessageStickers, moduleValue6, [a0]);
items = [];
value8 = arraySpread(items, value7, 0, undefined);
messageSnapshots = a0.messageSnapshots;
flatMap = messageSnapshots.flatMap;
arraySpread(items, Reflect.apply(flatMap, messageSnapshots, [_fun57917]),
value8,
undefined);
length = items.length;
if (length > 0) {
can = PermissionStore.can;
USE_EXTERNAL_STICKERS = Permissions.USE_EXTERNAL_STICKERS;
reducibleJoin30: while (true) {
if (Reflect.apply(can, PermissionStore, [USE_EXTERNAL_STICKERS,
a2])) {
break reducibleJoin30;
}
some = items.some;
if (Reflect.apply(some, items, [_fun57918])) {
return {label: intl.string(t['0Yyrua'])};
}
break reducibleJoin30;
}
}
hasFlag = a0.hasFlag;
IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
if (!Reflect.apply(hasFlag, a0, [IS_VOICE_MESSAGE])) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin32: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57919])) {
break reducibleJoin32;
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
SEND_VOICE_MESSAGES = Permissions.SEND_VOICE_MESSAGES;
if (!Reflect.apply(can, PermissionStore, [SEND_VOICE_MESSAGES, a2])) {
return {label: intl.string(t.quj4DY)};
}
break reducibleJoin34;
}
}
moduleValue5 = require(4641) /* metro dependency 4641: EmbedUtils */;
canEmbedLinks = moduleValue5.canEmbedLinks;
if (!Reflect.apply(canEmbedLinks, moduleValue5, [a2, PermissionStore])) {
return {label: intl.string(t.Wr4RIX)};
}
moduleValue6 = require(4643) /* metro dependency 4643: StickersUtils */;
getMessageStickers = moduleValue6.getMessageStickers;
value7 = Reflect.apply(getMessageStickers, moduleValue6, [a0]);
items = [];
value8 = arraySpread(items, value7, 0, undefined);
messageSnapshots = a0.messageSnapshots;
flatMap = messageSnapshots.flatMap;
arraySpread(items, Reflect.apply(flatMap, messageSnapshots, [_fun57917]), value8,
undefined);
length = items.length;
if (length > 0) {
can = PermissionStore.can;
USE_EXTERNAL_STICKERS = Permissions.USE_EXTERNAL_STICKERS;
reducibleJoin30: while (true) {
if (Reflect.apply(can, PermissionStore, [USE_EXTERNAL_STICKERS, a2])) {
break reducibleJoin30;
}
some = items.some;
if (Reflect.apply(some, items, [_fun57918])) {
return {label: intl.string(t['0Yyrua'])};
}
break reducibleJoin30;
}
}
hasFlag = a0.hasFlag;
IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
if (!Reflect.apply(hasFlag, a0, [IS_VOICE_MESSAGE])) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin32: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57919])) {
break reducibleJoin32;
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
SEND_VOICE_MESSAGES = Permissions.SEND_VOICE_MESSAGES;
if (!Reflect.apply(can, PermissionStore, [SEND_VOICE_MESSAGES, a2])) {
return {label: intl.string(t.quj4DY)};
}
break reducibleJoin34;
}
}
moduleValue3 = require(4641) /* metro dependency 4641: EmbedUtils */;
canEmbedLinks = moduleValue3.canEmbedLinks;
if (!Reflect.apply(canEmbedLinks, moduleValue3, [a2, PermissionStore])) {
moduleValue4 = require(4641) /* metro dependency 4641: EmbedUtils */;
shouldStripEmbeds = moduleValue4.shouldStripEmbeds;
reducibleJoin22: while (true) {
if (!Reflect.apply(shouldStripEmbeds, moduleValue4, [a0])) {
return {label: intl.string(t.Wr4RIX)};
}
break reducibleJoin22;
}
}
if (!value4) {
reducibleJoin24: while (true) {
if (r4) {
break reducibleJoin24;
}
moduleValue6 = require(4643) /* metro dependency 4643: StickersUtils */;
getMessageStickers = moduleValue6.getMessageStickers;
value7 = Reflect.apply(getMessageStickers, moduleValue6, [a0]);
items = [];
value8 = arraySpread(items, value7, 0, undefined);
messageSnapshots = a0.messageSnapshots;
flatMap = messageSnapshots.flatMap;
arraySpread(items, Reflect.apply(flatMap, messageSnapshots, [_fun57917]), value8,
undefined);
length = items.length;
if (length > 0) {
can = PermissionStore.can;
USE_EXTERNAL_STICKERS = Permissions.USE_EXTERNAL_STICKERS;
reducibleJoin30: while (true) {
if (Reflect.apply(can, PermissionStore, [USE_EXTERNAL_STICKERS, a2])) {
break reducibleJoin30;
}
some = items.some;
if (Reflect.apply(some, items, [_fun57918])) {
return {label: intl.string(t['0Yyrua'])};
}
break reducibleJoin30;
}
}
hasFlag = a0.hasFlag;
IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
if (!Reflect.apply(hasFlag, a0, [IS_VOICE_MESSAGE])) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin32: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57919])) {
break reducibleJoin32;
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
SEND_VOICE_MESSAGES = Permissions.SEND_VOICE_MESSAGES;
if (!Reflect.apply(can, PermissionStore, [SEND_VOICE_MESSAGES, a2])) {
return {label: intl.string(t.quj4DY)};
}
break reducibleJoin34;
}
}
moduleValue5 = require(4641) /* metro dependency 4641: EmbedUtils */;
canEmbedLinks = moduleValue5.canEmbedLinks;
if (!Reflect.apply(canEmbedLinks, moduleValue5, [a2, PermissionStore])) {
return {label: intl.string(t.Wr4RIX)};
}
moduleValue6 = require(4643) /* metro dependency 4643: StickersUtils */;
getMessageStickers = moduleValue6.getMessageStickers;
value7 = Reflect.apply(getMessageStickers, moduleValue6, [a0]);
items = [];
value8 = arraySpread(items, value7, 0, undefined);
messageSnapshots = a0.messageSnapshots;
flatMap = messageSnapshots.flatMap;
arraySpread(items, Reflect.apply(flatMap, messageSnapshots, [_fun57917]), value8,
undefined);
length = items.length;
if (length > 0) {
can = PermissionStore.can;
USE_EXTERNAL_STICKERS = Permissions.USE_EXTERNAL_STICKERS;
reducibleJoin30: while (true) {
if (Reflect.apply(can, PermissionStore, [USE_EXTERNAL_STICKERS, a2])) {
break reducibleJoin30;
}
some = items.some;
if (Reflect.apply(some, items, [_fun57918])) {
return {label: intl.string(t['0Yyrua'])};
}
break reducibleJoin30;
}
}
hasFlag = a0.hasFlag;
IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
if (!Reflect.apply(hasFlag, a0, [IS_VOICE_MESSAGE])) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin32: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57919])) {
break reducibleJoin32;
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
SEND_VOICE_MESSAGES = Permissions.SEND_VOICE_MESSAGES;
if (!Reflect.apply(can, PermissionStore, [SEND_VOICE_MESSAGES, a2])) {
return {label: intl.string(t.quj4DY)};
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
ATTACH_FILES = Permissions.ATTACH_FILES;
if (!Reflect.apply(can, PermissionStore, [ATTACH_FILES, a2])) {
return {label: intl.string(t.P7yvbm)};
}
embeds = a0.embeds;
length = embeds.length;
if (!(length > 0)) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin19: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57916])) {
break reducibleJoin19;
}
if (!value4) {
reducibleJoin24: while (true) {
if (r4) {
break reducibleJoin24;
}
moduleValue6 = require(4643) /* metro dependency 4643: StickersUtils */;
getMessageStickers = moduleValue6.getMessageStickers;
value7 = Reflect.apply(getMessageStickers, moduleValue6, [a0]);
items = [];
value8 = arraySpread(items, value7, 0, undefined);
messageSnapshots = a0.messageSnapshots;
flatMap = messageSnapshots.flatMap;
arraySpread(items, Reflect.apply(flatMap, messageSnapshots, [_fun57917]), value8,
undefined);
length = items.length;
if (length > 0) {
can = PermissionStore.can;
USE_EXTERNAL_STICKERS = Permissions.USE_EXTERNAL_STICKERS;
reducibleJoin30: while (true) {
if (Reflect.apply(can, PermissionStore, [USE_EXTERNAL_STICKERS, a2])) {
break reducibleJoin30;
}
some = items.some;
if (Reflect.apply(some, items, [_fun57918])) {
return {label: intl.string(t['0Yyrua'])};
}
break reducibleJoin30;
}
}
hasFlag = a0.hasFlag;
IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
if (!Reflect.apply(hasFlag, a0, [IS_VOICE_MESSAGE])) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin32: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57919])) {
break reducibleJoin32;
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
SEND_VOICE_MESSAGES = Permissions.SEND_VOICE_MESSAGES;
if (!Reflect.apply(can, PermissionStore, [SEND_VOICE_MESSAGES, a2])) {
return {label: intl.string(t.quj4DY)};
}
break reducibleJoin34;
}
}
moduleValue5 = require(4641) /* metro dependency 4641: EmbedUtils */;
canEmbedLinks = moduleValue5.canEmbedLinks;
if (!Reflect.apply(canEmbedLinks, moduleValue5, [a2, PermissionStore])) {
return {label: intl.string(t.Wr4RIX)};
}
moduleValue6 = require(4643) /* metro dependency 4643: StickersUtils */;
getMessageStickers = moduleValue6.getMessageStickers;
value7 = Reflect.apply(getMessageStickers, moduleValue6, [a0]);
items = [];
value8 = arraySpread(items, value7, 0, undefined);
messageSnapshots = a0.messageSnapshots;
flatMap = messageSnapshots.flatMap;
arraySpread(items, Reflect.apply(flatMap, messageSnapshots, [_fun57917]), value8,
undefined);
length = items.length;
if (length > 0) {
can = PermissionStore.can;
USE_EXTERNAL_STICKERS = Permissions.USE_EXTERNAL_STICKERS;
reducibleJoin30: while (true) {
if (Reflect.apply(can, PermissionStore, [USE_EXTERNAL_STICKERS, a2])) {
break reducibleJoin30;
}
some = items.some;
if (Reflect.apply(some, items, [_fun57918])) {
return {label: intl.string(t['0Yyrua'])};
}
break reducibleJoin30;
}
}
hasFlag = a0.hasFlag;
IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
if (!Reflect.apply(hasFlag, a0, [IS_VOICE_MESSAGE])) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin32: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57919])) {
break reducibleJoin32;
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
SEND_VOICE_MESSAGES = Permissions.SEND_VOICE_MESSAGES;
if (!Reflect.apply(can, PermissionStore, [SEND_VOICE_MESSAGES, a2])) {
return {label: intl.string(t.quj4DY)};
}
break reducibleJoin34;
}
}
moduleValue3 = require(4641) /* metro dependency 4641: EmbedUtils */;
canEmbedLinks = moduleValue3.canEmbedLinks;
if (!Reflect.apply(canEmbedLinks, moduleValue3, [a2, PermissionStore])) {
moduleValue4 = require(4641) /* metro dependency 4641: EmbedUtils */;
shouldStripEmbeds = moduleValue4.shouldStripEmbeds;
reducibleJoin22: while (true) {
if (!Reflect.apply(shouldStripEmbeds, moduleValue4, [a0])) {
return {label: intl.string(t.Wr4RIX)};
}
break reducibleJoin22;
}
}
if (!value4) {
reducibleJoin24: while (true) {
if (r4) {
break reducibleJoin24;
}
moduleValue6 = require(4643) /* metro dependency 4643: StickersUtils */;
getMessageStickers = moduleValue6.getMessageStickers;
value7 = Reflect.apply(getMessageStickers, moduleValue6, [a0]);
items = [];
value8 = arraySpread(items, value7, 0, undefined);
messageSnapshots = a0.messageSnapshots;
flatMap = messageSnapshots.flatMap;
arraySpread(items, Reflect.apply(flatMap, messageSnapshots, [_fun57917]), value8,
undefined);
length = items.length;
if (length > 0) {
can = PermissionStore.can;
USE_EXTERNAL_STICKERS = Permissions.USE_EXTERNAL_STICKERS;
reducibleJoin30: while (true) {
if (Reflect.apply(can, PermissionStore, [USE_EXTERNAL_STICKERS, a2])) {
break reducibleJoin30;
}
some = items.some;
if (Reflect.apply(some, items, [_fun57918])) {
return {label: intl.string(t['0Yyrua'])};
}
break reducibleJoin30;
}
}
hasFlag = a0.hasFlag;
IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
if (!Reflect.apply(hasFlag, a0, [IS_VOICE_MESSAGE])) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin32: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57919])) {
break reducibleJoin32;
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
SEND_VOICE_MESSAGES = Permissions.SEND_VOICE_MESSAGES;
if (!Reflect.apply(can, PermissionStore, [SEND_VOICE_MESSAGES, a2])) {
return {label: intl.string(t.quj4DY)};
}
break reducibleJoin34;
}
}
moduleValue5 = require(4641) /* metro dependency 4641: EmbedUtils */;
canEmbedLinks = moduleValue5.canEmbedLinks;
if (!Reflect.apply(canEmbedLinks, moduleValue5, [a2, PermissionStore])) {
return {label: intl.string(t.Wr4RIX)};
}
moduleValue6 = require(4643) /* metro dependency 4643: StickersUtils */;
getMessageStickers = moduleValue6.getMessageStickers;
value7 = Reflect.apply(getMessageStickers, moduleValue6, [a0]);
items = [];
value8 = arraySpread(items, value7, 0, undefined);
messageSnapshots = a0.messageSnapshots;
flatMap = messageSnapshots.flatMap;
arraySpread(items, Reflect.apply(flatMap, messageSnapshots, [_fun57917]), value8, undefined);
length = items.length;
if (length > 0) {
can = PermissionStore.can;
USE_EXTERNAL_STICKERS = Permissions.USE_EXTERNAL_STICKERS;
reducibleJoin30: while (true) {
if (Reflect.apply(can, PermissionStore, [USE_EXTERNAL_STICKERS, a2])) {
break reducibleJoin30;
}
some = items.some;
if (Reflect.apply(some, items, [_fun57918])) {
return {label: intl.string(t['0Yyrua'])};
}
break reducibleJoin30;
}
}
hasFlag = a0.hasFlag;
IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
if (!Reflect.apply(hasFlag, a0, [IS_VOICE_MESSAGE])) {
messageSnapshots = a0.messageSnapshots;
some = messageSnapshots.some;
reducibleJoin32: while (true) {
if (Reflect.apply(some, messageSnapshots, [_fun57919])) {
break reducibleJoin32;
}
break reducibleJoin34;
}
}
can = PermissionStore.can;
SEND_VOICE_MESSAGES = Permissions.SEND_VOICE_MESSAGES;
if (!Reflect.apply(can, PermissionStore, [SEND_VOICE_MESSAGES, a2])) {
return {label: intl.string(t.quj4DY)};
}
break reducibleJoin34;
}
break reducibleJoin34;
}
break reducibleJoin34;
}
}
}
function useSelectedDestinationNames(a0) { // fn#57920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:2479, offset: 0x016b9e40, size: 90 bytes, params: 2, frame: 17
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([UserStore, ChannelStore,
RelationshipStore], _fun57921, [a0]);
}
function useDestinationNamesWithSlowmode(a0) { // fn#57923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:2858, offset: 0x016b9f99, size: 141 bytes, params: 2, frame: 21
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([UserStore, RelationshipStore],
_fun57927, [(require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ChannelStore,
PermissionStore], _fun57924, [a0])]);
}
function _fun57913() { // fn#57913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:865, offset: 0x016b98eb, size: 83 bytes, params: 1, frame: 14
var r0;
var createChannelRecordBinding;
var object2;
var value;
if (env0_1 != null) {
r0 = env0_1;
} else {
value = environment.__proto__;
createChannelRecordBinding = createChannelRecord;
object2 = {id: '1'};
object2.type = (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes.DM;
value = createChannelRecordBinding(object2);
r0 = value;
}
return r0;
}
function _fun57916({message}) { // fn#57916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:1574, offset: 0x016b9d69, size: 27 bytes, params: 2, frame: 2
return message.embeds.length > 0;
}
function _fun57917({message}) { // fn#57917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:1888, offset: 0x016b9d84, size: 46 bytes, params: 2, frame: 12
const value = environment.__proto__;
return (require(4643) /* metro dependency 4643: StickersUtils */).getMessageStickers(message);
}
function _fun57918({id}) { // fn#57918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:1997, offset: 0x016b9db2, size: 108 bytes, params: 2, frame: 14
var r0;
let value = environment.__proto__;
const stickerById = StickersStore.getStickerById(id);
const value3 = stickerById != null;
if (value3) {
value = require(4643) /* metro dependency 4643: StickersUtils */;
value = !!value.isGuildSticker(stickerById);
r0 = value;
} else {
r0 = value3;
}
r0 = r0 && (stickerById.guild_id !== importDefault.guild_id || undefined);
return r0;
}
function _fun57919({message}) { // fn#57919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:2266, offset: 0x016b9e1e, size: 34 bytes, params: 2, frame: 11
const hasFlag = message.hasFlag;
const IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
return Reflect.apply(hasFlag, message, [IS_VOICE_MESSAGE]);
}
function _fun57921() { // fn#57921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:2568, offset: 0x016b9e9a, size: 67 bytes, params: 1, frame: 13
const value = env0_0.map(_fun57922);
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
}
function _fun57924() { // fn#57924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:2948, offset: 0x016ba026, size: 82 bytes, params: 1, frame: 14
var value;
value = Reflect.apply(env0_0.map(_fun57925).filter, value,
[(require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish]);
return value.filter(function(a0) {
return isRatelimitedInChannel(a0, PermissionStore);
});
}
function _fun57927() { // fn#57927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:3136, offset: 0x016ba0ba, size: 26 bytes, params: 1, frame: 11
return env0_1.map(function(a0) {
return require(dependencyMap[18]).computeChannelName(a0, UserStore, RelationshipStore, true);
});
}
function _fun57922({type, id}) { // fn#57922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:2579, offset: 0x016b9edd, size: 188 bytes, params: 2, frame: 19
var r0;
var r1;
var value;
var user;
var value5;
var value6;
if (type === 'user') {
value = environment.__proto__.__proto__;
user = UserStore.getUser(id);
value5 = null;
if (value5 != user) {
value6 = RelationshipStore.getNickname(user.id);
if (value5 != value6) {
r1 = value6;
} else {
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
value = value.getName(user);
r1 = value;
}
r0 = r1;
} else {
r0 = value5;
}
} else {
value = environment.__proto__.__proto__;
var channel = ChannelStore.getChannel(id);
r0 = channel != null ? (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel,
UserStore, RelationshipStore, true) : null;
}
return r0;
}
function _fun57925({type, id}) { // fn#57925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7409:2959, offset: 0x016ba078, size: 42 bytes, params: 2, frame: 12
var r0;
let value = null;
if (type !== 'channel') {
r0 = value;
} else {
value = environment.__proto__.__proto__;
value = ChannelStore.getChannel(id);
r0 = value;
}
return r0;
}
@@ -0,0 +1,82 @@
/* Metro module 16160; source: modules/forwarding/ForwardGuildBreadcrumbManager.tsx; dependencies: [7, 6, 15, 17, 18, 661, 16161, 15767, 4860, 2] */
function _fun124907(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16368:6, offset: 0x025c6fa8, size: 263 bytes, params: 8, frame: 19
const env0_0 = require;
const fetchForwardReferencedGuilds = function(a0) {
var r5;
var property = a0.message_reference;
var value = undefined;
if (property == null) {
r5 = value;
} else {
property = property.type;
r5 = property;
}
if (r5 === MessageReferenceTypes.FORWARD) {
property = a0.message_reference.guild_id;
if (property != null) {
require(dependencyMap[6]).fetchBasicGuild(property);
}
}
return value;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const env0_8 = (require(661) /* metro dependency 661: Constants */).MessageReferenceTypes;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
value = _fun124912(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/ForwardGuildBreadcrumbManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_124908() { // fn#124908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16368:180, offset: 0x025c70af, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_124908_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun124912(a0) { // fn#124912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16368:564, offset: 0x025c716d, size: 42 bytes, params: 2, frame: 14
const closure = ForwardGuildBreadcrumbManager;
env0_7(closure, a0);
return env0_3(closure);
}
function ForwardGuildBreadcrumbManager() { // fn#124913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16368:576, offset: 0x025c7197, size: 138 bytes, params: 1, frame: 20
env1_4(this, ForwardGuildBreadcrumbManager);
const value3 = env1_6(ForwardGuildBreadcrumbManager);
const value6 = env1_5(this, _isNativeReflectConstruct_124908() ? global.Reflect.construct(value3, [],
env1_6(this).constructor) : value3.apply(this, undefined));
(importDefault(15767) /* metro dependency 15767: setupLoadFromMessageManagerHandlers */)(value6,
fetchForwardReferencedGuilds);
return value6;
}
@@ -0,0 +1,57 @@
/* Metro module 9777; source: modules/forwarding/ForwardPreviewUtils.tsx; dependencies: [3784, 566, 4641, 2] */
function _fun76707(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9963:6, offset: 0x01de1895, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/ForwardPreviewUtils.tsx');
exports.useForwardPreviewContent = useForwardPreviewContent;
}
function useForwardPreviewContent({message, channel, forwardOptions}) { // fn#76708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9963:215, offset: 0x01de1907, size: 470 bytes, params: 2, frame: 22
const value = undefined;
const onlyAttachmentIds = forwardOptions == null ? value : forwardOptions.onlyAttachmentIds;
const onlyEmbedIndices = forwardOptions == null ? value : forwardOptions.onlyEmbedIndices;
const property = message.messageSnapshots[0];
var message = property == null ? value : property.message;
const r10 = message ?? message;
const r6 = onlyAttachmentIds != null ? r10.attachments.filter(function(a0) {
return onlyAttachmentIds.includes(a0.id);
}) : onlyEmbedIndices == null ? r10.attachments : [];
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
const r2 = Reflect.apply(useStateFromStores, fluxModule, [[PermissionStore],
_fun76710]) ? [] : onlyEmbedIndices != null ? r10.embeds.filter(function(a0, a1) {
return onlyEmbedIndices.includes(a1);
}) : onlyAttachmentIds == null ? r10.embeds : [];
const r9 = onlyEmbedIndices != null || r10.content === '' && r2.length > 0 ? r10.set('content',
r2.map(function(a0) {
return a0.url;
}).join('\n')) : r10;
const r1 = r9.content === '' && (r9.embeds[0] == null ? value : r9.embeds[0].rawDescription) != null ? r9.set('content',
r9.embeds[0].rawDescription) : r9;
return {attachments: r6, embeds: r2, hasContent: r1.content !== '' && onlyAttachmentIds == null, contentMessage: r1};
}
function _fun76710() { // fn#76710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9963:571, offset: 0x01de1af8, size: 109 bytes, params: 1, frame: 15
var r0;
var value3;
var moduleValue;
var value5;
var moduleValue2;
const value2 = channel != null;
if (value2) {
value3 = environment.__proto__;
moduleValue = require(4641) /* metro dependency 4641: EmbedUtils */;
r0 = !moduleValue.canEmbedLinks(channel, PermissionStore);
} else {
r0 = value2;
}
if (r0) {
value5 = environment.__proto__;
moduleValue2 = require(4641) /* metro dependency 4641: EmbedUtils */;
r0 = moduleValue2.shouldStripEmbeds(message);
}
return r0;
}
@@ -0,0 +1,101 @@
/* Metro module 9592; source: modules/forwarding/ForwardingAnalyticsUtils.tsx; dependencies: [31, 1379, 661, 683, 4863, 22, 2] */
function _fun75155(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9778:6, offset: 0x01da4282, size: 237 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/ForwardingAnalyticsUtils.tsx');
exports.trackForwardStart = function(a0, a1, a2) {
var defaultImport = importDefault(dependencyMap[3]);
var FORWARD_MESSAGE_STARTED = AnalyticEvents.FORWARD_MESSAGE_STARTED;
defaultImport.track(FORWARD_MESSAGE_STARTED, {channel_id: a0, message_id: a1, source: a2});
};
exports.trackForwardCancel = function({channelId, messageId, numDestinationChanges, numQueryChanges}) {
var defaultImport = importDefault(dependencyMap[3]);
var FORWARD_MESSAGE_CANCELLED = AnalyticEvents.FORWARD_MESSAGE_CANCELLED;
defaultImport.track(FORWARD_MESSAGE_CANCELLED, {channel_id: channelId, message_id: messageId,
num_destination_changes: numDestinationChanges, num_query_changes: numQueryChanges});
};
exports.trackForwardSent = trackForwardSent;
exports.trackForwardCopyLink = function(a0, a1) {
var defaultImport = importDefault(dependencyMap[3]);
var FORWARD_COPY_LINK = AnalyticEvents.FORWARD_COPY_LINK;
defaultImport.track(FORWARD_COPY_LINK, {channel_id: a0, message_id: a1});
};
exports.useTrackForwardAddRecipientOnce = useTrackForwardAddRecipientOnce;
exports.useTrackForwardEditSearchOnce = useTrackForwardEditSearchOnce;
exports.useTrackForwardEditContextMessageOnce = useTrackForwardEditContextMessageOnce;
}
function trackForwardSent({channelId, messageId, hasError, hasContextMessage, numDestinations, numDestinationChanges, numQueryChanges, anyDestinationHasSlowmode, source}) { // fn#75158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9778:610, offset: 0x01da4415, size: 318 bytes, params: 2, frame: 26
var channel;
var defaultImport2;
var MESSAGE_SHORTCUT_ACTION_SENT;
var moduleValue;
var value;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
let track = defaultImport.track;
const FORWARD_MESSAGE_SENT = AnalyticEvents.FORWARD_MESSAGE_SENT;
let object2 = {channel_id: channelId, message_id: messageId, has_error: hasError,
has_context_message: hasContextMessage, num_destinations: numDestinations,
num_destination_changes: numDestinationChanges, num_query_changes: numQueryChanges,
any_destination_has_slowmode: anyDestinationHasSlowmode};
Reflect.apply(track, defaultImport, [FORWARD_MESSAGE_SENT, object2]);
if (source === 'message-shortcut') {
channel = ChannelStore.getChannel(channelId);
defaultImport2 = defaultImport;
track = defaultImport2.track;
MESSAGE_SHORTCUT_ACTION_SENT = AnalyticEvents.MESSAGE_SHORTCUT_ACTION_SENT;
object2 = {action: 'forward', original_message_id: messageId};
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
copyDataProperties(object2, moduleValue.collectGuildAnalyticsMetadata(channel?.guild_id), undefined);
value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
copyDataProperties(object2, value.collectChannelAnalyticsMetadata(channel), undefined);
Reflect.apply(track, defaultImport2, [MESSAGE_SHORTCUT_ACTION_SENT, object2]);
}
}
function useTrackForwardAddRecipientOnce() { // fn#75160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9778:1395, offset: 0x01da4594, size: 33 bytes, params: 1, frame: 13
return env0_3.useMemo(_fun75161, []);
}
function useTrackForwardEditSearchOnce() { // fn#75163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9778:1604, offset: 0x01da462f, size: 33 bytes, params: 1, frame: 13
return env0_3.useMemo(_fun75164, []);
}
function useTrackForwardEditContextMessageOnce() { // fn#75166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9778:1803, offset: 0x01da46c0, size: 33 bytes, params: 1, frame: 13
return env0_3.useMemo(_fun75167, []);
}
function _fun75161() { // fn#75161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9778:1456, offset: 0x01da45b5, size: 47 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
return (require(22) /* metro dependency 22 */).once(function(a0, a1, a2) {
var defaultImport = importDefault(dependencyMap[3]);
var FORWARD_ADD_RECIPIENT = AnalyticEvents.FORWARD_ADD_RECIPIENT;
defaultImport.track(FORWARD_ADD_RECIPIENT, {channel_id: a0, message_id: a1, has_query: a2});
});
}
function _fun75164() { // fn#75164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9778:1663, offset: 0x01da4650, size: 47 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
return (require(22) /* metro dependency 22 */).once(function(a0, a1) {
var defaultImport = importDefault(dependencyMap[3]);
var FORWARD_EDIT_SEARCH = AnalyticEvents.FORWARD_EDIT_SEARCH;
defaultImport.track(FORWARD_EDIT_SEARCH, {channel_id: a0, message_id: a1});
});
}
function _fun75167() { // fn#75167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9778:1870, offset: 0x01da46e1, size: 47 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
return (require(22) /* metro dependency 22 */).once(function(a0, a1) {
var defaultImport = importDefault(dependencyMap[3]);
var FORWARD_EDIT_CONTEXT_MESSAGE = AnalyticEvents.FORWARD_EDIT_CONTEXT_MESSAGE;
defaultImport.track(FORWARD_EDIT_CONTEXT_MESSAGE, {channel_id: a0, message_id: a1});
});
}
@@ -0,0 +1,168 @@
/* Metro module 9797; source: modules/forwarding/canForwardMessage.tsx; dependencies: [1936, 1379, 1867, 3784, 661, 1391, 566, 2] */
function _fun76785(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9983:6, offset: 0x01de4afc, size: 369 bytes, params: 8, frame: 20
let env0_0 = require;
const closure = canForwardMessage;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const gatedChannelStore = importDefault(1936) /* metro dependency 1936: GatedChannelStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
let value = require(661) /* metro dependency 661: Constants */;
const env0_6 = value.GuildFeatures;
const MessageFlags = value.MessageFlags;
const env0_7 = value.MessageStates;
const env0_8 = value.MessageTypesSets;
const env0_9 = value.Permissions;
const CROSSPOSTED = MessageFlags.CROSSPOSTED;
const FAILED_TO_MENTION_SOME_ROLES_IN_THREAD = MessageFlags.FAILED_TO_MENTION_SOME_ROLES_IN_THREAD;
value = CROSSPOSTED | FAILED_TO_MENTION_SOME_ROLES_IN_THREAD;
const GUILD_FEED_HIDDEN = MessageFlags.GUILD_FEED_HIDDEN;
value |= GUILD_FEED_HIDDEN;
const HAS_SNAPSHOT = MessageFlags.HAS_SNAPSHOT;
value |= HAS_SNAPSHOT;
const HAS_THREAD = MessageFlags.HAS_THREAD;
value |= HAS_THREAD;
const IS_CROSSPOST = MessageFlags.IS_CROSSPOST;
value |= IS_CROSSPOST;
const IS_VOICE_MESSAGE = MessageFlags.IS_VOICE_MESSAGE;
value |= IS_VOICE_MESSAGE;
const SHOULD_SHOW_LINK_NOT_DISCORD_WARNING = MessageFlags.SHOULD_SHOW_LINK_NOT_DISCORD_WARNING;
value |= SHOULD_SHOW_LINK_NOT_DISCORD_WARNING;
const SUPPRESS_EMBEDS = MessageFlags.SUPPRESS_EMBEDS;
value |= SUPPRESS_EMBEDS;
const SUPPRESS_NOTIFICATIONS = MessageFlags.SUPPRESS_NOTIFICATIONS;
value |= SUPPRESS_NOTIFICATIONS;
const URGENT = MessageFlags.URGENT;
value |= URGENT;
const IS_COMPONENTS_V2 = MessageFlags.IS_COMPONENTS_V2;
value |= IS_COMPONENTS_V2;
const IS_GUILD_OFFICIAL = MessageFlags.IS_GUILD_OFFICIAL;
const env0_10 = value | IS_GUILD_OFFICIAL;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/canForwardMessage.tsx');
exports.canForwardMessage = closure;
exports.useCanForwardMessage = function(a0) {
var env0_0 = a0;
return require(dependencyMap[6]).useStateFromStores([PermissionStore, GatedChannelStore, ChannelStore,
GuildStore],
_fun76788);
};
}
function canForwardMessage(a0) { // fn#76786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9983:505, offset: 0x01de4c6d, size: 452 bytes, params: 2, frame: 22
var r0;
var guild_id;
var r1;
var r3;
var moduleValue;
var value15;
var value16;
var value17;
var guild;
let value = a1;
const value2 = a2;
const value3 = a3;
const value4 = a4;
const value5 = undefined;
const r7 = value !== value5 ? value : PermissionStore;
const r8 = value2 !== value5 ? value2 : GatedChannelStore;
const r5 = value3 !== value5 ? value3 : ChannelStore;
const r9 = value4 !== value5 ? value4 : GuildStore;
if (a0 != null) {
var state = a0.state;
var SEND_FAILED = MessageStates.SEND_FAILED;
r0 = state !== SEND_FAILED && !!MessageTypesSets.FORWARDABLE.has(a0.type);
r0 = r0 && a0.poll == null;
r0 = r0 && a0.sharedClientTheme == null;
r0 = r0 && a0.activity == null;
r0 = r0 && a0.call == null;
r0 = r0 && a0.activityInstance == null;
if (r0) {
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
r0 = moduleValue.removeFlag(a0.flags, env0_10) === 0;
}
if (r0) {
value15 = r5.getChannel(a0.channel_id);
value16 = r7.can(Permissions.READ_MESSAGE_HISTORY, value15);
if (value15 == null) {
guild_id = value15 == null ? value5 : value15.guild_id;
value17 = guild_id == null;
if (value17) {
r0 = value17;
} else {
guild = r9.getGuild(guild_id);
r0 = !(guild == null ? value5 : guild.features.has(GuildFeatures.FORWARDING_DISABLED));
}
if (r0) {
value = guild_id == null;
r1 = value || !r8.isChannelOrThreadParentGated(guild_id, a0.channel_id);
if (r1) {
r3 = value15 == null ? value5 : value15.isModeratorReportChannel();
value = r3 != null;
value = !(value && r3);
r1 = value;
}
r0 = r1;
}
return r0;
}
if (value16) {
guild_id = value15 == null ? value5 : value15.guild_id;
value17 = guild_id == null;
if (value17) {
r0 = value17;
} else {
guild = r9.getGuild(guild_id);
r0 = !(guild == null ? value5 : guild.features.has(GuildFeatures.FORWARDING_DISABLED));
}
if (r0) {
value = guild_id == null;
r1 = value || !r8.isChannelOrThreadParentGated(guild_id, a0.channel_id);
if (r1) {
r3 = value15 == null ? value5 : value15.isModeratorReportChannel();
value = r3 != null;
value = !(value && r3);
r1 = value;
}
r0 = r1;
}
return r0;
}
if (value15.isPrivate()) {
guild_id = value15 == null ? value5 : value15.guild_id;
value17 = guild_id == null;
if (value17) {
r0 = value17;
} else {
guild = r9.getGuild(guild_id);
r0 = !(guild == null ? value5 : guild.features.has(GuildFeatures.FORWARDING_DISABLED));
}
if (r0) {
value = guild_id == null;
r1 = value || !r8.isChannelOrThreadParentGated(guild_id, a0.channel_id);
if (r1) {
r3 = value15 == null ? value5 : value15.isModeratorReportChannel();
value = r3 != null;
value = !(value && r3);
r1 = value;
}
r0 = r1;
}
return r0;
}
return false;
}
}
return false;
}
function useCanForwardMessage(a0) { // fn#76787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9983:1307, offset: 0x01de4e31, size: 90 bytes, params: 2, frame: 15
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore, GatedChannelStore,
ChannelStore, GuildStore], _fun76788);
}
function _fun76788() { // fn#76788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9983:1385, offset: 0x01de4e8b, size: 38 bytes, params: 1, frame: 19
return canForwardMessage(env0_0, PermissionStore, GatedChannelStore, ChannelStore, GuildStore);
}
@@ -0,0 +1,142 @@
/* Metro module 8199; source: modules/forwarding/formatMessageForwards.tsx; dependencies: [6, 7, 8200, 1379, 1867, 3784, 3793, 1878, 1423, 1244, 3826, 4805, 4845, 2] */
function _fun65712(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8384:6, offset: 0x01bdb1a9, size: 275 bytes, params: 8, frame: 19
const env0_0 = require;
const createChannelBreadcrumb = function(a0, a1) {
var object = {originLabel: a0, timestampLabel: a1};
object.accessibilityLabel = require(dependencyMap[9]).intl.formatToPlainString(require(dependencyMap[9]).t['+l04BN'],
{origin: a0, timestamp: a1});
return object;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const basicGuildStore = importDefault(8200) /* metro dependency 8200: BasicGuildStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const value = _fun65715();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/formatMessageForwards.tsx');
exports.MessageForward = value;
exports.maybeCreateSingleForwardForMessage = maybeCreateSingleForwardForMessage;
}
function createGuildBreadcrumb(a0, a1) { // fn#65713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8384:176, offset: 0x01bdb2bc, size: 175 bytes, params: 3, frame: 19
const object2 = {};
object2.originLabel = a0.name;
object2.originIconUrl = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: a0.id,
size: 16, icon: a0.icon, canAnimate: false});
object2.timestampLabel = a1;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.accessibilityLabel = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['+l04BN'],
{origin: a0.name, timestamp: a1});
return object2;
}
function _fun65715() { // fn#65715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8384:619, offset: 0x01bdb3cc, size: 61 bytes, params: 1, frame: 14
return env0_4(MessageForward, [{key: 'getForwardInfo', value: value_65717}]);
}
function maybeCreateSingleForwardForMessage(a0) { // fn#65718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8384:1788, offset: 0x01bdb631, size: 90 bytes, params: 2, frame: 16
var property;
var binding;
var binding2;
var value;
if ((importDefault(4845) /* metro dependency 4845: isForwardMessage */)(a0)) {
property = a0.messageSnapshots[0];
if (property != null) {
binding = env0_11;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding2 = new binding(a0, property, 0);
return binding2 instanceof Object ? binding2 : value;
}
}
}
function MessageForward(a0, a1, a2) { // fn#65716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8384:640, offset: 0x01bdb409, size: 54 bytes, params: 4, frame: 13
env1_3(this, MessageForward);
this.parentMessage = a0;
this.messageSnapshot = a1;
this.snapshotIndex = a2;
}
function value_65717() { // fn#65717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8384:790, offset: 0x01bdb43f, size: 498 bytes, params: 1, frame: 28
var r8;
var r6;
var r0;
var messageReference;
var object2;
var value12;
var createChannelBreadcrumbBinding;
var value13;
let value = a0;
const value2 = a1;
const value3 = a2;
const value4 = a3;
const value5 = a4;
const value6 = a5;
const value7 = undefined;
const r10 = value !== value7 ? value : ChannelStore;
const r15 = value2 !== value7 ? value2 : UserStore;
const r14 = value3 !== value7 ? value3 : RelationshipStore;
const r9 = value4 !== value7 ? value4 : PermissionStore;
const r7 = value5 !== value7 ? value5 : GuildStore;
const r13 = value6 !== value7 ? value6 : BasicGuildStore;
const snapshotIndex = this.snapshotIndex;
const parentMessage = this.parentMessage;
const messageSnapshot = this.messageSnapshot;
value = environment.__proto__;
const dateUtilsModule = require(3826) /* metro dependency 3826: DateUtils */;
const value8 = dateUtilsModule.calendarFormatCompact(messageSnapshot.message.timestamp);
let getChannel = r10.getChannel;
const value9 = Reflect.apply(getChannel, r10, [this.parentMessage.channel_id]);
if (value9 != null) {
var guild_id2 = value9.guild_id;
messageReference = parentMessage.messageReference;
if (guild_id2 === (messageReference == null ? value7 : messageReference.guild_id)) {
getChannel = r10.getChannel;
messageReference = parentMessage.messageReference;
value12 = Reflect.apply(getChannel, r10, [messageReference == null ? value7 : messageReference.channel_id]);
if (value12 == null) {
value13 = r7.getGuild(value9.guild_id);
if (value13 == null) {
r0 = {snapshotIndex: snapshotIndex};
} else {
object2 = {snapshotIndex: snapshotIndex};
object2.footerInfo = createGuildBreadcrumb(value13, value8);
r0 = object2;
}
return r0;
}
if (r9.can(value12.accessPermissions, value12)) {
object2 = {snapshotIndex: snapshotIndex};
createChannelBreadcrumbBinding = createChannelBreadcrumb;
value = require(4805) /* metro dependency 4805: useChannelName */;
object2.footerInfo = createChannelBreadcrumbBinding(value.computeChannelName(value12, r15, r14, true),
value8);
r6 = object2;
} else {
r6 = {snapshotIndex: snapshotIndex};
}
return r6;
}
}
messageReference = parentMessage.messageReference;
const guild_id = messageReference == null ? value7 : messageReference.guild_id;
if (guild_id == null) {
return {snapshotIndex: snapshotIndex};
}
const r12 = r7.getGuild(guild_id) ?? r13.getGuild(guild_id);
if (r12 == null) {
r8 = {snapshotIndex: snapshotIndex};
} else {
object2 = {snapshotIndex: snapshotIndex};
object2.footerInfo = createGuildBreadcrumb(r12, value8);
r8 = object2;
}
return r8;
}
@@ -0,0 +1,48 @@
/* Metro module 11505; source: modules/forwarding/getInlineForwardOptions.tsx; dependencies: [661, 4631, 2] */
function _fun88107(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11691:6, offset: 0x01fd55c9, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).MessageReferenceTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/getInlineForwardOptions.tsx');
exports.getInlineForwardOptions = getInlineForwardOptions;
}
function getInlineForwardOptions(a0, {targetKind, embedIndex}) { // fn#88108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11691:234, offset: 0x01fd563e, size: 207 bytes, params: 3, frame: 15
var r1;
var r3;
var messageReference;
var value2;
let value = a0;
if (targetKind === 'media') {
messageReference = value.messageReference;
value2 = undefined;
r3 = (messageReference == null ? value2 : messageReference.type) !== MessageReferenceTypes.FORWARD ? value : value.messageSnapshots[0] == null ? value2 : value.messageSnapshots[0].message;
if (r3 == null) {
r1 = value2;
} else {
value = r3.attachments.filter(_fun88109);
value = value.map(function(a0) {
return a0.id;
});
r1 = value;
}
return {onlyAttachmentIds: r1};
}
return targetKind !== 'embed' ? targetKind !== 'shortcut' ? undefined : {} : embedIndex != null ? {onlyEmbedIndices: [embedIndex]} : targetKind !== 'shortcut' ? undefined : {};
}
function _fun88109({filename}) { // fn#88109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11691:505, offset: 0x01fd570d, size: 78 bytes, params: 2, frame: 14
var r0;
let value = environment.__proto__;
const isImageFile2 = (require(4631) /* metro dependency 4631: MediaFormatTesters */).isImageFile(filename);
if (isImageFile2) {
r0 = isImageFile2;
} else {
value = require(4631) /* metro dependency 4631: MediaFormatTesters */;
value = value.isVideoFile(filename);
r0 = value;
}
return r0;
}
@@ -0,0 +1,302 @@
/* Metro module 11504; source: modules/forwarding/handleForwardBreadcrumb.tsx; dependencies: [5, 1379, 1867, 661, 6946, 6593, 683, 6837, 2] */
function _fun88102(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11690:6, offset: 0x01fd52df, size: 203 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_6 = constantsModule.AnalyticEvents;
const env0_7 = constantsModule.AnalyticsObjects;
const env0_8 = constantsModule.Routes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/handleForwardBreadcrumb.tsx');
exports.default = function() {
return _handleForwardBreadcrumb.apply(this, arguments);
};
}
function _handleForwardBreadcrumb() { // fn#88103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11690:187, offset: 0x01fd53aa, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun88105).apply(this, arguments);
}
function* _fun88105(a0) { // fn#88105, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11690:258, offset: 0x01fd53e7, size: 482 bytes, params: 2, frame: 27
var r4;
var guild_id;
var r5;
var guild_id2;
var channel_id;
var message_id;
var value3;
var binding;
var getChannel;
var value4;
var value5;
var getGuild;
var binding2;
var property;
var value6;
var startLurking;
var object3;
var FORWARD_BREADCRUMB;
var object4;
var value7;
var value8;
var value9;
var value10;
var binding3;
var value11;
var waitForGuild;
var value12;
var value13;
var value14;
var error;
var value15;
var track;
var FORWARD_BREADCRUMB_CLICKED;
var getBasicChannel;
var channel_id2;
var value16;
var channel_id3;
var id;
var value17;
var CHANNEL;
var value18;
if (false) {
return undefined;
}
value = undefined;
let messageReference = a0.messageReference;
if (messageReference != null) {
reducibleJoin42: while (true) {
reduciblePort41: while (true) {
exceptionLanding40: while (true) {
messageReference = a0.messageReference;
guild_id2 = messageReference.guild_id;
messageReference = a0.messageReference;
channel_id = messageReference.channel_id;
messageReference = a0.messageReference;
message_id = messageReference.message_id;
value3 = environment.__proto__.__proto__;
binding = env2_4;
getChannel = binding.getChannel;
value4 = Reflect.apply(getChannel, binding, [channel_id]);
value5 = false;
if (value4 != null) {
r4 = value5;
break reduciblePort41;
}
if (guild_id2 == null) {
r4 = value5;
break reduciblePort41;
}
binding = env2_5;
getGuild = binding.getGuild;
if (Reflect.apply(getGuild, binding, [guild_id2]) != null) {
r4 = value5;
break reduciblePort41;
}
try {
binding = env2_0;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
binding2 = env2_2;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
property = binding2[4];
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
value6 = binding(property);
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
startLurking = value6.startLurking;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
object3 = {};
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
binding = env2_7;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
FORWARD_BREADCRUMB = binding.FORWARD_BREADCRUMB;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
object3.object = FORWARD_BREADCRUMB;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
object4 = {};
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
object4.shouldNavigate = value5;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
try {
value7 = Reflect.apply(startLurking, value6, [guild_id2, object3, object4]);
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
yield value7;
try {
value8 = undefined;
value9 = false;
} catch (error) {
r4 = value5;
break exceptionLanding40;
}
if (value9) {
return value8;
}
value10 = true;
try {
binding = env2_0;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
binding3 = env2_2;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
property = binding3[5];
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
value11 = binding(property);
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
waitForGuild = value11.waitForGuild;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
value12 = Reflect.apply(waitForGuild, value11, [guild_id2]);
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
yield value12;
try {
value13 = undefined;
value14 = false;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
if (value14) {
return value13;
}
try {
binding = env2_4;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
getChannel = binding.getChannel;
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
try {
Reflect.apply(getChannel, binding, [channel_id]);
} catch (error) {
r4 = value10;
break exceptionLanding40;
}
r4 = value10;
break reduciblePort41;
}
break reduciblePort41;
}
binding = env2_1;
value15 = binding(env2_2[6]);
track = value15.track;
FORWARD_BREADCRUMB_CLICKED = env2_6.FORWARD_BREADCRUMB_CLICKED;
binding = env2_4;
getBasicChannel = binding.getBasicChannel;
channel_id2 = a0.channel_id;
value16 = Reflect.apply(getBasicChannel, binding, [channel_id2]);
reducibleJoin43: while (true) {
if (value16 == null) {
guild_id = value;
break reducibleJoin43;
}
break reducibleJoin42;
}
channel_id3 = a0.channel_id;
id = a0.id;
Reflect.apply(track, value15, [FORWARD_BREADCRUMB_CLICKED, {guild_id: guild_id, channel_id: channel_id3,
message_id: id, breadcrumb_guild_id: guild_id2, breadcrumb_channel_id: channel_id,
breadcrumb_message_id: message_id, did_lurk: r4}]);
r5 = r4 ? channel_id : value;
binding = env2_1;
value17 = binding(env2_2[7]);
binding = env2_8;
CHANNEL = binding.CHANNEL;
value18 = Reflect.apply(CHANNEL, binding, [guild_id2, channel_id, message_id]);
value17(value18, {navigationReplace: value5, welcomeModalChannelId: r5});
return value;
}
guild_id = value16.guild_id;
object3.guild_id = guild_id;
channel_id3 = a0.channel_id;
object3.channel_id = channel_id3;
id = a0.id;
object3.message_id = id;
object3.breadcrumb_guild_id = guild_id2;
object3.breadcrumb_channel_id = channel_id;
object3.breadcrumb_message_id = message_id;
object3.did_lurk = r4;
Reflect.apply(track, value15, [FORWARD_BREADCRUMB_CLICKED, object3]);
r5 = r4 ? channel_id : value;
binding = env2_1;
value17 = binding(env2_2[7]);
binding = env2_8;
value18 = binding.CHANNEL(guild_id2, channel_id, message_id);
value17(value18, {navigationReplace: value5, welcomeModalChannelId: r5});
}
return value;
}
@@ -0,0 +1,22 @@
/* Metro module 4845; source: modules/forwarding/isForwardMessage.tsx; dependencies: [661, 2] */
function _fun42408(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5023:6, offset: 0x011390cb, size: 118 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(661) /* metro dependency 661: Constants */).MessageReferenceTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/isForwardMessage.tsx');
exports.default = isForwardMessage;
exports.isForwardServerMessage = isForwardServerMessage;
}
function isForwardMessage({messageReference}) { // fn#42409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5023:211, offset: 0x01139141, size: 44 bytes, params: 2, frame: 3
const type = messageReference?.type;
const FORWARD = MessageReferenceTypes.FORWARD;
return type === FORWARD;
}
function isForwardServerMessage({message_reference}) { // fn#42410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5023:335, offset: 0x0113916d, size: 44 bytes, params: 2, frame: 3
const type = message_reference?.type;
const FORWARD = MessageReferenceTypes.FORWARD;
return type === FORWARD;
}
@@ -0,0 +1,61 @@
/* Metro module 9595; source: modules/forwarding/isStaffToNonStaffForward.tsx; dependencies: [1379, 1867, 1878, 661, 2] */
function _fun75195(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9781:6, offset: 0x01da5a70, size: 171 bytes, params: 8, frame: 19
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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/isStaffToNonStaffForward.tsx');
exports.default = isStaffToNonStaffForward;
}
function isStaffChannel(a0) { // fn#75196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9781:150, offset: 0x01da5b1b, size: 104 bytes, params: 2, frame: 13
if (a0.isPrivate()) {
return a0.recipients.every(_fun75197);
}
const guild = GuildStore.getGuild(a0.guild_id);
return guild != null && guild.features.has(GuildFeatures.INTERNAL_EMPLOYEE_ONLY);
}
function isStaffToNonStaffForward(a0, a1) { // fn#75198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9781:454, offset: 0x01da5bad, size: 116 bytes, params: 3, frame: 14
var r0;
var value3;
var value4;
var isStaffChannel2;
const currentUser = UserStore.getCurrentUser();
if (currentUser != null) {
if (currentUser.isStaff()) {
value3 = ChannelStore.getChannel(a0.channel_id);
value4 = value3 != null;
if (value4) {
isStaffChannel2 = isStaffChannel(value3);
r0 = isStaffChannel2 ? a1.some(_fun75199) : !!isStaffChannel2;
} else {
r0 = value4;
}
return r0;
}
}
return false;
}
function _fun75197(a0) { // fn#75197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9781:309, offset: 0x01da5b83, size: 42 bytes, params: 2, frame: 11
var r0;
let value = environment.__proto__;
const value2 = UserStore.getUser(a0) != null;
if (value2) {
value = value.isStaff();
r0 = value;
} else {
r0 = value2;
}
return r0;
}
function _fun75199(a0) { // fn#75199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9781:633, offset: 0x01da5c21, size: 64 bytes, params: 2, frame: 13
const value = environment.__proto__;
const channel = ChannelStore.getChannel(a0);
return channel != null && (!channel.isPrivate() && !isStaffChannel(channel));
}
@@ -0,0 +1,48 @@
/* Metro module 10013; source: modules/forwarding/maybeCreateMessageRecordFromSnapshot.tsx; dependencies: [4845, 2] */
function _fun78223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10199:6, offset: 0x01e21ae3, size: 99 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/maybeCreateMessageRecordFromSnapshot.tsx');
exports.default = maybeCreateMessageRecordFromSnapshot;
}
function maybeCreateMessageRecordFromSnapshot(a0, a1) { // fn#78224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10199:195, offset: 0x01e21b46, size: 250 bytes, params: 3, frame: 15
var r0;
var merge;
var object2;
var message;
let value = a0;
const r5 = a1 ?? ((importDefault(4845) /* metro dependency 4845: isForwardMessage */)(value) ? value.messageSnapshots[0] : undefined);
if (r5 == null) {
r0 = value;
} else {
merge = value.merge;
object2 = {};
message = r5.message;
object2.content = message.content;
message = r5.message;
object2.attachments = message.attachments;
message = r5.message;
object2.embeds = message.embeds;
message = r5.message;
object2.flags = message.flags;
message = r5.message;
object2.components = message.components;
object2.editedTimestamp = null;
message = r5.message;
object2.timestamp = message.timestamp;
message = r5.message;
object2.codedLinks = message.codedLinks;
object2.reactions = [];
object2.messageSnapshots = [];
message = r5.message;
object2.stickers = message.stickers;
message = r5.message;
object2.stickerItems = message.stickerItems;
object2.customRenderedContent = null;
value = Reflect.apply(merge, value, [object2]);
r0 = value;
}
return r0;
}
@@ -0,0 +1,32 @@
/* Metro module 9791; source: modules/forwarding/native/ForwardFailedAlertModal.tsx; dependencies: [31, 33, 9591, 9792, 1244, 2] */
function _fun76739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9977:6, offset: 0x01de324c, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardFailedAlertModal.tsx');
exports.default = ForwardFailedAlertModal;
}
function ForwardFailedAlertModal({message, failedDestinations, forwardOptions}) { // fn#76740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9977:217, offset: 0x01de32da, size: 240 bytes, params: 2, frame: 21
const value2 = env0_3.useCallback(_fun76741, [failedDestinations, message, forwardOptions]);
const DestinationFailedAlertModal = importDefault(9792) /* metro dependency 9792: DestinationFailedAlertModal */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<DestinationFailedAlertModal
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/OPIaM'])}
content={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.cn9vFb,
{count: failedDestinations.length})}
failedDestinations={failedDestinations}
onRetry={value2}
/>
);
}
function _fun76741() { // fn#76741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9977:322, offset: 0x01de33ca, size: 79 bytes, params: 1, frame: 14
const value = environment.__proto__;
(require(9591) /* metro dependency 9591: ForwardModalUtils */).openForwardModal({message: message,
source: 'retry-modal', initialSelectedDestinations: failedDestinations, forwardOptions: forwardOptions});
}
@@ -0,0 +1,90 @@
/* Metro module 9769; source: modules/forwarding/native/ForwardMessageFooter.tsx; dependencies: [57, 31, 4645, 33, 9592, 7231, 566, 7165, 9770, 1244, 9771, 9772, 4578, 9788, 2] */
function _fun76668(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:6, offset: 0x01ddf50b, size: 193 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const draftStore = importDefault(4645) /* metro dependency 4645: DraftStore */;
const env0_6 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardMessageFooter.tsx');
exports.ForwardMessageFooter = ForwardMessageFooter;
}
function ForwardMessageFooter({message, forwardOptions, sendLabel, canSend, selectedDestinations, isSending, onSend}) { // fn#76669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:268, offset: 0x01ddf5cc, size: 749 bytes, params: 2, frame: 36
var r5;
var intl;
var formatToPlainString;
var xJFpij;
const value3 = (require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).useTrackForwardEditContextMessageOnce();
const value4 = (require(7231) /* metro dependency 7231: ForwardDestinationUtils */).useSelectedDestinationChannel(selectedDestinations);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([DraftStore], function() {
return DraftStore.getDraft(message.channel_id, DraftType.ForwardContextMessage);
});
const binding = env0_4;
const [property, property2] = env0_3(binding.useState(value5), 2);
let useCallback = binding.useCallback;
const value8 = Reflect.apply(useCallback, binding, [_fun76671, [message, value3]]);
binding.useEffect(_fun76672, [property, message.channel_id]);
const {textInputRef, isInputFocused, handleSelectionChange, handleMessageFocus, handleMessageBlur,
handlePressEmoji} = (require(9770) /* metro dependency 9770: useShareChatInputActions */).useShareChatInputActions(property2,
value4);
useCallback = binding.useCallback;
object = [property];
object[1] = message.channel_id;
object[2] = onSend;
const value10 = Reflect.apply(useCallback, binding, [_fun76673, object]);
const value11 = (require(7231) /* metro dependency 7231: ForwardDestinationUtils */).useDestinationNamesWithSlowmode(selectedDestinations);
if (value11.length > 0) {
if (property.length > 0) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
xJFpij = (require(1244) /* metro dependency 1244: indexNative */).t.xJFpij;
object = {};
object.count = value11.length;
object.channelNames = value11.join(', ');
r5 = Reflect.apply(formatToPlainString, intl, [xJFpij, object]);
} else {
r5 = undefined;
}
} else {
r5 = undefined;
}
const ShareFooterLayout = importDefault(9771) /* metro dependency 9771: ShareFooterLayout */;
object = {};
const ForwardPreview = (require(9772) /* metro dependency 9772: ForwardPreview */).ForwardPreview;
object.preview = <ForwardPreview message={message} channel={value4} forwardOptions={forwardOptions} />;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
object.sendButton = <Button variant="primary" size="md" text={sendLabel} disabled={!canSend} onPress={isSending ? undefined : value10} loading={isSending} />;
object.chatInput = ((Component) => <Component inputRef={textInputRef} text={property} onChange={value8} onSelectionChange={handleSelectionChange} onFocus={handleMessageFocus} onBlur={handleMessageBlur} onPressEmoji={handlePressEmoji} onSend={value10} />)(importDefault(9788) /* metro dependency 9788: ShareChatInput */);
object.warningText = r5;
object.avoidKeyboard = isInputFocused;
return <ShareFooterLayout {...object} />;
}
function _fun76671(a0) { // fn#76671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:642, offset: 0x01ddf8e4, size: 43 bytes, params: 2, frame: 13
env0_4(a0);
const binding = env0_2;
const messageBinding = message;
binding(messageBinding.channel_id, messageBinding.id);
}
function _fun76672() { // fn#76672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:694, offset: 0x01ddf90f, size: 66 bytes, params: 1, frame: 16
const defaultImport = importDefault(7165) /* metro dependency 7165: DraftActionCreators */;
const saveDraft = defaultImport.saveDraft;
const channel_id = message.channel_id;
const binding = env0_3;
const ForwardContextMessage = DraftType.ForwardContextMessage;
Reflect.apply(saveDraft, defaultImport, [channel_id, binding, ForwardContextMessage]);
}
function _fun76673() { // fn#76673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9955:966, offset: 0x01ddf951, size: 74 bytes, params: 1, frame: 15
const defaultImport = importDefault(7165) /* metro dependency 7165: DraftActionCreators */;
const clearDraft = defaultImport.clearDraft;
const channel_id = message.channel_id;
const ForwardContextMessage = DraftType.ForwardContextMessage;
Reflect.apply(clearDraft, defaultImport, [channel_id, ForwardContextMessage]);
onSend(env0_3);
}
@@ -0,0 +1,641 @@
/* Metro module 9593; source: modules/forwarding/native/ForwardModal.tsx; dependencies: [5, 57, 31, 27, 9569, 1379, 4814, 9590, 9594, 7690, 33, 4501, 697, 1478, 7232, 566, 9592, 9591, 5286, 7231, 3857, 1244, 1360, 9595, 4497, 9596, 9597, 4601, 7229, 9600, 4800, 4081, 4082, 3856, 6797, 477, 5287, 9603, 5282, 5277, 4056, 7556, 7704, 9761, 9769, 9789, 2] */
function _fun75169(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:6, offset: 0x01da4751, size: 481 bytes, params: 8, frame: 22
var object3;
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 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
const messagePreviewStore = importDefault(9590) /* metro dependency 9590: MessagePreviewStore */;
const env0_11 = (require(9594) /* metro dependency 9594: ForwardConstants */).MAX_DESTINATION_COUNT;
const env0_12 = (require(7690) /* metro dependency 7690: UserRowConstants */).UserRowModes;
let value = require(33) /* metro dependency 33 */;
const env0_13 = value.jsx;
const env0_14 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.paddingVertical = PX_8;
let MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
object4.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND;
object3.headerContainer = object4;
object3.header = {'borderBottomWidth': 0, 'shadowColor': 'transparent', 'backgroundColor': 'transparent'};
MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
object3.container = {'flex': 1, 'display': 'flex', backgroundColor: MOBILE_ACTIONSHEET_BACKGROUND};
const env0_15 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardModal.tsx');
exports.default = ForwardModal;
}
function ForwardModal({message, forwardOptions, initialSelectedDestinations = [], source, customSendHandler}) { // fn#75170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:714, offset: 0x01da4932, size: 1827 bytes, params: 2, frame: 46
var r8;
var r21;
var r9;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var moduleValue8;
var ModalFloatingAction;
const styles = useStyles();
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}).height;
const env0_4 = height;
const channel_id = message.channel_id;
const env0_5 = channel_id;
const id2 = message.id;
let binding = env0_5;
const value3 = binding.useMemo(_fun75171, [channel_id]);
let useState = binding.useState;
const value5 = env0_4(Reflect.apply(useState, binding, [false]), 2);
const property = value5[0];
const env0_7 = value5[1];
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageStore, ICYMIStore,
MessagePreviewStore], _fun75172, [channel_id, id2, source, message]);
const value8 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channel_id);
}, [channel_id]);
const env0_10 = value7?.id != null;
const value9 = (require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).useTrackForwardAddRecipientOnce();
const value10 = (require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).useTrackForwardEditSearchOnce();
binding = env0_5;
const env0_13 = binding.useRef(0);
const env0_14 = binding.useRef(0);
const value11 = binding.useState('');
const binding2 = env0_4;
const value12 = binding2(value11, 2);
const property2 = value12[0];
const env0_16 = value12[1];
const env0_17 = binding.useRef('');
const value13 = binding.useCallback(_fun75174, [channel_id, id2, value10]);
useState = binding.useState;
const value14 = binding2(Reflect.apply(useState, binding, [initialSelectedDestinations]), 2);
const property3 = value14[0];
const env0_19 = value14[1];
const length = property3.length;
const value15 = length >= MAX_DESTINATION_COUNT;
binding.useEffect(_fun75175, [property3, channel_id, id2, property2, value9]);
const value16 = binding.useCallback(_fun75176, []);
const value17 = binding.useCallback(_fun75177, [channel_id, id2]);
(require(5286) /* metro dependency 5286: useNavigatorBackPressHandlerNative */).useNavigatorBackPressHandler(_fun75178);
const value18 = binding.useCallback(_fun75179, [value7, value8]);
const value20 = binding.useCallback(_fun75180(), [channel_id, forwardOptions, id2, value7, property3, source,
customSendHandler]);
const value21 = binding.useCallback(_fun75189, [value20]);
const env0_22 = binding.useCallback(_fun75190, [channel_id, id2]);
const value22 = binding.useMemo(_fun75191, [height]);
const r18 = length <= 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
{count: length});
const Header = (require(5287) /* metro dependency 5287 */).Header;
const headerProps2 = {headerStyle: styles.header,
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+SkRRj']),
headerTitle: headerTitle_75192, headerTitleAlign: 'center',
headerLeft: (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value17),
headerRight: headerRight_75193};
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isIOS()) {
moduleValue8 = require(7556) /* metro dependency 7556: useIsWindowLarge */;
r8 = moduleValue8.getIsWindowLarge() ? undefined : 0;
} else {
r8 = undefined;
}
headerProps2.headerStatusBarHeight = r8;
const view = <View style={styles.headerContainer}><Header {...headerProps2} /></View>;
const viewBinding2Props = {style: styles.container};
const items4 = [((Component) => <Component absolute />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */)];
const SearchableDestinationList = importDefault(9761) /* metro dependency 9761: SearchableDestinationList */;
const TOGGLE = UserRowModes.TOGGLE;
items4[1] = <SearchableDestinationList rowMode={TOGGLE} initialSelectedDestinations={initialSelectedDestinations} onSelectedDestinationChange={value16} onSearchTextChange={value13} getRowIsUnavailable={value18} originDestination={value3} insetEnd={0} disableGradient disableStickySections disableSelection={value15} />;
if (value7 != null) {
const ForwardMessageFooter = (require(9769) /* metro dependency 9769: ForwardMessageFooter */).ForwardMessageFooter;
r9 = <ForwardMessageFooter message={value7} forwardOptions={forwardOptions} sendLabel={r18} canSend={length > 0} selectedDestinations={property3} isSending={property} onSend={value20} />;
} else {
ModalFloatingAction = (require(9789) /* metro dependency 9789: ModalFloatingActionNative */).ModalFloatingAction;
var modalFloatingActionProps = {isVisible: length > 0,
floatingBackgroundColor: styles.container.backgroundColor};
r21 = length === 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
{count: length});
modalFloatingActionProps.text = r21;
r21 = property ? undefined : value21;
modalFloatingActionProps.onPress = r21;
modalFloatingActionProps.loading = property;
r9 = <ModalFloatingAction {...modalFloatingActionProps} />;
}
items4[2] = r9;
return (
<View style={value22}>
{view}
<View {...viewBinding2Props}>
{items4}
</View>
</View>
);
}
function _fun75171() { // fn#75171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:912, offset: 0x01da5055, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(7232) /* metro dependency 7232: formatResults */).getDestinationIdFromChannelId(channel_id);
}
function _fun75172() { // fn#75172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1043, offset: 0x01da5082, size: 98 bytes, params: 1, frame: 16
var r0;
var value2;
if (source === 'checkpoint') {
r0 = message;
} else {
value2 = environment.__proto__;
r0 = MessageStore.getMessage(channel_id, id) ?? MessagePreviewStore.getMessage(id);
r0 = r0 ?? ICYMIStore.getMessage(id);
}
return r0;
}
function _fun75174(a0) { // fn#75174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1447, offset: 0x01da50fe, size: 90 bytes, params: 2, frame: 15
var binding;
env0_16(a0);
if (a0 !== env0_17.current) {
binding = env0_14;
binding.current = binding.current + 1;
if (a0 !== '') {
env0_12(channel_id, id);
}
}
env0_17.current = a0;
}
function _fun75175() { // fn#75175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1594, offset: 0x01da5158, size: 55 bytes, params: 1, frame: 16
if (env0_18.length > 0) {
env0_11(channel_id, id, env0_15 !== '');
}
}
function _fun75176(a0) { // fn#75176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1661, offset: 0x01da518f, size: 41 bytes, params: 2, frame: 12
env0_19(a0);
const binding = env0_13;
binding.current = binding.current + 1;
}
function _fun75177() { // fn#75177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1707, offset: 0x01da51b8, size: 109 bytes, params: 1, frame: 16
const value = environment.__proto__;
(require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).trackForwardCancel({channelId: channel_id,
messageId: id, numDestinationChanges: env0_13.current, numQueryChanges: env0_14.current});
(require(9591) /* metro dependency 9591: ForwardModalUtils */).closeForwardModal();
}
function _fun75178() { // fn#75178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:1902, offset: 0x01da5225, size: 89 bytes, params: 1, frame: 13
const value = environment.__proto__;
(require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */).trackForwardCancel({channelId: channel_id,
messageId: id, numDestinationChanges: env0_13.current, numQueryChanges: env0_14.current});
return false;
}
function _fun75179(a0) { // fn#75179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:2048, offset: 0x01da527e, size: 82 bytes, params: 2, frame: 16
var r0;
var value3;
var moduleValue;
const value2 = undefined;
if (env0_8 == null) {
r0 = value2;
} else if (env0_9 == null) {
r0 = value2;
} else {
value3 = environment.__proto__;
moduleValue = require(7231) /* metro dependency 7231: ForwardDestinationUtils */;
r0 = moduleValue.getDestinationIsUnavailable(env0_8, env0_9, a0);
}
return r0;
}
function _fun75180() { // fn#75180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:2144, offset: 0x01da52d0, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun75182);
return _fun75188;
}
function _fun75190() { // fn#75190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:3656, offset: 0x01da57ce, size: 207 bytes, params: 1, frame: 20
let value = environment.__proto__;
const channel = ChannelStore.getChannel(channel_id);
const value4 = undefined;
const channelPermalink = (require(4800) /* metro dependency 4800: ChannelUtils */).getChannelPermalink(channel == null ? value4 : channel.guild_id,
channel_id, id);
const hapticUtilsNativeModule = require(4081) /* metro dependency 4081: HapticUtilsNative */;
const triggerHapticFeedback = hapticUtilsNativeModule.triggerHapticFeedback;
const IMPACT_LIGHT = (importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT;
Reflect.apply(triggerHapticFeedback, hapticUtilsNativeModule, [IMPACT_LIGHT]);
(require(3856) /* metro dependency 3856: ToastUtils */).presentLinkCopied();
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(channelPermalink);
value = require(9592) /* metro dependency 9592: ForwardingAnalyticsUtils */;
value.trackForwardCopyLink(channel_id, id);
return value4;
}
function _fun75191() { // fn#75191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:3909, offset: 0x01da589d, size: 59 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
return {height: value ? height : '100%'};
}
function ForwardModalHeaderTitle({children}) { // fn#75192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:4241, owner: ForwardModal.headerTitle, offset: 0x01da58d8, size: 161 bytes, params: 2, frame: 20
var r4;
var intl;
const value = environment.__proto__;
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
if (env0_20) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r4 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['3Fbkir'],
{count: MAX_DESTINATION_COUNT});
} else {
r4 = undefined;
}
return (
<GenericHeaderTitle
title={children}
subtitleColor="text-feedback-warning"
subtitle={r4}
variant="redesign/heading-18/bold"
/>
);
}
function ForwardModalHeaderRight(a0) { // fn#75193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:4538, owner: ForwardModal.headerRight, offset: 0x01da5979, size: 166 bytes, params: 2, frame: 19
var r0;
var value3;
var HeaderActionButton;
var intl;
var value;
if (env0_10) {
value3 = environment.__proto__;
HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
var headerActionButtonProps = {...a0};
headerActionButtonProps['onPress'] = env0_22;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Xrt5Po);
headerActionButtonProps['accessibilityLabel'] = value;
headerActionButtonProps['IconComponent'] = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
value = <HeaderActionButton {...headerActionButtonProps} />;
r0 = value;
} else {
r0 = null;
}
return r0;
}
function* _fun75182(a0) { // fn#75182, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:2164, offset: 0x01da52ff, size: 1074 bytes, params: 2, frame: 28
var environment;
var binding;
var object2;
var binding3;
var value4;
var open;
var intl;
var Promise;
var all;
var map;
var value5;
var value6;
var filter;
var binding5;
var value8;
var value10;
var promise;
var value12;
var length;
var value15;
var value18;
var value19;
var sendForwards;
var value20;
var value22;
var value23;
var trackForwardSent;
var current;
var value26;
var binding6;
if (true) {
value = environment.__proto__.__proto__;
if (env2_3 == null) {
if (ChannelStore != null) {
ICYMIStore(true);
Promise = global.Promise;
all = Promise.all;
binding = env2_18;
map = binding.map;
value5 = environment.__proto__.__proto__.__proto__;
yield Reflect.apply(all, Promise, [Reflect.apply(map, binding,
[env3_0(env3_2[14]).getOrResolveChannelIdFromDestinationId])]);
value6 = undefined;
if (false) {
return value6;
}
filter = value6.filter;
binding = env3_0;
binding5 = env3_2;
value8 = Reflect.apply(filter, value6, [binding(binding5[22]).isNotNullish]);
binding = env3_1;
if (binding(binding5[23])(ChannelStore, value8)) {
Promise = global.Promise;
value10 = Object.create(Promise.prototype, {constructor: {value: Promise}});
promise = new Promise(_fun75183);
yield promise instanceof Object ? promise : value10;
value12 = undefined;
if (false) {
return value12;
}
if (value12) {
binding = env3_0;
binding(env3_2[17]).closeForwardModal();
length = value8.length;
if (length !== 1) {
binding = env3_1;
value19 = binding(env3_2[28]);
sendForwards = value19.sendForwards;
object2 = {};
copyDataProperties(object2, importDefault, undefined);
object2['withMessage'] = a0;
yield Reflect.apply(sendForwards, value19, [ChannelStore, value8, object2]);
value20 = undefined;
if (false) {
return value20;
}
value22 = value20.every(function(a0) {
return a0.status === 'fulfilled';
});
binding = env3_0;
value23 = binding(env3_2[16]);
trackForwardSent = value23.trackForwardSent;
if (value22) {
object2 = {channelId: env2_5};
object2.messageId = View;
object2.hasError = false;
object2.hasContextMessage = a0 != null && a0 !== '';
object2.numDestinations = value8.length;
current = env2_13.current;
object2.numDestinationChanges = current;
current = env2_14.current;
object2.numQueryChanges = current;
object2.source = dependencyMap;
Reflect.apply(trackForwardSent, value23, [object2]);
binding = env3_1;
binding6 = env3_2;
value = binding(binding6[20]);
open = value.open;
object2 = {key: 'FORWARD_SUCCESS', IconComponent: binding(binding6[29])};
binding = env3_0;
intl = binding(binding6[21]).intl;
object2.content = intl.string(binding(binding6[21]).t.kwmYkt);
Reflect.apply(open, value, [object2]);
return undefined;
}
object2 = {channelId: env2_5};
object2.messageId = View;
object2.hasError = true;
object2.hasContextMessage = a0 != null && a0 !== '';
object2.numDestinations = value8.length;
current = env2_13.current;
object2.numDestinationChanges = current;
current = env2_14.current;
object2.numQueryChanges = current;
Reflect.apply(trackForwardSent, value23, [object2]);
binding = env2_18;
value26 = binding.filter(_fun75187);
binding = env3_0;
binding(env3_2[17]).showForwardFailedAlertModal({message: ChannelStore,
failedDestinations: value26,
forwardOptions: importDefault});
return undefined;
}
binding = env3_1;
value15 = binding(env3_2[26]);
yield value15.fetchMessages({channelId: value8[0]});
if (false) {
return undefined;
}
binding = env3_0;
value18 = binding(env3_2[27]);
value18.transitionToChannel(value8[0], {'navigationReplace': true,
'openTextInVoiceIfVoiceChannel': true});
binding = env3_1;
value19 = binding(env3_2[28]);
sendForwards = value19.sendForwards;
object2 = {};
copyDataProperties(object2, importDefault, undefined);
object2['withMessage'] = a0;
yield Reflect.apply(sendForwards, value19, [ChannelStore, value8, object2]);
value20 = undefined;
if (false) {
return value20;
}
value22 = value20.every(_fun75186);
binding = env3_0;
value23 = binding(env3_2[16]);
trackForwardSent = value23.trackForwardSent;
if (value22) {
object2 = {channelId: env2_5};
object2.messageId = View;
object2.hasError = false;
object2.hasContextMessage = a0 != null && a0 !== '';
object2.numDestinations = value8.length;
current = env2_13.current;
object2.numDestinationChanges = current;
current = env2_14.current;
object2.numQueryChanges = current;
object2.source = dependencyMap;
Reflect.apply(trackForwardSent, value23, [object2]);
binding = env3_1;
binding6 = env3_2;
value = binding(binding6[20]);
open = value.open;
object2 = {key: 'FORWARD_SUCCESS', IconComponent: binding(binding6[29])};
binding = env3_0;
intl = binding(binding6[21]).intl;
object2.content = intl.string(binding(binding6[21]).t.kwmYkt);
Reflect.apply(open, value, [object2]);
return undefined;
}
object2 = {channelId: env2_5};
object2.messageId = View;
object2.hasError = true;
object2.hasContextMessage = a0 != null && a0 !== '';
length = value8.length;
object2.numDestinations = length;
current = env2_13.current;
object2.numDestinationChanges = current;
current = env2_14.current;
object2.numQueryChanges = current;
Reflect.apply(trackForwardSent, value23, [object2]);
binding = env2_18;
value26 = binding.filter(_fun75187);
binding = env3_0;
binding(env3_2[17]).showForwardFailedAlertModal({message: ChannelStore,
failedDestinations: value26,
forwardOptions: importDefault});
return undefined;
}
ICYMIStore(false);
return undefined;
}
binding = env3_0;
binding(env3_2[17]).closeForwardModal();
length = value8.length;
if (length !== 1) {
binding = env3_1;
value19 = binding(env3_2[28]);
sendForwards = value19.sendForwards;
object2 = {};
copyDataProperties(object2, importDefault, undefined);
object2['withMessage'] = a0;
yield Reflect.apply(sendForwards, value19, [ChannelStore, value8, object2]);
value20 = undefined;
if (false) {
return value20;
}
value22 = value20.every(_fun75186);
binding = env3_0;
value23 = binding(env3_2[16]);
trackForwardSent = value23.trackForwardSent;
if (value22) {
object2 = {channelId: env2_5};
object2.messageId = View;
object2.hasError = false;
object2.hasContextMessage = a0 != null && a0 !== '';
object2.numDestinations = value8.length;
current = env2_13.current;
object2.numDestinationChanges = current;
current = env2_14.current;
object2.numQueryChanges = current;
object2.source = dependencyMap;
Reflect.apply(trackForwardSent, value23, [object2]);
binding = env3_1;
binding6 = env3_2;
value = binding(binding6[20]);
open = value.open;
object2 = {key: 'FORWARD_SUCCESS', IconComponent: binding(binding6[29])};
binding = env3_0;
intl = binding(binding6[21]).intl;
object2.content = intl.string(binding(binding6[21]).t.kwmYkt);
Reflect.apply(open, value, [object2]);
return undefined;
}
object2 = {channelId: env2_5};
object2.messageId = View;
object2.hasError = true;
object2.hasContextMessage = a0 != null && a0 !== '';
object2.numDestinations = value8.length;
current = env2_13.current;
object2.numDestinationChanges = current;
current = env2_14.current;
object2.numQueryChanges = current;
Reflect.apply(trackForwardSent, value23, [object2]);
binding = env2_18;
value26 = binding.filter(_fun75187);
binding = env3_0;
binding(env3_2[17]).showForwardFailedAlertModal({message: ChannelStore, failedDestinations: value26,
forwardOptions: importDefault});
return undefined;
}
binding = env3_1;
value15 = binding(env3_2[26]);
yield value15.fetchMessages({channelId: value8[0]});
if (false) {
return undefined;
}
binding = env3_0;
value18 = binding(env3_2[27]);
value18.transitionToChannel(value8[0], {'navigationReplace': true,
'openTextInVoiceIfVoiceChannel': true});
binding = env3_1;
value19 = binding(env3_2[28]);
sendForwards = value19.sendForwards;
object2 = {};
copyDataProperties(object2, importDefault, undefined);
object2['withMessage'] = a0;
yield Reflect.apply(sendForwards, value19, [ChannelStore, value8, object2]);
value20 = undefined;
if (false) {
return value20;
}
value22 = value20.every(_fun75186);
binding = env3_0;
value23 = binding(env3_2[16]);
trackForwardSent = value23.trackForwardSent;
if (value22) {
object2 = {channelId: env2_5};
object2.messageId = View;
object2.hasError = false;
object2.hasContextMessage = a0 != null && a0 !== '';
object2.numDestinations = value8.length;
current = env2_13.current;
object2.numDestinationChanges = current;
current = env2_14.current;
object2.numQueryChanges = current;
object2.source = dependencyMap;
Reflect.apply(trackForwardSent, value23, [object2]);
binding = env3_1;
binding6 = env3_2;
value = binding(binding6[20]);
open = value.open;
object2 = {key: 'FORWARD_SUCCESS', IconComponent: binding(binding6[29])};
binding = env3_0;
intl = binding(binding6[21]).intl;
object2.content = intl.string(binding(binding6[21]).t.kwmYkt);
Reflect.apply(open, value, [object2]);
return undefined;
}
object2 = {channelId: env2_5};
object2.messageId = View;
object2.hasError = true;
object2.hasContextMessage = a0 != null && a0 !== '';
length = value8.length;
object2.numDestinations = length;
current = env2_13.current;
object2.numDestinationChanges = current;
current = env2_14.current;
object2.numQueryChanges = current;
Reflect.apply(trackForwardSent, value23, [object2]);
binding = env2_18;
value26 = binding.filter(_fun75187);
binding = env3_0;
binding(env3_2[17]).showForwardFailedAlertModal({message: ChannelStore, failedDestinations: value26,
forwardOptions: importDefault});
return undefined;
}
value = environment.__proto__.__proto__.__proto__;
binding = env3_1;
binding3 = env3_2;
value4 = binding(binding3[20]);
open = value4.open;
object2 = {key: 'FORWARD_ERROR'};
binding = env3_0;
intl = binding(binding3[21]).intl;
object2.content = intl.string(binding(binding3[21]).t.R0RpRX);
Reflect.apply(open, value4, [object2]);
return undefined;
}
yield env2_3(env2_18, {withMessage: a0}, ICYMIStore);
}
}
function _fun75183(a0) { // fn#75183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:2359, offset: 0x01da5731, size: 106 bytes, params: 2, frame: 17
var environment;
const env0_0 = a0;
let value = environment.__proto__.__proto__.__proto__.__proto__;
let binding = env4_0;
const binding2 = env4_2;
const value2 = binding(binding2[24]);
const openAlert = value2.openAlert;
binding = env4_13;
value = env4_1(binding2[25]);
value = binding(value, {onConfirm: onConfirm_75184, onBack: onBack_75185});
Reflect.apply(openAlert, value2, ['staff-to-non-staff-forward', value]);
}
function _fun75187(a0, a1) { // fn#75187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9779:3283, offset: 0x01da57af, size: 31 bytes, params: 3, frame: 2
return env0_0[a1].status === 'rejected';
}
@@ -0,0 +1,39 @@
/* Metro module 9591; source: modules/forwarding/native/ForwardModalUtils.tsx; dependencies: [31, 33, 4015, 9592, 7556, 477, 5080, 9593, 1962, 9791, 4497, 2] */
function _fun75150(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:6, offset: 0x01da3fdc, size: 182 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardModalUtils.tsx');
exports.FORWARD_MODAL_KEY = 'forward-modal';
exports.openForwardModal = openForwardModal;
exports.closeForwardModal = closeForwardModal;
exports.showForwardFailedAlertModal = showForwardFailedAlertModal;
}
function openForwardModal({message, source, initialSelectedDestinations = [], forwardOptions, customSendHandler}) { // fn#75151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:261, offset: 0x01da4092, size: 292 bytes, params: 2, frame: 24
require(dependencyMap[2]).dismissKeyboard();
const moduleValue2 = require(dependencyMap[3]);
moduleValue2.trackForwardStart(message.channel_id, message.id, source);
const r1 = require(dependencyMap[4]).getIsWindowLarge() && require(dependencyMap[5]).isIOS();
const defaultImport = importDefault(dependencyMap[6]);
defaultImport.pushLazy(require(dependencyMap[8])(dependencyMap[7], dependencyMap.paths), {message: message,
initialSelectedDestinations: initialSelectedDestinations, forwardOptions: forwardOptions, source: source,
customSendHandler: customSendHandler}, 'forward-modal', r1 ? undefined : {presentation: 'modal'});
}
function closeForwardModal() { // fn#75152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:685, offset: 0x01da41b6, size: 44 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('forward-modal');
}
function showForwardFailedAlertModal({message, failedDestinations, forwardOptions}) { // fn#75153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:767, offset: 0x01da41e2, size: 115 bytes, params: 2, frame: 18
(require(4497) /* metro dependency 4497: useAlertStoreNative */).openAlert('forward-failed-alert-modal',
((Component) => <Component message={message} failedDestinations={failedDestinations} forwardOptions={forwardOptions} />)(env0_3.lazy(_fun75154)));
}
function _fun75154() { // fn#75154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9777:869, offset: 0x01da4255, size: 45 bytes, params: 1, frame: 13
const value = environment.__proto__;
return require(dependencyMap[8])(dependencyMap[9], dependencyMap.paths);
}
@@ -0,0 +1,419 @@
/* Metro module 9772; source: modules/forwarding/native/ForwardPreview.tsx; dependencies: [31, 27, 33, 4501, 697, 4048, 8368, 8177, 9773, 9777, 1909, 9778, 22, 9779, 1244, 9781, 9783, 6697, 9786, 5475, 1477, 7599, 4573, 2710, 8382, 2] */
function _fun76686(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:6, offset: 0x01de019d, size: 557 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.forwardPreview = {'flexDirection': 'row', 'gap': null, 'alignItems': 'center', gap: PX_12};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.quote = {'width': 4, 'height': '100%', 'backgroundColor': null, 'borderRadius': 2,
backgroundColor: BORDER_SUBTLE};
object2.contentWrapper = {'flexDirection': 'column', 'flex': 1, 'paddingVertical': 4, 'gap': 6};
const object3 = {'position': 'relative', 'width': 56, 'height': 56, 'borderRadius': null, 'overflow': 'hidden'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.attachmentPreview = object3;
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
object2.attachmentPreviewVideo = {backgroundColor: BLACK};
object2.videoThumbnail = {'position': 'absolute', 'top': 0, 'left': 0, 'opacity': 0.6};
object2.playIcon = {'position': 'absolute', 'top': 0, 'left': 0, 'margin': 16, 'zIndex': 100};
object2.attachmentPreviewOverflow = {position: 'relative'};
const object5 = {'position': 'absolute', 'bottom': 0, 'right': 0, 'alignItems': 'center',
'justifyContent': 'center', 'textAlign': 'center', 'width': 24, 'height': 24, 'lineHeight': 24,
'backgroundColor': null, 'borderRadius': null, 'overflow': 'hidden'};
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
object5.backgroundColor = BACKGROUND_MOD_STRONG;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.overflowCount = object5;
object2.attachmentRow = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 6};
object2.largeIcon = {'width': 20, 'height': 20};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardPreview.tsx');
exports.ForwardPreview = ForwardPreview;
}
function MessagePreview_76687({message, contentMessage, attachmentCount}) { // fn#76687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:1107, offset: 0x01de03ca, size: 329 bytes, params: 2, frame: 21
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const r11 = attachmentCount > 0 ? (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT : (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
return ((Component) => <Component pointerEvents="none" horizontalOffset={0} modifyRow={env0_3.useCallback(_fun76688,
[createStylesModule.createNativeStyleProperties({seeMoreLabelColor: r11})(value2).seeMoreLabelColor,
attachmentCount])} message={message.merge({messageSnapshots: [],
content: contentMessage.content})} rowGenerator={env0_3.useMemo(_fun76689,
[])} />)(importDefault(9773) /* metro dependency 9773: ChatItem */);
}
function ForwardPreview({message, channel, forwardOptions}) { // fn#76690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:2417, offset: 0x01de05d9, size: 2190 bytes, params: 2, frame: 40
var r1;
var r24;
var r2;
var r18;
var r21;
var r23;
var r5;
var r22;
var r19;
var r8;
var property;
var value6;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var value7;
var value8;
var value9;
var value10;
var defaultImport;
var defaultImport2;
var defaultImport3;
var defaultImport4;
var defaultImport5;
var defaultImport6;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var value23;
var object2;
var items7;
var FastImage;
var value;
const styles = useStyles();
const forwardPreviewUtilsModule = require(9777) /* metro dependency 9777: ForwardPreviewUtils */;
const useForwardPreviewContent = forwardPreviewUtilsModule.useForwardPreviewContent;
let object3 = {message: message, channel: channel, forwardOptions: forwardOptions};
const {attachments, embeds, hasContent, contentMessage} = Reflect.apply(useForwardPreviewContent,
forwardPreviewUtilsModule, [object3]);
let length = contentMessage.components.length;
const checkpointData = length > 0 ? contentMessage.components[0].type !== (require(1909) /* metro dependency 1909: Server */).ComponentType.CHECKPOINT_CARD ? null : contentMessage.components[0].checkpointData : null;
let r0 = checkpointData != null ? (require(9778) /* metro dependency 9778: CheckpointColorsNative */).CHECKPOINT_PERSONA_COLORS[checkpointData.cardId ?? 0] : null;
const primaryColor = r0?.primaryColor;
length = attachments.length;
if (length > 0) {
value6 = (require(22) /* metro dependency 22 */).countBy(attachments, _fun76691);
r24 = value6.IMAGE ?? 0;
r0 = value6.VIDEO ?? 0;
if (r24 > 0) {
if (r0 > 0) {
value10 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.Lr0Top,
{image_count: r24, video_count: r0});
r1 = (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
r2 = value10;
} else if (r0 > 0) {
value9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.SJ6pPX,
{count: r0});
r1 = (require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon;
r2 = value9;
} else if (r24 > 0) {
value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.h4pFfU,
{count: r24});
r1 = r24 === 1 ? (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon : (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
r2 = value8;
} else {
value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['89ihS8'],
{count: length});
r1 = (require(9786) /* metro dependency 9786: AttachmentIcon */).AttachmentIcon;
r2 = value7;
}
} else if (r0 > 0) {
value9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.SJ6pPX,
{count: r0});
r1 = (require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon;
r2 = value9;
} else if (r24 > 0) {
value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.h4pFfU,
{count: r24});
r1 = r24 === 1 ? (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon : (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
r2 = value8;
} else {
value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['89ihS8'],
{count: length});
r1 = (require(9786) /* metro dependency 9786: AttachmentIcon */).AttachmentIcon;
r2 = value7;
}
if (r0 > 0) {
if (length === r0) {
var viewProps = {style: [styles.attachmentPreview, styles.attachmentPreviewVideo]};
defaultImport5 = importDefault(5475) /* metro dependency 5475: FastImage */;
var defaultImport5Props = {style: styles.videoThumbnail};
defaultImport6 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
defaultImport5Props.source = {uri: defaultImport6.getMobileOptimizedSrc(attachments[0].proxy_url, 56,
56,
'png')};
defaultImport5Props.width = 56;
defaultImport5Props.height = 56;
r18 = <View {...viewProps}>{((Component) => <Component {...defaultImport5Props} />)(defaultImport5)}{((CirclePlayIcon) => <CirclePlayIcon style={styles.playIcon} size="md" color="white" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}</View>;
r21 = r1;
r23 = r2;
} else if (length > 0) {
var viewBindingProps = {style: styles.attachmentPreview};
defaultImport3 = importDefault(5475) /* metro dependency 5475: FastImage */;
defaultImport4 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport4.getMobileOptimizedSrc(attachments[0].proxy_url,
56, 56)}} width={56} height={56} />)(defaultImport3)}</View>;
r21 = r1;
r23 = r2;
} else {
property = embeds[0];
if ((property == null || property.thumbnail == null ? undefined : property.thumbnail.proxyURL) != null) {
var viewBindingProps = {style: styles.attachmentPreview};
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
defaultImport2 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport2.getMobileOptimizedSrc(embeds[0].thumbnail.proxyURL,
56, 56)}} width={56} height={56} />)(defaultImport)}</View>;
r21 = r1;
r23 = r2;
} else {
r18 = null;
r21 = r1;
r23 = r2;
}
}
} else if (length > 0) {
var viewBindingProps = {style: styles.attachmentPreview};
defaultImport3 = importDefault(5475) /* metro dependency 5475: FastImage */;
defaultImport4 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport4.getMobileOptimizedSrc(attachments[0].proxy_url,
56, 56)}} width={56} height={56} />)(defaultImport3)}</View>;
r21 = r1;
r23 = r2;
} else {
property = embeds[0];
if ((property == null || property.thumbnail == null ? undefined : property.thumbnail.proxyURL) != null) {
var viewBindingProps = {style: styles.attachmentPreview};
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
defaultImport2 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport2.getMobileOptimizedSrc(embeds[0].thumbnail.proxyURL,
56, 56)}} width={56} height={56} />)(defaultImport)}</View>;
r21 = r1;
r23 = r2;
} else {
r18 = null;
r21 = r1;
r23 = r2;
}
}
} else if (embeds.length > 0) {
value6 = (require(22) /* metro dependency 22 */).countBy(attachments, _fun76691);
r24 = value6.IMAGE ?? 0;
r0 = value6.VIDEO ?? 0;
if (r24 > 0) {
if (r0 > 0) {
value10 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.Lr0Top,
{image_count: r24, video_count: r0});
r1 = (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
r2 = value10;
} else if (r0 > 0) {
value9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.SJ6pPX,
{count: r0});
r1 = (require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon;
r2 = value9;
} else if (r24 > 0) {
value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.h4pFfU,
{count: r24});
r1 = r24 === 1 ? (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon : (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
r2 = value8;
} else {
value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['89ihS8'],
{count: length});
r1 = (require(9786) /* metro dependency 9786: AttachmentIcon */).AttachmentIcon;
r2 = value7;
}
} else if (r0 > 0) {
value9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.SJ6pPX,
{count: r0});
r1 = (require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon;
r2 = value9;
} else if (r24 > 0) {
value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.h4pFfU,
{count: r24});
r1 = r24 === 1 ? (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon : (require(9781) /* metro dependency 9781: ImagesIcon */).ImagesIcon;
r2 = value8;
} else {
value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['89ihS8'],
{count: length});
r1 = (require(9786) /* metro dependency 9786: AttachmentIcon */).AttachmentIcon;
r2 = value7;
}
if (r0 > 0) {
if (length === r0) {
var viewProps = {style: [styles.attachmentPreview, styles.attachmentPreviewVideo]};
defaultImport5 = importDefault(5475) /* metro dependency 5475: FastImage */;
var defaultImport5Props = {style: styles.videoThumbnail};
defaultImport6 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
defaultImport5Props.source = {uri: defaultImport6.getMobileOptimizedSrc(attachments[0].proxy_url, 56,
56,
'png')};
defaultImport5Props.width = 56;
defaultImport5Props.height = 56;
r18 = <View {...viewProps}>{((Component) => <Component {...defaultImport5Props} />)(defaultImport5)}{((CirclePlayIcon) => <CirclePlayIcon style={styles.playIcon} size="md" color="white" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}</View>;
r21 = r1;
r23 = r2;
} else if (length > 0) {
var viewBindingProps = {style: styles.attachmentPreview};
defaultImport3 = importDefault(5475) /* metro dependency 5475: FastImage */;
defaultImport4 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport4.getMobileOptimizedSrc(attachments[0].proxy_url,
56, 56)}} width={56} height={56} />)(defaultImport3)}</View>;
r21 = r1;
r23 = r2;
} else {
property = embeds[0];
if ((property == null || property.thumbnail == null ? undefined : property.thumbnail.proxyURL) != null) {
var viewBindingProps = {style: styles.attachmentPreview};
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
defaultImport2 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport2.getMobileOptimizedSrc(embeds[0].thumbnail.proxyURL,
56, 56)}} width={56} height={56} />)(defaultImport)}</View>;
r21 = r1;
r23 = r2;
} else {
r18 = null;
r21 = r1;
r23 = r2;
}
}
} else if (length > 0) {
var viewBindingProps = {style: styles.attachmentPreview};
defaultImport3 = importDefault(5475) /* metro dependency 5475: FastImage */;
defaultImport4 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport4.getMobileOptimizedSrc(attachments[0].proxy_url,
56, 56)}} width={56} height={56} />)(defaultImport3)}</View>;
r21 = r1;
r23 = r2;
} else {
property = embeds[0];
if ((property == null || property.thumbnail == null ? undefined : property.thumbnail.proxyURL) != null) {
var viewBindingProps = {style: styles.attachmentPreview};
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
defaultImport2 = importDefault(1477) /* metro dependency 1477: ImageUtils */;
r18 = <View {...viewBindingProps}>{((Component) => <Component source={{uri: defaultImport2.getMobileOptimizedSrc(embeds[0].thumbnail.proxyURL,
56, 56)}} width={56} height={56} />)(defaultImport)}</View>;
r21 = r1;
r23 = r2;
} else {
r18 = null;
r21 = r1;
r23 = r2;
}
}
} else {
r18 = null;
r21 = null;
r23 = null;
}
if (length > 1) {
if (r18 == null) {
r5 = r18;
} else {
object3 = {'shape': null, 'x': 28, 'y': 28, 'width': 32, 'height': 32, 'cornerRadius': 12};
object3.shape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape.RoundedRect;
r5 = <View style={styles.attachmentPreviewOverflow}>{((Component) => <Component cutouts={[object3]}>{r18}</Component>)(importDefault(7599) /* metro dependency 7599: ClipView */)}<Text style={styles.overflowCount} variant="text-xs/semibold" color="text-default">{'+'}{length - 1}</Text></View>;
}
} else {
r5 = r18;
}
const items5 = [<View style={styles.quote} />];
const items6 = [checkpointData != null && <Text variant="text-md/medium">{intl.string((importDefault(2710) /* metro dependency 2710: CheckpointMessages */).goiR2u)}</Text>];
items6[1] = hasContent && <MessagePreview_76687 message={message} contentMessage={contentMessage} attachmentCount={length} />;
const value22 = length > 0;
if (value22) {
var viewBinding2Props = {style: styles.attachmentRow};
value23 = r21 != null;
if (value23) {
object2 = {};
r22 = hasContent ? 'sm' : 'custom';
object2.size = r22;
r22 = !hasContent && styles.largeIcon;
object2.style = r22;
object2.color = 'text-muted';
r19 = ((Component) => <Component {...object2} />)(r21);
} else {
r19 = value23;
}
items7 = [r19];
r19 = r23 != null && <Text variant={hasContent ? 'text-sm/medium' : 'text-md/medium'} color="text-muted">{r23}</Text>;
items7[1] = r19;
r8 = <View {...viewBinding2Props}>{items7}</View>;
} else {
r8 = value22;
}
items6[2] = r8;
items5[1] = <View style={styles.contentWrapper}>{items6}</View>;
items5[2] = r5;
const value33 = checkpointData != null;
if (value33) {
var viewBinding3Props = {style: styles.attachmentPreview};
FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
var defaultImport8Props = {'style': null, 'width': 56, 'height': 56, style: {backgroundColor: primaryColor}};
value = require(8382) /* metro dependency 8382: CheckpointUtils */;
defaultImport8Props.source = {uri: value.getCardAssetUrl(checkpointData.cardId ?? 0)};
value = <View {...viewBinding3Props}><FastImage {...defaultImport8Props} /></View>;
r5 = value;
} else {
r5 = value33;
}
items5[3] = r5;
return (
<View style={styles.forwardPreview}>
{items5}
</View>
);
}
function _fun76688(a0) { // fn#76688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:1337, offset: 0x01de0513, size: 126 bytes, params: 2, frame: 14
const MessageContextType = (require(8368) /* metro dependency 8368: RowGeneratorTypes */).MessageContextType;
const SEARCH = MessageContextType.SEARCH;
a0.contextType = SEARCH;
a0.truncation = {'numberOfLines': null, 'expandable': false, 'seeMoreLabel': '...',
numberOfLines: attachmentCount > 0 ? 1 : 2, seeMoreLabelColor: env0_1.seeMoreLabelColor};
a0.message.edited = '';
}
function _fun76689() { // fn#76689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:1557, offset: 0x01de0591, size: 72 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = importDefault(8177) /* metro dependency 8177: RowGenerator */;
value = new value();
value.setOptions({'renderEmbeds': false, 'renderReactions': false, 'inlineEmbedMedia': false,
'inlineAttachmentMedia': false, 'animateEmoji': true, 'gifAutoPlay': false, 'timestampHourCycle': 0,
'renderCodedLinks': false, 'renderGiftCode': false, 'renderActivityInstanceEmbed': false,
'renderActivityInviteEmbed': false, 'renderComponents': false, 'renderThreadEmbeds': false,
'renderReplies': false, 'renderCommunicationDisabled': false, 'renderAttachments': false,
'renderExecutedCommands': false, 'renderPolls': false, 'renderSharedClientTheme': false,
'renderForumPostActions': false, 'ignoreMentioned': false, 'ignoreEmbedDescriptionCache': false,
'forceHideSimpleEmbedContent': false, 'enableSwipeActions': false, 'useAlternateEmbedColors': false});
return value;
}
function _fun76691(a0) { // fn#76691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9958:2944, offset: 0x01de0e67, size: 44 bytes, params: 2, frame: 13
const value = environment.__proto__;
return (require(9779) /* metro dependency 9779: MosaicMediaType */).getMosaicMediaTypeForAttachment(a0, true);
}
@@ -0,0 +1,32 @@
/* Metro module 9596; source: modules/forwarding/native/ForwardStaffToNonStaffWarningModal.tsx; dependencies: [33, 4500, 1244, 2] */
function _fun75200(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9782:6, offset: 0x01da5c61, size: 135 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = require(33) /* metro dependency 33 */;
const env0_2 = value.jsx;
const env0_3 = value.Fragment;
const env0_4 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardStaffToNonStaffWarningModal.tsx');
exports.default = ForwardStaffToNonStaffWarningModal;
}
function ForwardStaffToNonStaffWarningModal({onConfirm, onBack}) { // fn#75201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9782:244, offset: 0x01da5ce8, size: 370 bytes, params: 2, frame: 28
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const YrV3I9 = (require(1244) /* metro dependency 1244: indexNative */).t.YrV3I9;
object2.title = Reflect.apply(string, intl, [YrV3I9]);
string = intl.string;
const MXSMtl = (require(1244) /* metro dependency 1244: indexNative */).t.MXSMtl;
object2.content = Reflect.apply(string, intl, [MXSMtl]);
const jsxRuntimeEnv0_3Binding = jsxRuntimeEnv0_3;
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
string = intl.string;
const X7eUJq = (require(1244) /* metro dependency 1244: indexNative */).t.X7eUJq;
object2.actions = <><AlertActionButton text={Reflect.apply(string, intl,
[X7eUJq])} onPress={onConfirm} key="confirm" /><AlertActionButton variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])} onPress={onBack} key="back" /></>;
return <AlertModal {...object2} />;
}
@@ -0,0 +1,15 @@
/* Metro module 9600; source: modules/forwarding/native/ForwardingIcon.tsx; dependencies: [33, 9601, 2] */
function _fun75253(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9786:6, offset: 0x01da78b3, size: 116 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/forwarding/native/ForwardingIcon.tsx');
exports.default = ForwardingIcon;
}
function ForwardingIcon(a0) { // fn#75254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9786:198, offset: 0x01da7927, size: 55 bytes, params: 2, frame: 14
const ArrowAngleRightUpIcon = (require(9601) /* metro dependency 9601: ArrowAngleRightUpIcon */).ArrowAngleRightUpIcon;
return <ArrowAngleRightUpIcon {...a0} />;
}