2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 7220
|
|
|
|
|
// Function ID: 7221
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: VerifiedRoleIcon
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 17, 676, 21, 712, 4668, 7221, 7201, 4322, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 7220 (VerifiedRoleIcon)
|
|
|
|
|
import noopAll from "noop" /* 19 */;
|
|
|
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
|
|
|
import LinkIcon from "LinkIcon" /* 4322 */;
|
|
|
|
|
import useRoleIcon from "useRoleIcon" /* 7201 */;
|
|
|
|
|
import getHigherContrastColor from "getHigherContrastColor" /* 7221 */;
|
|
|
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
|
|
|
import ME from "ME" /* 676 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
|
|
|
import createCacheKey from "createCacheKey" /* 4668 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
|
|
|
|
noopAll;
|
2026-07-29 08:29:29 +00:00
|
|
|
({ DEFAULT_ROLE_COLOR_HEX: c3, EMPTY_STRING_SNOWFLAKE_ID: c4 } = ME);
|
2026-08-24 06:08:38 +00:00
|
|
|
const WHITE = ThemesDefault.unsafe_rawColors.WHITE;
|
|
|
|
|
const PRIMARY_630 = ThemesDefault.unsafe_rawColors.PRIMARY_630;
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey = { iconContainer: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
createCacheKey = { alignItems: "center", justifyContent: "center", borderRadius: ThemesDefault.radii.round };
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey[0] = createCacheKey;
|
2026-08-24 06:08:38 +00:00
|
|
|
let closure_8 = createCacheKey.createStyles(createCacheKey);
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/connections/native/VerifiedRoleIcon.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function VerifiedRoleIcon(arg0) {
|
|
|
|
|
({ role, roleId, roleColor, size } = arg0);
|
|
|
|
|
({ guildId, style, displayRoleIcon } = arg0);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (roleColor == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let colorString;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (role != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
colorString = role.colorString;
|
|
|
|
|
}
|
|
|
|
|
roleColor = colorString;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (roleColor == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
roleColor = closure_3;
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = getHigherContrastColor;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [WHITE, PRIMARY_630];
|
|
|
|
|
const diff = size - size / 8 * 2;
|
2026-07-29 08:29:29 +00:00
|
|
|
const higherContrastColor = obj.getHigherContrastColor({ backgroundColor: roleColor, colors: items });
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = useRoleIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { guildId, roleId: null, size: null };
|
|
|
|
|
if (roleId == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let id;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (role != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
id = role.id;
|
|
|
|
|
}
|
|
|
|
|
roleId = id;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (roleId == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
roleId = closure_4;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[1] = roleId;
|
|
|
|
|
obj[2] = diff;
|
|
|
|
|
let roleIcon = obj1.useRoleIcon(obj);
|
|
|
|
|
obj = { style: items1, children: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
items1 = [style, callback().iconContainer, { width: size, height: size, backgroundColor: roleColor }];
|
2026-07-20 16:05:17 +00:00
|
|
|
if (false === displayRoleIcon) {
|
2026-07-29 08:29:29 +00:00
|
|
|
obj1 = { style: null, size: "custom", color: null };
|
|
|
|
|
const obj2 = { width: null, height: null };
|
|
|
|
|
obj2[0] = diff;
|
|
|
|
|
obj2[1] = diff;
|
|
|
|
|
obj1[0] = obj2;
|
|
|
|
|
obj1[2] = higherContrastColor;
|
2026-08-24 06:08:38 +00:00
|
|
|
roleIcon = tmp9(LinkIcon.LinkIcon, obj1);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[1] = roleIcon;
|
|
|
|
|
return <View style={items1}>{null}</View>;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|