decord/source/__helpers/11xxx/11379__saveDocuments.js
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

41 lines
1.4 KiB
JavaScript

// Module ID: 11379
// Function ID: 11380
// Name: _saveDocuments
// Dependencies: [5, 17, 11372]
// Exports: saveDocuments
// Module 11379 (_saveDocuments)
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
const require = fn;
let closure_3 = async function _saveDocuments() {
closure_1 = tmp2;
await asyncGeneratorStep(async () => {
if (tmp2.sourceUris.length > 1) {
const _console = console;
const _HermesInternal = HermesInternal;
console.warn("DocumentPicker.saveDocuments: Android only allows to save one file at a time.\n\n You provided an array with " + length + " entries.");
}
const NativeDocumentPicker2 = tmp2(11372).NativeDocumentPicker;
closure_128_0 = await NativeDocumentPicker2.saveDocument(tmp2);
const NativeDocumentPicker = tmp2(11372).NativeDocumentPicker;
await NativeDocumentPicker.writeDocuments(closure_128_0);
return arg1;
})();
return arg1.map(closure_129_4);
};
function keepOnlySpecifiedFields(uri) {
return { uri: uri.uri, name: uri.name, error: uri.error };
}
const Platform = fn(17).Platform;
export const saveDocuments = function saveDocuments(arg0) {
const self = this;
const apply = closure_3.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};