decord/source/lib/uploader/native/CloudUploaderUtils.tsx

61 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 4891
// Function ID: 4892
2026-07-29 08:29:29 +00:00
// Name: getUploadPayload
2026-08-08 06:10:11 +00:00
// Dependencies: [1975, 1218, 706, 4852, 12, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: getUploadPayload, prepareMessagePayload
2026-08-08 06:10:11 +00:00
// Module 4891 (getUploadPayload)
2026-07-29 08:29:29 +00:00
import _getSystemLocale from "_getSystemLocale";
import fetchFingerprint from "fetchFingerprint";
import refreshSourceMapCookie from "refreshSourceMapCookie";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
function getUploadPayload(outer1_0) {
2026-08-04 21:03:28 +00:00
const obj = { filename: outer1_0.filename, file_size: outer1_0.currentSize, id: null, original_content_type: "Array" };
2026-07-29 08:29:29 +00:00
obj[2] = importDefault(12).uniqueId();
return obj;
}
let result = require("refreshSourceMapCookie").fileFinishedImporting("lib/uploader/native/CloudUploaderUtils.tsx");
export default { getUploadPayload };
export const prepareMessagePayload = function prepareMessagePayload(arg0, arr) {
2026-07-20 16:05:17 +00:00
const items = [];
2026-07-29 08:29:29 +00:00
const item = arr.forEach((closure_0, closure_1) => {
2026-07-23 10:11:24 +00:00
let obj = items(outer1_2[3]);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(obj.getAttachmentPayload(closure_0, closure_1));
2026-07-20 16:05:17 +00:00
items.push(obj);
});
2026-07-29 08:29:29 +00:00
if (null != arg3) {
if (null != arg2) {
2026-07-23 10:11:24 +00:00
let obj = {};
2026-07-29 08:29:29 +00:00
let merged = Object.assign(arg2);
2026-07-20 16:05:17 +00:00
const items1 = [];
2026-07-29 08:29:29 +00:00
HermesBuiltin.arraySpread(items, HermesBuiltin.arraySpread(importDefault(12).get(obj, arg3, []), 0));
const obj3 = importDefault(12);
let result = importDefault(12).set(obj, arg3, items1);
const obj4 = importDefault(12);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { Authorization: null, "X-Debug-Options": null, "Accept-Language": null };
obj[0] = arg0;
obj[1] = debugOptionsHeaderValue.getDebugOptionsHeaderValue();
obj[2] = locale.locale;
const superPropertiesBase64 = importDefault(698).getSuperPropertiesBase64();
if (null != superPropertiesBase64) {
obj["X-Super-Properties"] = superPropertiesBase64;
}
fingerprint = fingerprint.getFingerprint();
if (null != fingerprint) {
obj["X-Fingerprint"] = fingerprint;
}
const obj1 = { headers: null, body: null };
obj1[0] = obj;
obj1[1] = result;
return obj1;
2026-07-20 16:05:17 +00:00
}
result = {};
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(arg2);
result.attachments = items;
2026-07-20 16:05:17 +00:00
};
export { getUploadPayload };