decord/source/9837__pickDirectory.js
2026-07-29 08:29:29 +00:00

77 lines
2.1 KiB
JavaScript

// Module ID: 9837
// Function ID: 9838
// Name: _pickDirectory
// Dependencies: [5, 17, 9833]
// Exports: pickDirectory
// Module 9837 (_pickDirectory)
import asyncGeneratorStep from "asyncGeneratorStep";
import { Platform } from "get ActivityIndicator";
const require = arg1;
function _pickDirectory() {
const self = this;
const tmp = callback((arg0) => {
let closure_0 = arg0;
let c1 = 0;
return (function*(arg0) {
if (table === 2) {
table = 3;
HermesBuiltin.throwTypeError();
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
table = 2;
if (arg0 === 1) {
table = 3;
throw arg1;
} else if (arg0 === 2) {
table = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
obj = { mode: "open" };
const merged = Object.assign(callback);
const NativeDocumentPicker = callback(table[2]).NativeDocumentPicker;
table = 3;
const obj1 = { value: null, done: true };
obj1[0] = NativeDocumentPicker.pickDirectory(obj);
return obj1;
}
} catch (tmp9) {
table = tmp;
throw tmp9;
}
}
})();
});
const _pickDirectory = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
export const pickDirectory = function pickDirectory(arg0) {
const self = this;
const apply = _pickDirectory.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};