decord/source/__helpers/11xxx/11366__saveDocuments.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

41 lines
1.4 KiB
JavaScript

// Module ID: 11366
// Function ID: 11367
// Name: _saveDocuments
// Dependencies: [5, 17, 11359]
// Exports: saveDocuments
// Module 11366 (_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(11359).NativeDocumentPicker;
closure_128_0 = await NativeDocumentPicker2.saveDocument(tmp2);
const NativeDocumentPicker = tmp2(11359).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;
};