Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,87 @@
|
||||
/* Metro module 4691; source: lib/uploader/native/CloudUploaderUtils.tsx; dependencies: [1949, 1226, 691, 4651, 22, 683, 2] */
|
||||
function _fun40565(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4869:6, offset: 0x011050d7, size: 183 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = getUploadPayload;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const developerOptionsStore = importDefault(691) /* metro dependency 691: DeveloperOptionsStore */;
|
||||
object2 = {getUploadPayload: closure};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/uploader/native/CloudUploaderUtils.tsx');
|
||||
exports.default = object2;
|
||||
exports.prepareMessagePayload = prepareMessagePayload;
|
||||
exports.getUploadPayload = closure;
|
||||
}
|
||||
|
||||
function _prepareMessageRequestBodyCloud(a0, a1, a2) { // fn#40566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4869:126, offset: 0x0110518e, size: 166 bytes, params: 4, frame: 21
|
||||
var r0;
|
||||
var object3;
|
||||
var object4;
|
||||
var value;
|
||||
var value2;
|
||||
var items2;
|
||||
const items3 = [];
|
||||
a0.forEach(_fun40567);
|
||||
if (a2 == null) {
|
||||
object3 = {};
|
||||
copyDataProperties(object3, a1, undefined);
|
||||
object3['attachments'] = items3;
|
||||
r0 = object3;
|
||||
} else if (a1 != null) {
|
||||
object4 = {};
|
||||
copyDataProperties(object4, a1, undefined);
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value2 = value.get(object4, a2, []);
|
||||
items2 = [];
|
||||
arraySpread(items2, items3, arraySpread(items2, value2, 0, value), value);
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.set(object4, a2, items2);
|
||||
r0 = value;
|
||||
} else {
|
||||
object3 = {};
|
||||
copyDataProperties(object3, a1, undefined);
|
||||
object3['attachments'] = items3;
|
||||
r0 = object3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getUploadPayload({filename, currentSize}) { // fn#40568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4869:425, offset: 0x0110527b, size: 73 bytes, params: 2, frame: 12
|
||||
const object2 = {};
|
||||
object2.filename = filename;
|
||||
object2.file_size = currentSize;
|
||||
object2.id = (importDefault(22) /* metro dependency 22 */).uniqueId();
|
||||
object2.original_content_type = undefined;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function prepareMessagePayload(a0, a1, a2, a3) { // fn#40569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4869:711, offset: 0x011052c4, size: 152 bytes, params: 5, frame: 18
|
||||
const value2 = _prepareMessageRequestBodyCloud(a1, a2, a3);
|
||||
const object = {Authorization: a0};
|
||||
const getDebugOptionsHeaderValue = DeveloperOptionsStore.getDebugOptionsHeaderValue;
|
||||
object['X-Debug-Options'] = Reflect.apply(getDebugOptionsHeaderValue, DeveloperOptionsStore, []);
|
||||
object['Accept-Language'] = LocaleStore.locale;
|
||||
const superPropertiesBase64 = (importDefault(683) /* metro dependency 683: AnalyticsUtils */).getSuperPropertiesBase64();
|
||||
if (superPropertiesBase64 != null) {
|
||||
object['X-Super-Properties'] = superPropertiesBase64;
|
||||
}
|
||||
const fingerprint = AuthenticationStore.getFingerprint();
|
||||
if (fingerprint != null) {
|
||||
object['X-Fingerprint'] = fingerprint;
|
||||
}
|
||||
return {headers: object, body: value2};
|
||||
}
|
||||
|
||||
function _fun40567(a0, a1) { // fn#40567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4869:201, offset: 0x01105234, size: 71 bytes, params: 3, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(4651) /* metro dependency 4651: UploadUtils */;
|
||||
const attachmentPayload = value.getAttachmentPayload(a0, a1);
|
||||
const binding = env0_0;
|
||||
const push = binding.push;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, attachmentPayload, value);
|
||||
Reflect.apply(push, binding, [object2]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user