Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,480 @@
|
||||
/* Metro module 12562; source: modules/message_previews/MessagePreviewStore.tsx; dependencies: [57, 6, 7, 15, 17, 18, 1379, 4814, 3, 694, 12563, 4820, 566, 2] */
|
||||
function _fun96119(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:6, offset: 0x02155bda, size: 348 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_96122 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('MessagePreviewStore');
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
value = _fun96126(Store);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_previews/MessagePreviewStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_96120(a0, a1) { // fn#96120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:180, offset: 0x02155d36, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun96121;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_96122(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_96122(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_96122(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun96121;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96123() { // fn#96123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:1090, offset: 0x02155eaa, 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_96123_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun96126(a0) { // fn#96126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:1338, offset: 0x02155f0c, size: 503 bytes, params: 2, frame: 16
|
||||
const closure = MessagePreviewStore_96127;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(ChannelStore, MessageStore);
|
||||
}}, {key: 'isLatest', value: function(a0, a1) {
|
||||
var value = a0;
|
||||
var guilds = this.guilds;
|
||||
var get = guilds.get;
|
||||
var value2 = null;
|
||||
var r1 = value2 != value ? value : value2;
|
||||
value = Reflect.apply(get, guilds, [r1]);
|
||||
if (value2 == value) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = value.isLatest(a1, this.generation);
|
||||
r1 = value;
|
||||
}
|
||||
return value2 != r1 && r1;
|
||||
}}, {key: 'isLocalFetchNeeded', value: function(a0) {
|
||||
var r1;
|
||||
r1 = this.guilds.get(a0)?.localNeeded;
|
||||
return r1 == null || r1;
|
||||
}}, {key: 'message', value: function(a0, a1) {
|
||||
var r1;
|
||||
var value = this.guilds.get(a0);
|
||||
var value2 = null;
|
||||
if (value2 == value) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = value.messageRecord(a1);
|
||||
r1 = value;
|
||||
}
|
||||
return value2 != r1 ? r1 : value2;
|
||||
}}, {key: 'data', value: value_96144}, {key: 'handleOneGuildCreate', value: function(a0) {
|
||||
var value = this.data(a0.id);
|
||||
value.putMany(a0.lastMessages ?? [], this.generation);
|
||||
value.putMany(a0.threadMessages ?? [], this.generation);
|
||||
if (a0.lastMessages != null) {
|
||||
value.localNeeded = false;
|
||||
}
|
||||
}}, {key: 'handleConnectionOpen', value: value_96146}, {key: 'handleGuildCreate', value: function(a0) {
|
||||
this.handleOneGuildCreate(a0.guild);
|
||||
}}, {key: 'handleGuildDelete', value: function(a0) {
|
||||
this.guilds.delete(a0.guild.id);
|
||||
}}, {key: 'handleMessageCreate', value: function(a0) {
|
||||
if (a0.optimistic) {
|
||||
return false;
|
||||
}
|
||||
if (a0.isPushNotification) {
|
||||
return false;
|
||||
}
|
||||
var property = this.data;
|
||||
var guildId = a0.guildId;
|
||||
var value = null;
|
||||
value = Reflect.apply(property, this, [value != guildId ? guildId : value]);
|
||||
value.put(a0.message.channel_id, a0.message, this.generation);
|
||||
}}, {key: 'handleMessageDelete', value: value_96150}, {key: 'handleMessageUpdate', value: function(a0) {
|
||||
var property = a0.guildId;
|
||||
var value = null;
|
||||
var r3 = value != property ? property : value;
|
||||
property = a0.message.channel_id;
|
||||
var id = a0.message.id;
|
||||
if (value == property) {
|
||||
return false;
|
||||
}
|
||||
if (value == id) {
|
||||
return false;
|
||||
}
|
||||
var value2 = this.data(r3);
|
||||
var value3 = undefined;
|
||||
if ((value == value2 ? value3 : value2.messageId(property)) !== id) {
|
||||
return false;
|
||||
}
|
||||
if (value != value2) {
|
||||
value2.update(a0.message);
|
||||
}
|
||||
return value3;
|
||||
}}, {key: 'handleThreadListSync', value: function(a0) {
|
||||
var value = this.data(a0.guildId);
|
||||
value.putMany(a0.mostRecentMessages ?? [], this.generation);
|
||||
}}, {key: 'handleLoadMessagesSuccess', value: value_96153}, {key: 'handleLocalMessagesLoaded', value: value_96154},
|
||||
{key: 'handleMessagePreviewsLoaded', value: value_96155}, {key: 'handleMessagePreviewsLocallyLoaded',
|
||||
value: value_96156}, {key: 'handleLogout', value: function() {
|
||||
this.guilds.clear();
|
||||
}}]);
|
||||
}
|
||||
|
||||
function MessagePreviewStore_96127() { // fn#96127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:1350, offset: 0x02156103, size: 332 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_4(this, MessagePreviewStore_96127);
|
||||
const items2 = [importDefault(694) /* metro dependency 694: Dispatcher */];
|
||||
items2[1] = {CONNECTION_OPEN: CONNECTION_OPEN_96128, GUILD_CREATE: GUILD_CREATE_96129,
|
||||
GUILD_DELETE: GUILD_DELETE_96130, LOAD_MESSAGES_SUCCESS: LOAD_MESSAGES_SUCCESS_96131,
|
||||
LOCAL_MESSAGES_LOADED: LOCAL_MESSAGES_LOADED_96132, LOGOUT: LOGOUT_96133, MESSAGE_CREATE: MESSAGE_CREATE_96134,
|
||||
MESSAGE_DELETE: MESSAGE_DELETE_96135, MESSAGE_PREVIEWS_LOADED: MESSAGE_PREVIEWS_LOADED,
|
||||
MESSAGE_PREVIEWS_LOCALLY_LOADED: MESSAGE_PREVIEWS_LOCALLY_LOADED, MESSAGE_UPDATE: MESSAGE_UPDATE_96138,
|
||||
THREAD_LIST_SYNC: THREAD_LIST_SYNC_96139};
|
||||
const value3 = env1_7(MessagePreviewStore_96127);
|
||||
value = env1_6(this, _isNativeReflectConstruct_96123() ? global.Reflect.construct(value3, items2,
|
||||
env1_7(this).constructor) : value3.apply(this, items2));
|
||||
const Map = global.Map;
|
||||
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
const map = new Map();
|
||||
value.guilds = map instanceof Object ? map : value4;
|
||||
value.generation = 0;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_96144(a0) { // fn#96144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:2720, offset: 0x021563cb, size: 111 bytes, params: 2, frame: 16
|
||||
var set;
|
||||
var value;
|
||||
let guilds = this.guilds;
|
||||
if (!guilds.has(a0)) {
|
||||
guilds = this.guilds;
|
||||
set = guilds.set;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(set, guilds, [a0, new (require(12563) /* metro dependency 12563: PreviewData */).PreviewData()]);
|
||||
}
|
||||
return this.guilds.get(a0);
|
||||
}
|
||||
|
||||
function value_96146({guilds}) { // fn#96146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:3091, offset: 0x021564a7, size: 90 bytes, params: 2, frame: 14
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
this.generation = this.generation + 1;
|
||||
let value = environment.__proto__;
|
||||
value = _createForOfIteratorHelperLoose_96120(guilds);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
for (r2 = value2; true; r2 = value4) {
|
||||
value3 = r2.value;
|
||||
this.handleOneGuildCreate(value3);
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_96150(a0) { // fn#96150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:3617, offset: 0x0215659c, size: 181 bytes, params: 2, frame: 19
|
||||
var r5;
|
||||
var value5;
|
||||
var value6;
|
||||
const guildId = a0.guildId;
|
||||
let value = null;
|
||||
const r4 = value != guildId ? guildId : value;
|
||||
const value2 = this.data(r4);
|
||||
const value3 = undefined;
|
||||
if ((value == value2 ? value3 : value2.messageId(a0.channelId)) === a0.id) {
|
||||
value5 = environment.__proto__;
|
||||
value6 = MessageStore.getMessages(a0.channelId);
|
||||
r5 = value6.hasMoreAfter ? value : value6.last();
|
||||
if (value != r5) {
|
||||
value = this.data(r4);
|
||||
value.put(a0.channelId, r5, this.generation);
|
||||
} else {
|
||||
this.data(r4).delete(a0.channelId);
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function value_96153(a0) { // fn#96153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:4310, offset: 0x02156702, size: 238 bytes, params: 2, frame: 21
|
||||
var put;
|
||||
var property;
|
||||
var putNew;
|
||||
let value = environment.__proto__;
|
||||
const getBasicChannel = ChannelStore.getBasicChannel;
|
||||
let channelId = a0.channelId;
|
||||
const value2 = Reflect.apply(getBasicChannel, ChannelStore, [channelId]);
|
||||
const value3 = null;
|
||||
if (value3 == value2) {
|
||||
return false;
|
||||
}
|
||||
value = require(4820) /* metro dependency 4820: requireSortedDescending */;
|
||||
value.requireSortedDescending(a0.messages);
|
||||
if (a0.isAfter) {
|
||||
value = this.data(value2.guild_id);
|
||||
putNew = value.putNew;
|
||||
channelId = a0.channelId;
|
||||
property = a0.messages[0];
|
||||
Reflect.apply(putNew, value, [channelId, value3 != property ? property : value3, this.generation]);
|
||||
} else if (a0.isBefore) {
|
||||
value = this.data(value2.guild_id);
|
||||
putNew = value.putNew;
|
||||
channelId = a0.channelId;
|
||||
property = a0.messages[0];
|
||||
Reflect.apply(putNew, value, [channelId, value3 != property ? property : value3, this.generation]);
|
||||
} else if (a0.hasMoreAfter) {
|
||||
value = this.data(value2.guild_id);
|
||||
putNew = value.putNew;
|
||||
channelId = a0.channelId;
|
||||
property = a0.messages[0];
|
||||
Reflect.apply(putNew, value, [channelId, value3 != property ? property : value3, this.generation]);
|
||||
} else {
|
||||
value = this.data(value2.guild_id);
|
||||
put = value.put;
|
||||
channelId = a0.channelId;
|
||||
property = a0.messages[0];
|
||||
Reflect.apply(put, value, [channelId, value3 != property ? property : value3, this.generation]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_96154(a0) { // fn#96154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:4685, offset: 0x021567f0, size: 145 bytes, params: 2, frame: 17
|
||||
var requireSortedDescending;
|
||||
var messages;
|
||||
var putNew;
|
||||
var property;
|
||||
let value = environment.__proto__;
|
||||
const getBasicChannel = ChannelStore.getBasicChannel;
|
||||
let channelId = a0.channelId;
|
||||
const value2 = Reflect.apply(getBasicChannel, ChannelStore, [channelId]);
|
||||
const value3 = null;
|
||||
if (value3 != value2) {
|
||||
value = require(4820) /* metro dependency 4820: requireSortedDescending */;
|
||||
requireSortedDescending = value.requireSortedDescending;
|
||||
messages = a0.messages;
|
||||
Reflect.apply(requireSortedDescending, value, [messages]);
|
||||
value = this.data(value2.guild_id);
|
||||
putNew = value.putNew;
|
||||
channelId = a0.channelId;
|
||||
messages = a0.messages;
|
||||
property = messages[0];
|
||||
Reflect.apply(putNew, value, [channelId, value3 != property ? property : value3, -Infinity]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_96155(a0) { // fn#96155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:4911, offset: 0x02156881, size: 191 bytes, params: 2, frame: 22
|
||||
var r2;
|
||||
var value4;
|
||||
var isLatest;
|
||||
var channel_id;
|
||||
var generation;
|
||||
var put;
|
||||
var value5;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_11;
|
||||
binding.verbose('adding remote previews (guildId: ' + a0.guildId + ', messages: ' + a0.messages.length + ')');
|
||||
const value2 = this.data(a0.guildId);
|
||||
value = _createForOfIteratorHelperLoose_96120(a0.messages);
|
||||
const value3 = value();
|
||||
let done = value3.done;
|
||||
if (!done) {
|
||||
r2 = value3;
|
||||
while (true) {
|
||||
value4 = r2.value;
|
||||
isLatest = value2.isLatest;
|
||||
channel_id = value4.channel_id;
|
||||
generation = this.generation;
|
||||
if (!Reflect.apply(isLatest, value2, [channel_id, generation])) {
|
||||
put = value2.put;
|
||||
channel_id = value4.channel_id;
|
||||
generation = this.generation;
|
||||
Reflect.apply(put, value2, [channel_id, value4, generation]);
|
||||
}
|
||||
value5 = value();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value5;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_96156(a0) { // fn#96156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:5255, offset: 0x02156940, size: 211 bytes, params: 2, frame: 23
|
||||
var r3;
|
||||
var value5;
|
||||
var value6;
|
||||
var property;
|
||||
var property2;
|
||||
var has;
|
||||
var value7;
|
||||
const binding = env1_11;
|
||||
binding.verbose('adding local previews (guildId: ' + a0.guildId + ', messages: ' + a0.messages.length + ')');
|
||||
const value2 = this.data(a0.guildId);
|
||||
const value3 = _createForOfIteratorHelperLoose_96120(a0.messages);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r3 = value4;
|
||||
while (true) {
|
||||
value5 = r3.value;
|
||||
value6 = env1_3(value5, 2);
|
||||
property = value6[0];
|
||||
property2 = value6[1];
|
||||
has = value2.has;
|
||||
if (!Reflect.apply(has, value2, [property])) {
|
||||
value2.put(property, property2, -Infinity);
|
||||
}
|
||||
value7 = value3();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
value2.localNeeded = false;
|
||||
}
|
||||
|
||||
function MessagePreviewStore_96127LOAD_MESSAGES_SUCCESS(a0) { // fn#96131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:1737, owner: MessagePreviewStore_96127.LOAD_MESSAGES_SUCCESS, offset: 0x0215624f, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_0.handleLoadMessagesSuccess(a0);
|
||||
}
|
||||
|
||||
function MessagePreviewStore_96127LOCAL_MESSAGES_LOADED(a0) { // fn#96132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:1793, owner: MessagePreviewStore_96127.LOCAL_MESSAGES_LOADED, offset: 0x02156266, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleLocalMessagesLoaded(a0);
|
||||
}
|
||||
|
||||
function MessagePreviewStore_96127MESSAGE_PREVIEWS_LOADED(a0) { // fn#96136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:1965, owner: MessagePreviewStore_96127.MESSAGE_PREVIEWS_LOADED, offset: 0x021562ad, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_0.handleMessagePreviewsLoaded(a0);
|
||||
}
|
||||
|
||||
function MESSAGE_PREVIEWS_LOCALLY_LOADED(a0) { // fn#96137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12752:2033, owner: MessagePreviewStore_96127.MESSAGE_PREVIEWS_LOCALLY_LOADED, offset: 0x021562c4, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleMessagePreviewsLocallyLoaded(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,296 @@
|
||||
/* Metro module 12563; source: modules/message_previews/PreviewData.tsx; dependencies: [6, 7, 3794, 4605, 4625, 21, 2] */
|
||||
function _fun96158(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:6, offset: 0x02156a2a, size: 192 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_96161 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const messageRecord = importDefault(3794) /* metro dependency 3794: MessageRecord */;
|
||||
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
let value = _fun96162();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_previews/PreviewData.tsx');
|
||||
exports.PreviewData = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_96159(a0, a1) { // fn#96159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:140, offset: 0x02156aea, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun96160;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_96161(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_96161(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_96161(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun96160;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun96162() { // fn#96162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:1056, offset: 0x02156c5e, size: 288 bytes, params: 1, frame: 15
|
||||
return env0_4(PreviewData, [{key: 'isLatest', value: function(a0, a1) {
|
||||
return this.messageGeneration(a0, a1) === a1;
|
||||
}}, {key: 'messageGeneration', value: value_96165}, {key: 'messageId', value: function(a0) {
|
||||
var r1;
|
||||
var value = this.messages.get(a0);
|
||||
var value2 = null;
|
||||
r1 = value2 == value || value2 == value.message ? undefined : value.message.id;
|
||||
return value2 != r1 ? r1 : value2;
|
||||
}}, {key: 'messageRecord', value: value_96167}, {key: 'has', value: function(a0) {
|
||||
return this.messages.has(a0);
|
||||
}}, {key: 'put', value: function(a0, a1, a2) {
|
||||
this.messages.set(a0, {message: a1, generation: a2});
|
||||
}}, {key: 'putNew', value: value_96170}, {key: 'putMany', value: value_96171}, {key: 'update', value: value_96172},
|
||||
{key: 'delete', value: function(a0) {
|
||||
this.messages.delete(a0);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function PreviewData() { // fn#96163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:1077, offset: 0x02156d7e, size: 69 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, PreviewData);
|
||||
this.localNeeded = true;
|
||||
const Map = global.Map;
|
||||
this.messages = new Map();
|
||||
}
|
||||
|
||||
function value_96165(a0, a1) { // fn#96165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:1273, offset: 0x02156de0, size: 149 bytes, params: 3, frame: 17
|
||||
var r1;
|
||||
var r0;
|
||||
var id;
|
||||
var value4;
|
||||
var set;
|
||||
var object2;
|
||||
const value = a1;
|
||||
let messages = this.messages;
|
||||
const value2 = messages.get(a0);
|
||||
if (value2 == null) {
|
||||
r0 = -Infinity;
|
||||
} else {
|
||||
if (value2.generation === value) {
|
||||
r1 = value2.generation;
|
||||
} else if (value2.message == null) {
|
||||
r1 = value2.generation;
|
||||
} else {
|
||||
id = value2.message.id;
|
||||
value4 = environment.__proto__;
|
||||
if (id === ReadStateStore.lastMessageId(a0)) {
|
||||
messages = this.messages;
|
||||
set = messages.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, value2);
|
||||
object2['generation'] = value;
|
||||
Reflect.apply(set, messages, [a0, object2]);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value2.generation;
|
||||
}
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_96167(a0) { // fn#96167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:1623, offset: 0x02156eb7, size: 137 bytes, params: 2, frame: 13
|
||||
var value7;
|
||||
var moduleValue;
|
||||
const value = this.messages.get(a0);
|
||||
const value2 = null;
|
||||
let r1 = value2 == value || value2 == value.message;
|
||||
r1 = !r1 ? value.message instanceof MessageRecord : r1;
|
||||
if (!r1) {
|
||||
value7 = environment.__proto__;
|
||||
moduleValue = require(4625) /* metro dependency 4625: MessageRecordUtils */;
|
||||
value.message = moduleValue.createMessageRecord(value.message);
|
||||
}
|
||||
const message = value2 == value ? undefined : value.message;
|
||||
return value2 != message ? message : value2;
|
||||
}
|
||||
|
||||
function value_96170(a0, a1, a2) { // fn#96170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:1977, offset: 0x02156f84, size: 143 bytes, params: 4, frame: 21
|
||||
var id;
|
||||
var r1;
|
||||
var r0;
|
||||
var id2;
|
||||
let value = this.messages.get(a0);
|
||||
const value2 = a1 != null;
|
||||
if (value2) {
|
||||
id2 = a1.id;
|
||||
id = value == null || value.message == null ? undefined : value.message.id;
|
||||
value = id == null;
|
||||
if (value) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.compare(id2, id);
|
||||
value = value > 0;
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
if (r0) {
|
||||
this.put(a0, a1, a2);
|
||||
}
|
||||
}
|
||||
|
||||
function value_96171(a0, a1) { // fn#96171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:2180, offset: 0x02157013, size: 75 bytes, params: 3, frame: 18
|
||||
var r2;
|
||||
var value3;
|
||||
var put;
|
||||
var channel_id;
|
||||
var value4;
|
||||
let value = environment.__proto__;
|
||||
value = _createForOfIteratorHelperLoose_96159(a0);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
for (r2 = value2; true; r2 = value4) {
|
||||
value3 = r2.value;
|
||||
put = this.put;
|
||||
channel_id = value3.channel_id;
|
||||
Reflect.apply(put, this, [channel_id, value3, a1]);
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_96172(a0) { // fn#96172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12753:2321, offset: 0x0215705e, size: 209 bytes, params: 2, frame: 18
|
||||
var r5;
|
||||
var channel_id;
|
||||
var messages;
|
||||
var value;
|
||||
var value2;
|
||||
var message;
|
||||
var value3;
|
||||
var value4;
|
||||
var moduleValue;
|
||||
var set;
|
||||
var object2;
|
||||
let id = a0.id;
|
||||
if (id != null) {
|
||||
channel_id = a0.channel_id;
|
||||
if (channel_id != null) {
|
||||
channel_id = a0.channel_id;
|
||||
messages = this.messages;
|
||||
value = messages.get(channel_id);
|
||||
value2 = undefined;
|
||||
if (value == null) {
|
||||
id = value2;
|
||||
} else {
|
||||
message = value.message;
|
||||
id = message == null ? value2 : message.id;
|
||||
}
|
||||
if (id === a0.id) {
|
||||
message = value.message;
|
||||
value3 = environment.__proto__;
|
||||
value4 = message instanceof MessageRecord;
|
||||
moduleValue = require(dependencyMap[4]);
|
||||
r5 = value4 ? moduleValue.updateMessageRecord(value.message,
|
||||
a0) : moduleValue.updateServerMessage(value.message,
|
||||
a0);
|
||||
messages = this.messages;
|
||||
set = messages.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value, dependencyMap);
|
||||
object2['message'] = r5;
|
||||
Reflect.apply(set, messages, [channel_id, object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,297 @@
|
||||
/* Metro module 13778; source: modules/message_previews/RemoteFetchData.tsx; dependencies: [5, 6, 7, 2] */
|
||||
function _fun105121(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:6, offset: 0x022adb51, size: 204 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const _arrayLikeToArray_105124 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
||||
object2 = {Pending: 0};
|
||||
object2[0] = 'Pending';
|
||||
object2.Fetching = 1;
|
||||
object2[1] = 'Fetching';
|
||||
let value = _fun105125();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_previews/RemoteFetchData.tsx');
|
||||
exports.FetchStatus = object2;
|
||||
exports.RemoteFetchData = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_105122(a0, a1) { // fn#105122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:130, offset: 0x022adc1d, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun105123;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_105124(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_105124(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_105124(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun105123;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun105125() { // fn#105125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:1126, offset: 0x022add91, size: 285 bytes, params: 1, frame: 17
|
||||
const binding = env0_2;
|
||||
const closure = RemoteFetchData;
|
||||
const items2 = [{key: 'empty', value: function() {
|
||||
return this.pending.size === 0 && this.fetching.size === 0;
|
||||
}}];
|
||||
items2[1] = {key: 'status', value: value_105128};
|
||||
items2[2] = {key: 'addWant', value: function(a0) {
|
||||
if (!this.fetching.has(a0)) {
|
||||
this.pending.add(a0);
|
||||
}
|
||||
}};
|
||||
items2[3] = {key: 'removeWant', value: function(a0) {
|
||||
this.pending.delete(a0);
|
||||
this.fetching.delete(a0);
|
||||
}};
|
||||
items2[4] = {key: 'nextWants', value: function(a0) {
|
||||
var r4;
|
||||
var property = this.pending;
|
||||
var items = [];
|
||||
arraySpread(items, property, 0, r4);
|
||||
items.length = global.Math.min(a0, items.length);
|
||||
return items;
|
||||
}};
|
||||
items2[5] = {key: 'markFetching', value: value_105132};
|
||||
items2[6] = {key: 'markCompleted', value: value_105133};
|
||||
items2[7] = {key: 'markFailed', value: value_105134};
|
||||
const env0_0Binding = env0_0(_fun105136);
|
||||
items2[8] = {key: 'try', value: value_105137};
|
||||
return binding(closure, items2);
|
||||
}
|
||||
|
||||
function RemoteFetchData() { // fn#105126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:1147, offset: 0x022adeae, size: 93 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
env1_1(this, RemoteFetchData);
|
||||
let Set = global.Set;
|
||||
this.pending = new Set();
|
||||
Set = global.Set;
|
||||
this.fetching = new Set();
|
||||
}
|
||||
|
||||
function value_105128(a0) { // fn#105128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:1349, offset: 0x022adf33, size: 76 bytes, params: 2, frame: 12
|
||||
const pending = this.pending;
|
||||
return pending.has(a0) ? env1_3.Pending : this.fetching.has(a0) ? env1_3.Fetching : null;
|
||||
}
|
||||
|
||||
function value_105132(a0) { // fn#105132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:1725, offset: 0x022ae00f, size: 86 bytes, params: 2, frame: 15
|
||||
var r2;
|
||||
var value3;
|
||||
var pending;
|
||||
var fetching;
|
||||
var value4;
|
||||
let value = environment.__proto__;
|
||||
value = _createForOfIteratorHelperLoose_105122(a0);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
for (r2 = value2; true; r2 = value4) {
|
||||
value3 = r2.value;
|
||||
pending = this.pending;
|
||||
pending.delete(value3);
|
||||
fetching = this.fetching;
|
||||
fetching.add(value3);
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_105133(a0) { // fn#105133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:1888, offset: 0x022ae065, size: 86 bytes, params: 2, frame: 15
|
||||
var r2;
|
||||
var value3;
|
||||
var pending;
|
||||
var fetching;
|
||||
var value4;
|
||||
let value = environment.__proto__;
|
||||
value = _createForOfIteratorHelperLoose_105122(a0);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
for (r2 = value2; true; r2 = value4) {
|
||||
value3 = r2.value;
|
||||
pending = this.pending;
|
||||
pending.delete(value3);
|
||||
fetching = this.fetching;
|
||||
fetching.delete(value3);
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_105134(a0) { // fn#105134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:2051, offset: 0x022ae0bb, size: 86 bytes, params: 2, frame: 15
|
||||
var r2;
|
||||
var value3;
|
||||
var pending;
|
||||
var fetching;
|
||||
var value4;
|
||||
let value = environment.__proto__;
|
||||
value = _createForOfIteratorHelperLoose_105122(a0);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
for (r2 = value2; true; r2 = value4) {
|
||||
value3 = r2.value;
|
||||
pending = this.pending;
|
||||
pending.add(value3);
|
||||
fetching = this.fetching;
|
||||
fetching.delete(value3);
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun105136(a0, a1) { // fn#105136, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13975:2210, offset: 0x022ae11c, size: 93 bytes, params: 3, frame: 14
|
||||
var markFetching;
|
||||
var value3;
|
||||
var markCompleted;
|
||||
var error;
|
||||
let value = undefined;
|
||||
if (true) {
|
||||
try {
|
||||
markFetching = this.markFetching;
|
||||
} catch (error) {
|
||||
this.markFailed(a0);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(markFetching, this, [a0]);
|
||||
} catch (error) {
|
||||
this.markFailed(a0);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value = a1();
|
||||
} catch (error) {
|
||||
this.markFailed(a0);
|
||||
throw error;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value3 = false;
|
||||
} catch (error) {
|
||||
this.markFailed(a0);
|
||||
throw error;
|
||||
}
|
||||
if (value3) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
markCompleted = this.markCompleted;
|
||||
} catch (error) {
|
||||
this.markFailed(a0);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(markCompleted, this, [a0]);
|
||||
} catch (error) {
|
||||
this.markFailed(a0);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
/* Metro module 10978; source: modules/message_previews/native/MessagePreviewMarkup.tsx; dependencies: [6623, 6624, 10979, 3855, 6622, 3834, 1393, 2] */
|
||||
function _fun84044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11164:6, offset: 0x01f35b26, size: 228 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = renderASTToReact;
|
||||
const closure2 = getMessagePreviewASTParser;
|
||||
const closure3 = getOrParseMessagePreviewMarkupAST;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(1393) /* metro dependency 1393 */;
|
||||
value = new value({max: 2000});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_previews/native/MessagePreviewMarkup.tsx');
|
||||
exports.renderASTToReact = closure;
|
||||
exports.getMessagePreviewASTParser = closure2;
|
||||
exports.renderMessagePreviewMarkup = renderMessagePreviewMarkup;
|
||||
exports.messagePreviewASTCache = value;
|
||||
exports.getOrParseMessagePreviewMarkupAST = closure3;
|
||||
}
|
||||
|
||||
function getRules({layout, color, fontScale, maxFontSizeMultiplier}) { // fn#84045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11164:43, offset: 0x01f35c0a, size: 108 bytes, params: 2, frame: 21
|
||||
const combineMarkupRules = importDefault(6623) /* metro dependency 6623: combineMarkupRules */;
|
||||
const RULES = (importDefault(6624) /* metro dependency 6624: MarkupRules */).RULES;
|
||||
return combineMarkupRules([RULES,
|
||||
(importDefault(10979) /* metro dependency 10979: MarkupMessagePreviewReactRules */)(layout, color, fontScale,
|
||||
maxFontSizeMultiplier)]);
|
||||
}
|
||||
|
||||
function renderASTToReact({tree, initialParserState, layout, color, fontScale, maxFontSizeMultiplier}) { // fn#84046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11164:166, offset: 0x01f35c76, size: 137 bytes, params: 2, frame: 18
|
||||
const rules = getRules({layout: layout, color: color, fontScale: fontScale,
|
||||
maxFontSizeMultiplier: maxFontSizeMultiplier});
|
||||
const value = importDefault(3855) /* metro dependency 3855 */;
|
||||
const reactFor = value.reactFor;
|
||||
const defaultImport = value;
|
||||
return Reflect.apply(reactFor, value, [defaultImport.ruleOutput(rules, 'react')])(tree, initialParserState);
|
||||
}
|
||||
|
||||
function getMessagePreviewASTParser({layout, color, fontScale, maxFontSizeMultiplier}) { // fn#84047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11164:407, offset: 0x01f35cff, size: 94 bytes, params: 2, frame: 15
|
||||
return (importDefault(6622) /* metro dependency 6622: MarkupUtils */).astParserFor(getRules({layout: layout,
|
||||
color: color, fontScale: fontScale, maxFontSizeMultiplier: maxFontSizeMultiplier}));
|
||||
}
|
||||
|
||||
function getOrParseMessagePreviewMarkupAST({content, layout, color, initialParserState, postProcessor, fontScale, maxFontSizeMultiplier}) { // fn#84048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11164:680, offset: 0x01f35d5d, size: 204 bytes, params: 2, frame: 23
|
||||
var r1;
|
||||
var r3;
|
||||
var property;
|
||||
const value2 = env0_3.get(content);
|
||||
if (value2 != null) {
|
||||
return value2;
|
||||
}
|
||||
const messagePreviewASTParser = getMessagePreviewASTParser({layout: layout, color: color, fontScale: fontScale,
|
||||
maxFontSizeMultiplier: maxFontSizeMultiplier});
|
||||
const value5 = content.startsWith('```');
|
||||
if (value5) {
|
||||
r1 = value5;
|
||||
r3 = undefined;
|
||||
} else {
|
||||
property = content.split('\n')[0];
|
||||
r1 = property.includes('||');
|
||||
r3 = property;
|
||||
}
|
||||
r3 = r1 ? content : r3;
|
||||
const value8 = messagePreviewASTParser(r3, true, initialParserState, postProcessor);
|
||||
env0_3.set(content, value8);
|
||||
return value8;
|
||||
}
|
||||
|
||||
function renderMessagePreviewMarkup({content, muted, guildId, channelId, layout, color, postProcessor, disableAnimatedEmoji, fontScale, maxFontSizeMultiplier}) { // fn#84049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11164:1262, offset: 0x01f35e29, size: 322 bytes, params: 2, frame: 23
|
||||
const r6 = layout !== undefined ? layout : (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes.COMPACT;
|
||||
disableAnimatedEmoji = disableAnimatedEmoji === undefined || disableAnimatedEmoji;
|
||||
fontScale = fontScale === undefined ? 1 : fontScale;
|
||||
if (content === '') {
|
||||
return null;
|
||||
}
|
||||
const object3 = {'allowLinks': true, 'allowDevLinks': false, 'allowEmojiLinks': false, 'allowGameMentions': false,
|
||||
'mentionChannels': null, 'mentionGames': null, 'soundboardSounds': null, 'formatInline': true,
|
||||
'noStyleAndInteraction': true, 'allowHeading': true, 'allowList': true, 'disableAutoBlockNewlines': true,
|
||||
'previewLinkTarget': false};
|
||||
object3.mentionChannels = [];
|
||||
const Map = global.Map;
|
||||
object3.mentionGames = new Map();
|
||||
object3.soundboardSounds = [];
|
||||
object3.disableAnimatedEmoji = disableAnimatedEmoji;
|
||||
object3.unknownUserMentionPlaceholder = true;
|
||||
object3.guildId = guildId;
|
||||
object3.channelId = channelId;
|
||||
object3.muted = muted != null && muted;
|
||||
const renderASTToReactBinding = renderASTToReact;
|
||||
const object4 = {};
|
||||
object4.tree = getOrParseMessagePreviewMarkupAST({content: content, layout: r6, color: color,
|
||||
initialParserState: object3, fontScale: fontScale, maxFontSizeMultiplier: maxFontSizeMultiplier,
|
||||
postProcessor: postProcessor});
|
||||
object4.initialParserState = object3;
|
||||
object4.layout = r6;
|
||||
object4.color = color;
|
||||
object4.fontScale = fontScale;
|
||||
object4.maxFontSizeMultiplier = maxFontSizeMultiplier;
|
||||
return renderASTToReactBinding(object4);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,38 @@
|
||||
/* Metro module 13776; source: modules/message_previews/useLatestChannelMessage.tsx; dependencies: [57, 31, 12562, 566, 13777, 2] */
|
||||
function _fun105072(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13973:6, offset: 0x022ac83f, size: 155 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 = (require(31) /* metro dependency 31 */).useEffect;
|
||||
const messagePreviewStore = importDefault(12562) /* metro dependency 12562: MessagePreviewStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_previews/useLatestChannelMessage.tsx');
|
||||
exports.default = useLatestChannelMessage;
|
||||
}
|
||||
|
||||
function useLatestChannelMessage({guild_id, id}) { // fn#105073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13973:232, offset: 0x022ac8da, size: 165 bytes, params: 2, frame: 17
|
||||
const value = a1;
|
||||
const env0_0 = value !== undefined ? value : false;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
||||
const value3 = undefined(Reflect.apply(useStateFromStoresArray, fluxModule, [[MessagePreviewStore], _fun105074]), 2);
|
||||
const property = value3[0];
|
||||
useEffect(_fun105075, [id, value3[1]]);
|
||||
return property;
|
||||
}
|
||||
|
||||
function _fun105074() { // fn#105074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13973:336, offset: 0x022ac97f, size: 89 bytes, params: 1, frame: 14
|
||||
return env0_0 ? [null, true] : [MessagePreviewStore.message(guild_id, id), MessagePreviewStore.isLatest(guild_id,
|
||||
id)];
|
||||
}
|
||||
|
||||
function _fun105075() { // fn#105075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13973:420, offset: 0x022ac9d8, size: 67 bytes, params: 1, frame: 12
|
||||
var value3;
|
||||
var defaultImport;
|
||||
if (!(id == null || env0_3)) {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(13777) /* metro dependency 13777: MessagePreviewManager */;
|
||||
defaultImport.addWant(id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user