decord/source/10174__saveDocuments.js

59 lines
1.9 KiB
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 10174
// Function ID: 10175
2026-07-29 08:29:29 +00:00
// Name: _saveDocuments
2026-08-08 06:10:11 +00:00
// Dependencies: [5, 17, 10167]
2026-07-29 08:29:29 +00:00
// Exports: saveDocuments
2026-08-08 06:10:11 +00:00
// Module 10174 (_saveDocuments)
2026-07-29 08:29:29 +00:00
import asyncGeneratorStep from "asyncGeneratorStep";
import { Platform } from "get ActivityIndicator";
const require = arg1;
function _saveDocuments() {
const self = this;
const tmp = callback((arg0) => {
let closure_0 = arg0;
let c2 = 0;
let c3 = 0;
return (function*(arg0, arr) {
2026-08-04 21:03:28 +00:00
let closure_1 = tmp2;
yield v0(function*() {
let closure_0 = tmp2;
if (outer1_0.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.");
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
const NativeDocumentPicker2 = outer1_0(outer1_1[2]).NativeDocumentPicker;
closure_0 = yield NativeDocumentPicker2.saveDocument(outer1_0);
const NativeDocumentPicker = outer1_0(outer1_1[2]).NativeDocumentPicker;
yield NativeDocumentPicker.writeDocuments(closure_0);
return arg1;
})();
return arr.map(closure_4);
2026-07-29 08:29:29 +00:00
})();
});
const _saveDocuments = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
function keepOnlySpecifiedFields(uri) {
return { uri: uri.uri, name: uri.name, error: uri.error };
}
export const saveDocuments = function saveDocuments(arg0) {
const self = this;
const apply = _saveDocuments.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};