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,23 @@
/* Metro module 14234; source: modules/devtools/dev_settings/DevSettingsActions.tsx; dependencies: [4649, 694, 2] */
function _fun107649(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14431:6, offset: 0x023040ba, size: 131 bytes, params: 8, frame: 19
const closure = toggle_107650;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const devSettingsStore = importDefault(4649) /* metro dependency 4649: DevSettingsStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/devtools/dev_settings/DevSettingsActions.tsx');
exports.toggle = closure;
exports.clearAll = function() {
var propertyName;
for (propertyName in DevSettingsStore.enabled()) {
toggle_107650(propertyName, false);
}
};
}
function toggle_107650(a0, a1) { // fn#107650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14431:106, offset: 0x0230413d, size: 95 bytes, params: 3, frame: 15
let value = a1;
const r4 = typeof value === 'boolean' ? value : !DevSettingsStore.get(a0);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'DEV_TOOLS_DEV_SETTING_SET', toggle: a0, value: r4});
}
@@ -0,0 +1,281 @@
/* Metro module 4649; source: modules/devtools/dev_settings/DevSettingsStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
function _fun40108(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4827:6, offset: 0x010f65d4, size: 1127 bytes, params: 8, frame: 22
var object4;
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 */;
object4 = {MESSAGING: 0};
object4[0] = 'MESSAGING';
object4.OVERLAYS = 1;
object4[1] = 'OVERLAYS';
object4.PREMIUM = 2;
object4[2] = 'PREMIUM';
object4.REPORTING = 3;
object4[3] = 'REPORTING';
object4.APP_COLLECTIONS = 4;
object4[4] = 'APP_COLLECTIONS';
object4.SHOP = 5;
object4[5] = 'SHOP';
object4.LIBDISCORE = 6;
object4[6] = 'LIBDISCORE';
const object5 = {};
let REPORTING = object4.REPORTING;
object5[REPORTING] = 'Reporting Toggles';
let OVERLAYS = object4.OVERLAYS;
object5[OVERLAYS] = 'Dev Overlays';
let MESSAGING = object4.MESSAGING;
object5[MESSAGING] = 'Messaging Toggles';
let APP_COLLECTIONS = object4.APP_COLLECTIONS;
object5[APP_COLLECTIONS] = 'App Collections Toggles';
let PREMIUM = object4.PREMIUM;
object5[PREMIUM] = 'Premium Toggles';
let SHOP = object4.SHOP;
object5[SHOP] = 'Shop Toggles';
let LIBDISCORE = object4.LIBDISCORE;
object5[LIBDISCORE] = 'Libdiscore Toggles';
const object6 = {};
OVERLAYS = object4.OVERLAYS;
object6.visual_effect_view_overrides = {label: 'Blur view overrides for designers to test with', category: OVERLAYS};
OVERLAYS = object4.OVERLAYS;
object6.obscure_blur_effect_explicit_content_enabled = {label: 'Force explicit content obscure blur effect on for message media and embeds',
category: OVERLAYS};
OVERLAYS = object4.OVERLAYS;
object6.obscure_blur_effect_gore_content_enabled = {label: 'Force gore content obscure blur effect on for message media and embeds',
category: OVERLAYS};
OVERLAYS = object4.OVERLAYS;
object6.obscure_blur_effect_self_harm_content_enabled = {label: 'Force self harm content obscure blur effect on for message media and embeds',
category: OVERLAYS};
OVERLAYS = object4.OVERLAYS;
object6.explicit_media_redaction_ignore_pending_scan = {label: 'Ignore pending scan on explicit media',
category: OVERLAYS};
OVERLAYS = object4.OVERLAYS;
object6.analytics_debugger = {label: 'Enable analytics debugger view', category: OVERLAYS};
OVERLAYS = object4.OVERLAYS;
object6.idle_status_indicator = {label: 'Enable idle status indicator', category: OVERLAYS};
MESSAGING = object4.MESSAGING;
object6.upload_fail_50 = {label: 'Uploads: Fail 50% of uploads with 500 status after a 1 second delay',
category: MESSAGING};
MESSAGING = object4.MESSAGING;
object6.send_fail_100 = {label: 'Send: Fail with 500 status', category: MESSAGING};
PREMIUM = object4.PREMIUM;
object6.premium_roadblocks = {label: 'Enable all new premium roadblocks', category: PREMIUM};
PREMIUM = object4.PREMIUM;
object6.force_mock_iap = {label: '[iOS] Force mock IAP products', category: PREMIUM};
REPORTING = object4.REPORTING;
object6.iar_testing = {label: 'Enable staff only test iar menu options', category: REPORTING};
REPORTING = object4.REPORTING;
object6.iar_skip_api_report_submit = {label: 'Enable to skip calling the API to skip submitting actual IAR reports',
category: REPORTING};
REPORTING = object4.REPORTING;
object6.iar_show_report_sub_type_labels = {label: 'Show IAR report sub type labels', category: REPORTING};
APP_COLLECTIONS = object4.APP_COLLECTIONS;
object6.only_show_preview_app_collections = {label: "Only show application collections (e.g. in App Directory, App Launcher in text) that have the 'preview' active state. This disables application collections cache, too, so you can see collections updates immediately.",
category: APP_COLLECTIONS};
APP_COLLECTIONS = object4.APP_COLLECTIONS;
object6.disable_app_collections_cache = {label: 'Disable application collections cache so that you can see updates to collections immediately.',
category: APP_COLLECTIONS};
SHOP = object4.SHOP;
object6.shop_disable_cache = {label: 'Disable collectibles shop cache', category: SHOP};
SHOP = object4.SHOP;
object6.shop_include_unpublished = {label: 'Show unpublished items in collectibles shop', category: SHOP};
SHOP = object4.SHOP;
object6.shop_show_debug_overlay = {label: 'Show debug log overlay in collectibles shop', category: SHOP};
SHOP = object4.SHOP;
object6.bypass_google_sku_sync = {label: '[Android] Bypass Google SKU sync in collectibles shop', category: SHOP};
LIBDISCORE = object4.LIBDISCORE;
object6.libdiscore_verbose_telemetry_logging = {label: 'Enable verbose telemetry logging for libdiscore',
category: LIBDISCORE};
const env0_6 = {};
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
let value = _fun40112(DeviceSettingsStore);
value.displayName = 'DevToolsDevSettingsStore';
value.persistKey = 'DevToolsDevSettingsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{DEV_TOOLS_DEV_SETTING_SET: DEV_TOOLS_DEV_SETTING_SET});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/devtools/dev_settings/DevSettingsStore.tsx');
exports.default = value;
exports.DevSettingsCategory = object4;
exports.CATEGORY_LABELS = object5;
exports.toggles = object6;
}
function _isNativeReflectConstruct_40109() { // fn#40109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4827:148, offset: 0x010f6a3b, 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_40109_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun40112(a0) { // fn#40112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4827:3230, offset: 0x010f6a99, size: 160 bytes, params: 2, frame: 16
const closure = DevSettingsStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'getUserAgnosticState', value: value_40114}, {key: 'initialize', value: value_40115},
{key: 'get', value: value_40116}, {key: 'enabled', value: value_40117}, {key: 'allByCategory',
value: value_40118}]);
}
function DEV_TOOLS_DEV_SETTING_SET(a0) { // fn#40121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4827:4141, offset: 0x010f6cc1, size: 59 bytes, params: 2, frame: 3
if (a0.value !== false) {
env0_6[a0.toggle] = a0.value;
} else {
delete env0_6[a0.toggle];
}
}
function value_40115(a0) { // fn#40115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4827:3610, offset: 0x010f6b49, size: 104 bytes, params: 2, frame: 15
var r6;
var r11;
var r12;
var propertyName;
var propertyName2;
var toggleStates;
var property;
var value3;
const binding = env1_5;
const value2 = undefined;
for (propertyName in binding) {
if (a0 == null) {
r11 = value2;
continue;
}
toggleStates = a0.toggleStates;
if (toggleStates == null) {
r11 = value2;
continue;
}
property = toggleStates[propertyName];
r11 = property;
value3 = r11 != null;
if (value3) {
r12 = r11;
continue;
}
r12 = value3;
continue;
if (!r12) {
r6 = propertyName2;
continue;
}
env1_6[propertyName] = r12;
r6 = propertyName2;
}
return value2;
}
function value_40118(a0) { // fn#40118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4827:3854, offset: 0x010f6bcd, size: 67 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const Object = global.Object;
const entries = Object.entries;
let value = environment.__proto__;
value = Reflect.apply(entries, Object, [env1_5]);
value = value.filter(_fun40119);
return value.map(_fun40120);
}
function _fun40119(a0) { // fn#40119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4827:3899, offset: 0x010f6c10, size: 73 bytes, params: 2, frame: 6
var r0;
var r1;
var r2;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
if (value2) {
r0 = value;
r1 = item2;
r2 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = value;
r1 = item3;
r2 = value3;
} else {
r0 = item;
r1 = item3;
r2 = value3;
}
}
if (!r2) {
r1.return();
}
return r0.category === env0_0;
}
function _fun40120(a0) { // fn#40120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4827:3930, offset: 0x010f6c59, size: 104 bytes, params: 2, frame: 7
var r0;
var r1;
var r2;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
let value = undefined;
const value2 = item2 === value;
const r3 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value;
r2 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r1 = value;
r2 = value3;
} else {
r0 = item3;
r1 = item;
r2 = value3;
}
}
if (!r2) {
r0.return();
}
value = environment.__proto__.__proto__;
const property = env2_6[r3];
return [r3, property != null && property, r1];
}