decord/alpha/source/utils/ClipboardUtils.native.tsx

79 lines
2 KiB
TypeScript
Raw Normal View History

// Module ID: 6796
// Function ID: 6797
// Name: ClipboardUtils
// Dependencies: [5, 6797, 2]
2026-07-20 16:05:17 +00:00
// Exports: copy, getString
// Module 6796 (ClipboardUtils)
import _modDef6797 from "module_6797" /* 6797 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
let closure_3 = async function _copy(arg0, value) {
if (c2 === 2) {
c2 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj3 = { value, done: true };
return obj3;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c2 = 2;
if (0 === c3) {
2026-07-29 08:29:29 +00:00
if (arg0 === 1) {
c2 = 3;
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
c2 = 3;
const obj4 = { value, done: true };
return obj4;
2026-07-29 08:29:29 +00:00
} else {
_modDef6797.setString(closure_0);
if (dependencyMap != null) {
dependencyMap();
2026-07-29 08:29:29 +00:00
}
c3 = 1;
c2 = 1;
const obj5 = { value: Promise.resolve(), done: false };
return obj5;
2026-07-29 08:29:29 +00:00
}
} else if (arg0 === 1) {
c2 = 3;
throw value;
} else if (arg0 === 2) {
c2 = 3;
const obj = { value, done: true };
return obj;
} else {
c2 = 3;
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp13) {
c2 = tmp;
throw tmp13;
}
2026-07-20 16:05:17 +00:00
}
};
const size = fn(2);
const result = size.fileFinishedImporting("utils/ClipboardUtils.native.tsx");
2026-07-20 16:05:17 +00:00
export const SUPPORTS_COPY = true;
export const copy = function copy() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = closure_3.apply;
2026-07-29 08:29:29 +00:00
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};
export const getString = function getString() {
return _modDef6797.getString();
2026-07-20 16:05:17 +00:00
};