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

62 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 4998
// Function ID: 4999
2026-07-29 08:29:29 +00:00
// Name: getUploadPayload
2026-08-25 06:04:03 +00:00
// Dependencies: [1996, 1218, 706, 4955, 12, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: getUploadPayload, prepareMessagePayload
2026-08-25 06:04:03 +00:00
// Module 4998 (getUploadPayload)
2026-08-24 06:08:38 +00:00
import applyDefault from "apply" /* 12 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
2026-08-25 06:04:03 +00:00
import closure_3 from "_getSystemLocale" /* 1996 */;
2026-08-24 06:08:38 +00:00
import closure_4 from "fetchFingerprint" /* 1218 */;
import closure_5 from "refreshSourceMapCookie" /* 706 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-25 06:04:03 +00:00
function getUploadPayload(c0) {
const obj = { filename: c0.filename, file_size: c0.currentSize, id: applyDefault.uniqueId(), original_content_type: "a" };
2026-07-29 08:29:29 +00:00
return obj;
}
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("lib/uploader/native/CloudUploaderUtils.tsx");
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
let obj = items(closure_1_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-08-24 06:08:38 +00:00
HermesBuiltin.arraySpread(items, HermesBuiltin.arraySpread(applyDefault.get(obj, arg3, []), 0));
const obj3 = applyDefault;
let result = applyDefault.set(obj, arg3, items1);
const obj4 = applyDefault;
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;
2026-08-24 06:08:38 +00:00
const superPropertiesBase64 = expandEventPropertiesDefault.getSuperPropertiesBase64();
2026-07-29 08:29:29 +00:00
if (null != superPropertiesBase64) {
obj["X-Super-Properties"] = superPropertiesBase64;
}
fingerprint = fingerprint.getFingerprint();
if (null != fingerprint) {
obj["X-Fingerprint"] = fingerprint;
}
2026-08-24 06:08:38 +00:00
obj1 = { headers: null, body: null };
2026-07-29 08:29:29 +00:00
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 };