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,198 @@
/* Metro module 7618; source: lib/uploader_inline/InlineUploader.tsx; dependencies: [5, 6, 7, 4680, 7619, 2] */
function _fun61016(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:6, offset: 0x017183d8, size: 170 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(7) /* metro dependency 7 */;
const env0_6 = RegExp('^[a-f0-9]{32}$', '');
const value = _fun61017();
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/uploader_inline/InlineUploader.tsx');
exports.default = value;
}
function _fun61017() { // fn#61017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:152, offset: 0x01718482, size: 151 bytes, params: 1, frame: 18
const closure = InlineUploader;
const binding = env0_5;
const env0_0 = env0_3(_fun61021);
return binding(closure, [{key: 'getOriginalMd5', value: function() {
return this.originalMd5Promise;
}}, {key: 'buildHeaders', value: value_61022}], [{key: 'fromBlob', value: value_61023}, {key: 'buildHeadersForMd5',
value: value_61025}]);
}
function InlineUploader(a0, a1) { // fn#61018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:163, offset: 0x01718519, size: 45 bytes, params: 3, frame: 13
env1_4(this, InlineUploader);
this.surface = a0;
this.originalMd5Promise = a1;
}
function* _fun61021(a0) { // fn#61021, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:385, offset: 0x0171855a, size: 57 bytes, params: 2, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__;
const buildHeadersForMd5 = importDefault.buildHeadersForMd5;
yield this.originalMd5Promise;
value = undefined;
if (false) {
return value;
}
return Reflect.apply(buildHeadersForMd5, importDefault, [value, a0]);
}
function value_61023(a0, a1) { // fn#61023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:557, offset: 0x01718593, size: 89 bytes, params: 3, frame: 13
var environment;
let value = environment.__proto__;
value = importDefault(4680) /* metro dependency 4680: DiscordMd5 */;
value = value.fromBlob(a1);
value = value.catch(function() {
return null;
});
const value2 = Object.create(InlineUploader.prototype, {constructor: {value: InlineUploader}});
const inlineUploader = new InlineUploader(a0);
return inlineUploader instanceof Object ? inlineUploader : value2;
}
function value_61025(a0, a1) { // fn#61025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:672, offset: 0x017185ec, size: 80 bytes, params: 3, frame: 16
var environment;
var r0;
var object2;
let value = a1;
const value2 = serializeOriginalMd5Header(a0);
if (value2 == null) {
r0 = value;
} else {
object2 = {};
copyDataProperties(object2, value, undefined);
value = environment.__proto__;
object2[(require(7619) /* metro dependency 7619: originalMd5Header */).ORIGINAL_MD5_HEADER] = value2;
r0 = object2;
}
return r0;
}
function serializeOriginalMd5Header(a0) { // fn#61026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:692, owner: value_61025.serializeOriginalMd5Header, offset: 0x0171863c, size: 224 bytes, params: 2, frame: 21
var environment;
var r4;
var r1;
var property;
var property2;
var value6;
var binding;
var value7;
var value8;
var value9;
let value = a0;
let value2 = null;
if (value2 == value) {
return value2;
}
if (typeof value === 'string') {
value9 = environment.__proto__.__proto__;
binding = env2_6;
return binding.test(value) ? value : value2;
}
const items2 = [];
const Object = global.Object;
let value3 = Object.keys(value);
let length = value3.length;
const value4 = 0;
if (value4 < length) {
r4 = value4;
while (true) {
property = value3[r4];
property2 = value[property];
value6 = value2 != property2;
if (value6) {
binding = env2_6;
value7 = binding.test(property2);
r1 = value7;
} else {
r1 = value6;
}
if (!r1) {
continue;
}
items2.push([property, property2]);
value8 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = value3.length;
if (value8 < length) {
r4 = value8;
continue;
}
break;
}
}
if (value4 === items2.length) {
r1 = value2;
} else {
items2.sort(function(a0, a1) {
var iterator = a0[Symbol.iterator]();
var item2 = iterator.next();
var item = item2.value;
item2 = item2.done ? undefined : iterator;
var value = undefined;
var value2 = item2 === value;
var r1 = value2 ? value : item;
if (!value2) {
item2.return();
}
iterator = a1[Symbol.iterator]();
var item3 = iterator.next();
item = item3.value;
item3 = item3.done ? undefined : iterator;
var value3 = item3 === value;
var r2 = value3 ? value : item;
if (!value3) {
item3.return();
}
return r1 < r2 ? -1 : r1 > r2 ? 1 : 0;
});
value = items2.map(_fun61028);
value = value.join(', ');
r1 = value;
}
return r1;
}
function _fun61028(a0) { // fn#61028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:971, offset: 0x0171877a, size: 109 bytes, params: 2, frame: 18
var r0;
var r2;
var r5;
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;
const r1 = value2 ? value : item;
if (value2) {
r0 = item2;
r2 = value2;
r5 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r2 = value3;
r5 = value;
} else {
r0 = item3;
r2 = value3;
r5 = item;
}
}
if (!r2) {
r0.return();
}
return '' + r1.toLowerCase() + '="' + r5 + '"';
}
@@ -0,0 +1,8 @@
/* Metro module 7619; source: lib/uploader_inline/originalMd5Header.tsx; dependencies: [2] */
function _fun61029(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7797:6, offset: 0x017187e7, size: 84 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/uploader_inline/originalMd5Header.tsx');
exports.ORIGINAL_MD5_HEADER = 'X-Discord-Original-MD5';
}
@@ -0,0 +1,49 @@
/* Metro module 7615; source: lib/uploader_inline/safetyScannedUploadSurfaces.tsx; dependencies: [7616, 2] */
function _fun61011(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7793:6, offset: 0x01717e6e, size: 221 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(7616) /* metro dependency 7616: ImageCroppingConstants */).UploadTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/uploader_inline/safetyScannedUploadSurfaces.tsx');
exports.SafetyScannedUploadSurface = {USER_DEFAULT_PROFILE_AVATAR: 'USER_DEFAULT_PROFILE_AVATAR',
USER_DEFAULT_PROFILE_BANNER: 'USER_DEFAULT_PROFILE_BANNER',
USER_GUILD_PROFILE_AVATAR: 'USER_GUILD_PROFILE_AVATAR', USER_GUILD_PROFILE_BANNER: 'USER_GUILD_PROFILE_BANNER',
GUILD_ICON: 'GUILD_ICON', GUILD_BANNER: 'GUILD_BANNER', GUILD_DISCOVERY_SPLASH: 'GUILD_DISCOVERY_SPLASH',
GUILD_INVITE_SPLASH: 'GUILD_INVITE_SPLASH', EMOJI: 'EMOJI', STICKER: 'STICKER'};
exports.getSafetyScannedUploadSurfaceForProfileCustomization = getSafetyScannedUploadSurfaceForProfileCustomization;
}
function getSafetyScannedUploadSurfaceForProfileCustomization(a0, a1) { // fn#61012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7793:735, offset: 0x01717f4b, size: 192 bytes, params: 3, frame: 4
const AVATAR = UploadTypes.AVATAR;
if (AVATAR === a0) {
return a1 != null ? env0_1.USER_GUILD_PROFILE_AVATAR : env0_1.USER_DEFAULT_PROFILE_AVATAR;
}
const BANNER = UploadTypes.BANNER;
if (BANNER === a0) {
return a1 != null ? env0_1.USER_GUILD_PROFILE_BANNER : env0_1.USER_DEFAULT_PROFILE_BANNER;
}
const GUILD_BANNER = UploadTypes.GUILD_BANNER;
if (GUILD_BANNER === a0) {
return null;
}
const VIDEO_BACKGROUND = UploadTypes.VIDEO_BACKGROUND;
if (VIDEO_BACKGROUND === a0) {
return null;
}
const SCHEDULED_EVENT_IMAGE = UploadTypes.SCHEDULED_EVENT_IMAGE;
if (SCHEDULED_EVENT_IMAGE === a0) {
return null;
}
const HOME_HEADER = UploadTypes.HOME_HEADER;
if (HOME_HEADER === a0) {
return null;
}
const AVATAR_DECORATION = UploadTypes.AVATAR_DECORATION;
if (AVATAR_DECORATION === a0) {
return null;
}
const GUILD_ICON = UploadTypes.GUILD_ICON;
if (GUILD_ICON === a0) {
return null;
}
}