decord/source/10329__saveDocuments.js

59 lines
1.9 KiB
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10329
// Function ID: 10330
2026-07-29 08:29:29 +00:00
// Name: _saveDocuments
2026-08-25 06:04:03 +00:00
// Dependencies: [5, 17, 10322]
2026-07-29 08:29:29 +00:00
// Exports: saveDocuments
2026-08-25 06:04:03 +00:00
// Module 10329 (_saveDocuments)
2026-08-24 06:08:38 +00:00
import closure_2 from "asyncGeneratorStep" /* 5 */;
import { Platform } from "get ActivityIndicator" /* 17 */;
2026-07-29 08:29:29 +00:00
const require = arg1;
function _saveDocuments() {
const self = this;
const tmp = callback((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
c2 = 0;
c3 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arr) {
2026-08-24 06:08:38 +00:00
closure_1 = tmp2;
2026-08-04 21:03:28 +00:00
yield v0(function*() {
2026-08-24 06:08:38 +00:00
closure_0 = tmp2;
if (closure_1_0.sourceUris.length > 1) {
2026-08-04 21:03:28 +00:00
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-24 06:08:38 +00:00
const NativeDocumentPicker2 = closure_1_0(closure_1_1[2]).NativeDocumentPicker;
closure_0 = yield NativeDocumentPicker2.saveDocument(closure_1_0);
const NativeDocumentPicker = closure_1_0(closure_1_1[2]).NativeDocumentPicker;
2026-08-04 21:03:28 +00:00
yield NativeDocumentPicker.writeDocuments(closure_0);
return arg1;
})();
return arr.map(closure_4);
2026-07-29 08:29:29 +00:00
})();
});
2026-08-24 06:08:38 +00:00
closure_3 = tmp;
2026-07-29 08:29:29 +00:00
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;
};