decord/source/utils/ClipboardUtils.native.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

99 lines
2.6 KiB
TypeScript

// Module ID: 7190
// Function ID: 7191
// Name: _copy
// Dependencies: [5, 7191, 2]
// Exports: copy, getString
// Module 7190 (_copy)
import useClipboardDefault from "useClipboard" /* 7191 */;
import closure_2 from "asyncGeneratorStep" /* 5 */;
function _copy() {
const self = this;
const tmp = callback((arg0, arg1) => {
closure_0 = arg0;
closure_1 = arg1;
c3 = 0;
c2 = 0;
return (function*(arg0, arg1) {
if (c2 === 2) {
c2 = 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 {
c2 = 2;
if (0 === c3) {
if (arg0 === 1) {
c2 = 3;
throw arg1;
} else if (arg0 === 2) {
c2 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
obj1 = callback(table[1]);
obj1.setString(callback);
if (table != null) {
table();
}
c3 = 1;
c2 = 1;
obj1 = { value: null, done: false };
obj1[0] = Promise.resolve();
return obj1;
}
} else if (arg0 === 1) {
c2 = 3;
throw arg1;
} else if (arg0 === 2) {
c2 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
c2 = 3;
return { value: "HermesInternal", done: null };
}
} catch (tmp13) {
c2 = tmp;
throw tmp13;
}
}
})();
});
closure_3 = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
const result = require("set").fileFinishedImporting("utils/ClipboardUtils.native.tsx");
export const SUPPORTS_COPY = true;
export const copy = function copy() {
const self = this;
const apply = _copy.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};
export const getString = function getString() {
return useClipboardDefault.getString();
};