decord/source/modules/emojis/native/utils/EmojiSourceUtils.tsx

144 lines
4.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15404
// Function ID: 15405
2026-07-20 16:05:17 +00:00
// Name: _getEmojiSource
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 17, 4041, 1435, 2]
2026-07-20 16:05:17 +00:00
// Exports: getEmojiSource
2026-08-24 06:08:38 +00:00
// Module 15404 (_getEmojiSource)
import closure_2 from "asyncGeneratorStep" /* 5 */;
import { NativeModules } from "get ActivityIndicator" /* 17 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function _getEmojiSource() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
c6 = 0;
c7 = 0;
2026-07-29 08:29:29 +00:00
const iter = (function*(arg0) {
if (c7 === 2) {
c7 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c7 = 2;
if (0 === c6) {
if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 === 2) {
c7 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
c5 = 0;
closure_4 = tmp2;
2026-07-29 08:29:29 +00:00
let num11;
if (num11 === undefined) {
num11 = 32;
}
2026-08-24 06:08:38 +00:00
closure_2 = undefined;
2026-07-29 08:29:29 +00:00
let ImageManager;
c6 = 1;
c7 = 1;
2026-08-12 06:57:52 +00:00
return { value: "ct", done: true };
2026-07-29 08:29:29 +00:00
}
} else if (1 === tmp5) {
if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 === 2) {
c7 = 3;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: true };
2026-07-29 08:29:29 +00:00
obj1[0] = arg1;
return obj1;
} else {
const name = lib.name;
ImageManager = name;
if (name == null) {
ImageManager = "";
}
const obj2 = { name: null, id: null, animated: false };
obj2[0] = ImageManager;
obj2[1] = lib.id;
const emojiUrl = lib(num11[2]).getEmojiUrl(obj2, num11);
2026-08-24 06:08:38 +00:00
closure_2 = emojiUrl;
2026-07-29 08:29:29 +00:00
if (emojiUrl == null) {
2026-08-24 06:08:38 +00:00
closure_2 = "";
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
if ("" !== closure_2) {
2026-07-29 08:29:29 +00:00
let obj5 = lib(num11[3]);
c7 = 3;
const obj3 = { value: null, done: true };
2026-08-24 06:08:38 +00:00
obj3[0] = obj5.makeSource(closure_2);
2026-07-29 08:29:29 +00:00
return obj3;
} else {
ImageManager = ImageManager.ImageManager;
c6 = 2;
c7 = 1;
const obj4 = { value: null, done: false };
obj4[0] = ImageManager.getEmojiBase64(lib.name, num11);
return obj4;
}
const obj11 = lib(num11[2]);
}
} else if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 === 2) {
c7 = 3;
obj5 = { value: null, done: true };
obj5[0] = arg1;
return obj5;
} else {
ImageManager = arg1;
obj = lib(num11[3]);
const _HermesInternal = HermesInternal;
c7 = 3;
const obj6 = { value: null, done: true };
obj6[0] = obj.makeSource("data:image/png;base64," + ImageManager);
return obj6;
}
} catch (tmp29) {
c7 = tmp;
throw tmp29;
}
}
})();
iter.next();
return iter;
});
2026-08-24 06:08:38 +00:00
closure_4 = 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;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/emojis/native/utils/EmojiSourceUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getEmojiSource = function getEmojiSource(emoji) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _getEmojiSource.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};