Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,195 @@
|
||||
/* Metro module 15138; source: modules/friends/getFriendStatusCounts.tsx; dependencies: [4396, 3793, 661, 2] */
|
||||
function _fun115392(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15335:6, offset: 0x0245f3e1, size: 166 bytes, params: 8, frame: 19
|
||||
const _arrayLikeToArray_115395 = 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 presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).StatusTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/friends/getFriendStatusCounts.tsx');
|
||||
exports.default = getFriendStatusCounts;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_115393(a0, a1) { // fn#115393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15335:143, offset: 0x0245f487, 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 _fun115394;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_115395(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_115395(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_115395(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun115394;
|
||||
}
|
||||
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 getFriendStatusCounts() { // fn#115396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15335:1140, offset: 0x0245f5fb, size: 221 bytes, params: 1, frame: 23
|
||||
var r4;
|
||||
var r5;
|
||||
var r6;
|
||||
var r7;
|
||||
var r11;
|
||||
var r12;
|
||||
var r13;
|
||||
var r1;
|
||||
var r2;
|
||||
var r3;
|
||||
var value6;
|
||||
var status;
|
||||
var ONLINE;
|
||||
var IDLE;
|
||||
var DND;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
const value3 = _createForOfIteratorHelperLoose_115393(RelationshipStore.getFriendIDs());
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
const value5 = 0;
|
||||
if (done) {
|
||||
r1 = value5;
|
||||
r2 = value5;
|
||||
r3 = value5;
|
||||
} else {
|
||||
r4 = value5;
|
||||
r5 = value5;
|
||||
r6 = value5;
|
||||
r7 = value4;
|
||||
while (true) {
|
||||
value6 = r7.value;
|
||||
status = PresenceStore.getStatus(value6);
|
||||
ONLINE = StatusTypes.ONLINE;
|
||||
if (ONLINE !== status) {
|
||||
IDLE = StatusTypes.IDLE;
|
||||
if (IDLE === status) {
|
||||
value9 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
||||
r11 = r4;
|
||||
r12 = value9;
|
||||
r13 = r6;
|
||||
break;
|
||||
}
|
||||
DND = StatusTypes.DND;
|
||||
if (DND !== status) {
|
||||
r11 = r4;
|
||||
r12 = r5;
|
||||
r13 = r6;
|
||||
break;
|
||||
}
|
||||
value8 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
||||
r11 = value8;
|
||||
r12 = r5;
|
||||
r13 = r6;
|
||||
break;
|
||||
}
|
||||
value10 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
||||
r11 = r4;
|
||||
r12 = r5;
|
||||
r13 = value10;
|
||||
value11 = value3();
|
||||
done = value11.done;
|
||||
if (done) {
|
||||
r1 = r11;
|
||||
r2 = r12;
|
||||
r3 = r13;
|
||||
break;
|
||||
}
|
||||
r4 = r11;
|
||||
r5 = r12;
|
||||
r6 = r13;
|
||||
r7 = value11;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return {num_friends_online: r3, num_friends_idle: r2, num_friends_dnd: r1};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user