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

82 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 6688
// Function ID: 6689
// Name: ClipboardUtils
2026-10-07 22:43:51 +00:00
// Dependencies: [5, 6689, 2]
// Exports: copy, getString
2026-10-07 22:43:51 +00:00
// Module 6688 (ClipboardUtils)
import _modDef6689 from "module_6689" /* 6689 */;
2026-10-01 14:13:23 +00:00
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let c2, c3;
let obj = function _copy() {
obj = _asyncToGenerator(async (arg0, value) => {
let closure_0 = arg0;
let closure_1 = value;
if (c2 === 2) {
c2 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp2 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj3 = { value, done: true };
return obj3;
} else {
2026-10-02 13:37:24 +00:00
return { value: "IconComponent", done: null };
2026-10-01 14:13:23 +00:00
}
} else {
2026-10-01 14:13:23 +00:00
try {
c2 = 2;
if (0 === c3) {
if (arg0 === 1) {
c2 = 3;
throw value;
} else if (arg0 === 2) {
c2 = 3;
const obj4 = { value, done: true };
return obj4;
} else {
2026-10-07 22:43:51 +00:00
const obj2 = _modDef6689;
2026-10-01 14:13:23 +00:00
obj2.setString(closure_0);
const tmp5 = closure_1;
if (closure_1 != null) {
tmp5();
}
c3 = 1;
c2 = 1;
const obj5 = { value: Promise.resolve(), done: false };
return obj5;
}
} else if (arg0 === 1) {
c2 = 3;
throw value;
} else if (arg0 === 2) {
c2 = 3;
2026-10-01 14:13:23 +00:00
obj = { value, done: true };
return obj;
} else {
2026-10-01 14:13:23 +00:00
c2 = 3;
2026-10-02 13:37:24 +00:00
return { value: "IconComponent", done: null };
}
2026-10-01 14:13:23 +00:00
} catch (tmp12) {
c2 = 3;
2026-10-01 14:13:23 +00:00
throw tmp12;
}
}
2026-10-01 14:13:23 +00:00
});
return obj(...arguments);
};
const result = size.fileFinishedImporting("utils/ClipboardUtils.native.tsx");
export const SUPPORTS_COPY = true;
export const copy = function copy() {
2026-10-01 14:13:23 +00:00
return obj(...arguments);
};
export const getString = function getString() {
2026-10-07 22:43:51 +00:00
obj = _modDef6689;
2026-10-01 14:13:23 +00:00
return obj.getString();
};