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,190 @@
/* Metro module 6878; source: modules/rich_presence/FirstPartyRichPresenceStore.tsx; dependencies: [6, 7, 15, 17, 18, 6879, 644, 566, 694, 2] */
function _fun54580(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7056:6, offset: 0x01368fbf, size: 311 bytes, params: 8, frame: 18
const _arrayLikeToArray_54586 = 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_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
object = [importDefault(6879) /* metro dependency 6879: StageChannelSelfRichPresenceStore */];
const env0_8 = [];
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
_fun54588(Store).displayName = 'FirstPartyRichPresenceStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rich_presence/FirstPartyRichPresenceStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_54581() { // fn#54581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7056:150, offset: 0x013690f6, 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_54581_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _createForOfIteratorHelperLoose_54584(a0, a1) { // fn#54584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7056:343, offset: 0x01369154, 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 _fun54585;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_54586(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_54586(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_54586(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun54585;
}
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 updateActivities() { // fn#54587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7056:1274, offset: 0x013692c6, size: 124 bytes, params: 1, frame: 17
var r3;
var value4;
var activity;
var value6;
const items2 = [];
const value2 = _createForOfIteratorHelperLoose_54584(env0_7);
const value3 = value2();
let done = value3.done;
if (!done) {
r3 = value3;
while (true) {
value4 = r3.value;
activity = value4.getActivity();
if (activity != null) {
items2.push(activity);
}
value6 = value2();
done = value6.done;
if (done) {
break;
}
r3 = value6;
continue;
}
}
return !(importDefault(644) /* metro dependency 644 */)(items2, env0_8) && true;
}
function _fun54588(a0) { // fn#54588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7056:1453, offset: 0x01369342, size: 91 bytes, params: 2, frame: 16
const closure = FirstPartyRichPresenceStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: value_54590}, {key: 'getActivities', value: value_54591}]);
}
function value_54590() { // fn#54590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7056:1818, offset: 0x0136939d, size: 30 bytes, params: 1, frame: 13
this.syncWith(env1_7, updateActivities);
}
@@ -0,0 +1,39 @@
/* Metro module 6883; source: modules/rich_presence/PresenceActivityFiltering.tsx; dependencies: [4234, 1909, 2] */
function _fun54654(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7061:6, offset: 0x0136b168, size: 112 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rich_presence/PresenceActivityFiltering.tsx');
exports.doesGameHaveRichPresence = doesGameHaveRichPresence;
}
function doesGameHaveRichPresence(a0, a1) { // fn#54655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7061:219, offset: 0x0136b1d8, size: 129 bytes, params: 3, frame: 14
const env0_0 = a1;
if (a0.id === null) {
return false;
}
if (a0.id === undefined) {
return false;
}
const application = ApplicationStore.getApplication(a0.id);
return application != null && application.linkedGames != null && application.linkedGames.length > 0 && application.linkedGames.find(_fun54656) !== undefined;
}
function _fun54656(a0) { // fn#54656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7061:416, offset: 0x0136b259, size: 79 bytes, params: 2, frame: 14
var environment;
const type = a0.type;
const value = environment.__proto__;
const GameLinkTypes = (require(1909) /* metro dependency 1909: Server */).GameLinkTypes;
const LINKED = GameLinkTypes.LINKED;
return type === LINKED && ((a0, a1) => {
var env0_0 = a0;
return a1.find(_fun54658) != null;
})(a0.id, require);
}
function hasRichPresenceForGame(a0, a1) { // fn#54657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7061:458, offset: 0x0136b2a8, size: 36 bytes, params: 3, frame: 11
const env0_0 = a0;
return a1.find(_fun54658) != null;
}