decord/beta/source/modules/roles/native/RoleIcon.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

122 lines
4 KiB
TypeScript

// Module ID: 7484
// Function ID: 7485
// Name: RoleIcon
// Dependencies: [19, 17, 21, 1368, 558, 568, 4786, 2]
// Module 7484 (RoleIcon)
import c from "c" /* 568 */;
import noop from "module_19" /* 19 */;
const Text_Text = Text(4786);
require = fn;
const Image = fn(17).Image;
const jsx = fn(21).jsx;
const PlatformUtils = fn(1368);
const ReactCompilerGating = fn(558);
const size = fn(2);
let result = size.fileFinishedImporting("modules/roles/native/RoleIcon.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
let Text = require;
let tmp = dependencyMap;
const cResult = c.c(19);
({ src, unicodeEmoji, size } = arg0);
num = 20;
if (undefined !== size) {
num = size;
}
if (cResult[0] !== num) {
const size1 = { height: num, width: num };
cResult[0] = num;
cResult[1] = size1;
let tmp3 = size1;
} else {
tmp3 = cResult[1];
}
const result = num * num;
if (cResult[2] === num) {
if (cResult[3] === result) {
let tmp5 = cResult[4];
}
if (cResult[5] === tmp3) {
if (cResult[6] === tmp5) {
let roleIcon = cResult[7];
}
if (null != src) {
if (cResult[8] !== src) {
const obj2 = { uri: src };
cResult[8] = src;
cResult[9] = obj2;
let tmp11 = obj2;
} else {
tmp11 = cResult[9];
}
if (cResult[10] === roleIcon.roleIcon) {
}
const obj3 = { resizeMode: "contain", source: tmp11, style: roleIcon.roleIcon };
const tmp15 = <Image resizeMode="contain" source={tmp11} style={roleIcon.roleIcon} />;
roleIcon = roleIcon.roleIcon;
cResult[10] = roleIcon;
cResult[11] = tmp11;
cResult[12] = tmp15;
} else if (null == unicodeEmoji) {
return null;
} else {
if (cResult[13] === roleIcon.roleIcon) {
if (cResult[14] === roleIcon.unicodeEmojiRoleIcon) {
let tmp7 = cResult[15];
}
if (cResult[16] === tmp7) {
}
Text = Text_Text.Text;
const obj4 = { allowFontScaling: false, color: "none", style: tmp7, variant: "text-lg/normal", children: unicodeEmoji.surrogates };
tmp = <Text allowFontScaling={false} color="none" style={tmp7} variant="text-lg/normal">{unicodeEmoji.surrogates}</Text>;
cResult[16] = tmp7;
unicodeEmoji = unicodeEmoji.surrogates;
cResult[17] = unicodeEmoji;
cResult[18] = tmp;
}
const items = [, ];
({ roleIcon: arr[0], unicodeEmojiRoleIcon: arr[1] } = roleIcon);
cResult[13] = roleIcon.roleIcon;
cResult[14] = roleIcon.unicodeEmojiRoleIcon;
cResult[15] = items;
tmp7 = items;
}
}
const obj5 = { roleIcon: tmp3, unicodeEmojiRoleIcon: tmp5 };
cResult[5] = tmp3;
cResult[6] = tmp5;
cResult[7] = obj5;
roleIcon = obj5;
}
const obj6 = { fontFamily: "System", fontSize: result, lineHeight: "unicodeVersion", textAlign: "add", width: num, marginBottom: "duration" };
cResult[2] = num;
cResult[3] = result;
cResult[4] = obj6;
tmp5 = obj6;
}) : ((arg0) => {
({ src, unicodeEmoji, size } = arg0);
if (size === undefined) {
size = 20;
}
const size1 = { height: size, width: size };
const obj = { fontFamily: "System", fontSize: size * num, lineHeight: "unicodeVersion", textAlign: "add", width: size, marginBottom: "duration" };
if (null != src) {
const obj2 = { resizeMode: "contain", source: null, style: null };
const obj3 = { uri: src };
obj2.source = obj3;
obj2.style = size1;
let tmp = <Image resizeMode="contain" source={null} style={null} />;
} else {
tmp = null;
if (null != unicodeEmoji) {
const obj4 = { allowFontScaling: false, color: "none", style: null, variant: "text-lg/normal", children: null };
const items = [size1, obj];
obj4.style = items;
obj4.children = unicodeEmoji.surrogates;
tmp = jsx(Text_Text.Text, { allowFontScaling: false, color: "none", style: null, variant: "text-lg/normal", children: null });
}
}
return tmp;
});