Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/* Metro module 6812; source: modules/connections/native/VerifiedRoleIcon.tsx; dependencies: [31, 27, 661, 33, 697, 4501, 6813, 6793, 4056, 2] */
|
||||
function _fun53578(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6990:6, offset: 0x0134fe29, size: 302 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_3 = value.DEFAULT_ROLE_COLOR_HEX;
|
||||
const env0_4 = value.EMPTY_STRING_SNOWFLAKE_ID;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_6 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
const env0_7 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_630;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'alignItems': 'center', 'justifyContent': 'center'};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{iconContainer: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/connections/native/VerifiedRoleIcon.tsx');
|
||||
exports.default = VerifiedRoleIcon;
|
||||
}
|
||||
|
||||
function VerifiedRoleIcon({guildId, role, roleId, roleColor, size, style, displayRoleIcon}) { // fn#53579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6990:482, offset: 0x0134ff57, size: 366 bytes, params: 2, frame: 27
|
||||
const styles = useStyles();
|
||||
let r13 = roleColor ?? role?.colorString;
|
||||
r13 = r13 ?? DEFAULT_ROLE_COLOR_HEX;
|
||||
const higherContrastColor = (require(6813) /* metro dependency 6813: getHigherContrastColor */).getHigherContrastColor({backgroundColor: r13,
|
||||
colors: [WHITE, PRIMARY_630]});
|
||||
const value4 = size - size / 8 * 2;
|
||||
const roleIconUtilsModule = require(6793) /* metro dependency 6793: RoleIconUtils */;
|
||||
const useRoleIcon = roleIconUtilsModule.useRoleIcon;
|
||||
let r4 = roleId ?? role?.id;
|
||||
r4 = r4 ?? EMPTY_STRING_SNOWFLAKE_ID;
|
||||
return (
|
||||
<View style={[style, styles.iconContainer, {width: size, height: size, backgroundColor: r13}]}>
|
||||
{displayRoleIcon === false ? ((LinkIcon) => <LinkIcon style={{width: value4,
|
||||
height: value4}} size="custom" color={higherContrastColor} />)((require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon) : Reflect.apply(useRoleIcon,
|
||||
roleIconUtilsModule, [{guildId: guildId, roleId: r4,
|
||||
size: value4}]) ?? ((LinkIcon) => <LinkIcon style={{width: value4,
|
||||
height: value4}} size="custom" color={higherContrastColor} />)((require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user