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,11 @@
/* Metro module 12611; source: modules/presence/ContentClassificationPresenceFilterExperiment.tsx; dependencies: [1854, 2] */
function _fun96749(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12801:6, offset: 0x021650ca, size: 155 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
value = value.createApexExperiment({'kind': 'user', 'name': '2026-02-content-classification-presence-filter',
defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/presence/ContentClassificationPresenceFilterExperiment.tsx');
exports.ContentClassificationPresenceFilterExperiment = value;
}
@@ -0,0 +1,193 @@
/* Metro module 12610; source: modules/presence/splitAgeRestrictedActivities.tsx; dependencies: [5203, 5205, 12611, 2] */
function _fun96743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12800:6, offset: 0x02164d48, size: 129 bytes, params: 8, frame: 18
const env0_0 = require;
const _arrayLikeToArray_96746 = 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});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/presence/splitAgeRestrictedActivities.tsx');
exports.default = splitAgeRestrictedActivities;
}
function _createForOfIteratorHelperLoose_96744(a0, a1) { // fn#96744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12800:46, offset: 0x02164dc9, 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 _fun96745;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_96746(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_96746(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_96746(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun96745;
}
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 isActivitySafeForAllAudiences(a0) { // fn#96747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12800:956, offset: 0x02164f3d, size: 164 bytes, params: 2, frame: 18
var r0;
var contentClassificationToAgeRestriction;
var object2;
const content_classification = a0.content_classification;
let r1 = content_classification == null || !content_classification.loaded;
value = !r1;
if (r1) {
r0 = value;
} else {
value = a0.content_classification.data == null;
if (value) {
r1 = value;
} else {
value = require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */;
contentClassificationToAgeRestriction = value.contentClassificationToAgeRestriction;
object2 = {};
object2.type = (require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */).ContentClassificationVariant.MINIMAL;
object2.data = a0.content_classification.data;
value = Reflect.apply(contentClassificationToAgeRestriction, value, [object2]);
value = value === (require(5205) /* metro dependency 5205: AgeRestrictionStatus */).AgeRestrictionStatus.EVERYONE;
r1 = value;
}
r0 = r1;
}
return r0;
}
function splitAgeRestrictedActivities(a0, a1) { // fn#96748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12800:1421, offset: 0x02164fe1, size: 233 bytes, params: 3, frame: 20
var r9;
var r4;
var r0;
var items2;
var value2;
var value3;
var done;
var value4;
var value5;
var object3;
const ContentClassificationPresenceFilterExperiment = (require(12611) /* metro dependency 12611: ContentClassificationPresenceFilterExperiment */).ContentClassificationPresenceFilterExperiment;
const getConfig = ContentClassificationPresenceFilterExperiment.getConfig;
let object = {location: 'presence_filtering'};
if (Reflect.apply(getConfig, ContentClassificationPresenceFilterExperiment, [object]).enabled) {
object = [];
items2 = [];
value2 = _createForOfIteratorHelperLoose_96744(a0);
value3 = value2();
done = value3.done;
if (!done) {
r4 = value3;
while (true) {
value4 = r4.value;
if (isActivitySafeForAllAudiences(value4)) {
object.push(value4);
} else {
items2.push(value4);
}
value5 = value2();
done = value5.done;
if (done) {
r9 = value5;
break;
}
r4 = value5;
continue;
}
}
if (items2.length === 0) {
r0 = {activities: a0, hiddenActivities: a1};
} else {
object3 = {activities: object};
object = [];
arraySpread(object, items2, arraySpread(object, a1, 0, r9), r9);
object3.hiddenActivities = object;
r0 = object3;
}
return r0;
}
return {activities: a0, hiddenActivities: a1};
}