Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,238 @@
|
||||
/* Metro module 4621; source: modules/message_request/MessageRequestStore.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 1228, 2] */
|
||||
function _fun39651(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#39651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:6, offset: 0x010e7835, size: 404 bytes, params: 8, frame: 19
|
||||
const _arrayLikeToArray_39657 = 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 isMessageRequest = function(a0) {
|
||||
return a0.isMessageRequest && !a0.isSpam;
|
||||
};
|
||||
const handleChannelCreate = function({channel}) {
|
||||
return processChannel(channel);
|
||||
};
|
||||
const handleChannelUpdates = function({channels}) {
|
||||
var r2;
|
||||
var value4;
|
||||
var value2 = _createForOfIteratorHelperLoose_39655(channels);
|
||||
var value3 = value2();
|
||||
if (!value3.done) {
|
||||
for (r2 = value3; true; r2 = value4) {
|
||||
processChannel(r2.value);
|
||||
value4 = value2();
|
||||
if (value4.done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
const handleOverlayInitialize_39666 = function({messageRequestChannelIds}) {
|
||||
messageRequestChannelIds.forEach(_fun39667);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
let value = importDefault(1228) /* metro dependency 1228: MobileCacheSnapshotStore */;
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
value = _fun39668(value);
|
||||
value.displayName = 'MessageRequestStore';
|
||||
value.LATEST_SNAPSHOT_VERSION = 1;
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/MessageRequestStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_39652() { // fn#39652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:170, offset: 0x010e79c9, size: 94 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_39652_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_39655(a0, a1) { // fn#39655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:363, offset: 0x010e7a27, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun39656;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_39657(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_39657(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_39657(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun39656;
|
||||
}
|
||||
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 handleConnectionOpen_39660() { // fn#39660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:1581, offset: 0x010e7c6a, size: 90 bytes, params: 1, frame: 13
|
||||
env0_6.clear();
|
||||
env0_7.clear();
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const getMutablePrivateChannels = ChannelStore.getMutablePrivateChannels;
|
||||
Reflect.apply(values, Object, [Reflect.apply(getMutablePrivateChannels, ChannelStore, [])]).forEach(function(a0) {
|
||||
processChannel(a0);
|
||||
});
|
||||
}
|
||||
|
||||
function handleChannelDelete({channel}) { // fn#39665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:1986, offset: 0x010e7d4e, size: 62 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
const binding = env0_6;
|
||||
const value2 = binding.has(channel.id);
|
||||
if (value2) {
|
||||
env0_6.delete(channel.id);
|
||||
r0 = true;
|
||||
} else {
|
||||
r0 = !!value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function handleOverlayInitialize_39666({messageRequestChannelIds}) { // fn#39666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:2069, offset: 0x010e7d8c, size: 32 bytes, params: 2, frame: 11
|
||||
messageRequestChannelIds.forEach(_fun39667);
|
||||
}
|
||||
|
||||
function _fun39668(a0) { // fn#39668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:2163, offset: 0x010e7dc2, size: 233 bytes, params: 2, frame: 16
|
||||
const closure = MessageRequestStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(ChannelStore);
|
||||
}}, {key: 'loadCache', value: value_39672}, {key: 'takeSnapshot', value: value_39673},
|
||||
{key: 'getMessageRequestChannelIds', value: value_39674}, {key: 'getMessageRequestsCount', value: value_39675},
|
||||
{key: 'isMessageRequest', value: value_39676}, {key: 'isAcceptedOptimistic', value: value_39677},
|
||||
{key: 'isReady', value: value_39678}]);
|
||||
}
|
||||
|
||||
function _fun39667(a0) { // fn#39667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:2143, offset: 0x010e7dac, size: 22 bytes, params: 2, frame: 11
|
||||
return env1_6.add(a0);
|
||||
}
|
||||
|
||||
function MessageRequestStore() { // fn#39669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4799:2175, offset: 0x010e7eab, size: 189 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
env1_0(this, MessageRequestStore);
|
||||
const handleConnectionOpen_39660Binding = handleConnectionOpen_39660;
|
||||
const items2 = [{CONNECTION_OPEN: handleConnectionOpen_39660Binding,
|
||||
CONNECTION_OPEN_SUPPLEMENTAL: handleConnectionOpen_39660Binding, CACHE_LOADED_LAZY: CACHE_LOADED_LAZY_39670,
|
||||
OVERLAY_INITIALIZE: handleOverlayInitialize_39666, CHANNEL_CREATE: handleChannelCreate,
|
||||
CHANNEL_UPDATES: handleChannelUpdates, CHANNEL_DELETE: handleChannelDelete,
|
||||
MESSAGE_REQUEST_ACCEPT_OPTIMISTIC: handleMessageRequestAcceptOptimistic}];
|
||||
const value3 = env1_3(MessageRequestStore);
|
||||
return env1_2(this, _isNativeReflectConstruct_39652() ? global.Reflect.construct(value3, items2,
|
||||
env1_3(this).constructor) : value3.apply(this, items2));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user