// Module ID: 5259 // Function ID: 5260 // Name: CloudUploaderUtils // Dependencies: [2026, 502, 1346, 5214, 12, 1241, 2] // Exports: getUploadPayload, prepareMessagePayload // Module 5259 (CloudUploaderUtils) import _modDef12 from "module_12" /* 12 */; import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */; import UploadUtils from "UploadUtils" /* 5214 */; import LocaleStore from "LocaleStore" /* 2026 */; import AuthenticationStore from "AuthenticationStore" /* 502 */; import DeveloperOptionsStore from "DeveloperOptionsStore" /* 1346 */; require = fn; function getUploadPayload(self) { const obj = { filename: self.filename, file_size: self.currentSize, id: _modDef12.uniqueId(), original_content_type: "a" }; return obj; } const size = fn(2); let result = size.fileFinishedImporting("lib/uploader/native/CloudUploaderUtils.tsx"); export default { getUploadPayload }; export const prepareMessagePayload = function prepareMessagePayload(Authorization, arr, arg2, arg3) { const items = []; const item = arr.forEach((item, index) => { const merged = Object.assign(UploadUtils.getAttachmentPayload(item, index)); items.push({}); }); if (null != arg3) { if (null != arg2) { const obj = {}; let merged = Object.assign(arg2); const items1 = []; HermesBuiltin.arraySpread(items, HermesBuiltin.arraySpread(_modDef12.get(obj, arg3, []), 0)); let result = _modDef12.set(obj, arg3, items1); } const obj2 = { Authorization, "X-Debug-Options": DeveloperOptionsStore.getDebugOptionsHeaderValue(), "Accept-Language": LocaleStore.locale }; const superPropertiesBase64 = AnalyticsUtilsDefault.getSuperPropertiesBase64(); if (null != superPropertiesBase64) { obj2["X-Super-Properties"] = superPropertiesBase64; } const fingerprint = AuthenticationStore.getFingerprint(); if (null != fingerprint) { obj2["X-Fingerprint"] = fingerprint; } const obj5 = { headers: obj2, body: result }; return obj5; } result = {}; const merged1 = Object.assign(arg2); result.attachments = items; }; export { getUploadPayload };