68 lines
4.1 KiB
TypeScript
68 lines
4.1 KiB
TypeScript
/* Metro module 14547; source: modules/guild_sidebar/native/VoiceUserSummary.tsx; dependencies: [31, 27, 33, 1305, 4501, 7702, 7701, 6707, 6711, 2] */
|
|
function _fun110037(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14744:6, offset: 0x023674b4, size: 373 bytes, params: 8, frame: 23
|
|
const env0_0 = require;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
const value2 = require(33) /* metro dependency 33 */;
|
|
const env0_4 = value2.jsx;
|
|
const env0_5 = value2.jsxs;
|
|
Object = global.Object;
|
|
const freeze = Object.freeze;
|
|
const CutoutDirection = (require(1305) /* metro dependency 1305: native */).CutoutDirection;
|
|
const RIGHT = CutoutDirection.RIGHT;
|
|
const env0_6 = Reflect.apply(freeze, Object, [{direction: RIGHT, inset: -2}]);
|
|
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flexDirection': 'row',
|
|
'alignItems': 'center', 'paddingHorizontal': 16, 'height': 40}, containerNoPadding: {'flexDirection': 'row',
|
|
'alignItems': 'center', 'height': 40}, iconContainer: {height: 40}, redesignChannelIcon: {marginRight: 4},
|
|
overflow: {'height': 20, 'paddingHorizontal': 4, 'paddingVertical': 0, 'display': 'flex',
|
|
'flexDirection': 'row', 'alignItems': 'center'}, transparentBorder: {borderColor: 'transparent'}});
|
|
value = value.memo(_fun110038);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/VoiceUserSummary.tsx');
|
|
exports.default = value;
|
|
exports.VOICE_USER_SUMMARY_HEIGHT = 40;
|
|
}
|
|
|
|
function _fun110038({users, max, guildId, renderIcon, noPadding, stageIcon}) { // fn#110038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14744:628, offset: 0x02367629, size: 404 bytes, params: 2, frame: 26
|
|
const styles = useStyles();
|
|
const transparentBorder = (importDefault(7702) /* metro dependency 7702: useIsUsingClientTheme */)() ? styles.transparentBorder : null;
|
|
const items2 = [noPadding ? styles.containerNoPadding : styles.container,
|
|
(require(7701) /* metro dependency 7701: ClientThemesOverrides */).useClientThemesOverride()];
|
|
const value5 = ((Component) => <Component size="sm" color="channel-icon" style={styles.redesignChannelIcon} />)(renderIcon && stageIcon ? (require(6707) /* metro dependency 6707: StageIcon */).StageIcon : (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon);
|
|
const SummarizedIconRow = (require(1305) /* metro dependency 1305: native */).SummarizedIconRow;
|
|
const items3 = [styles.overflow, transparentBorder];
|
|
const OverflowTextSmall = (require(1305) /* metro dependency 1305: native */).OverflowTextSmall;
|
|
return (
|
|
<View style={items2}>
|
|
{value5}
|
|
<SummarizedIconRow
|
|
offsetAmount={-6}
|
|
style={styles.iconContainer}
|
|
overflowStyle={items3}
|
|
overflowComponent={OverflowTextSmall}
|
|
items={users}
|
|
max={max}
|
|
renderItem={renderItem_110039}
|
|
/>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function renderItem_110039(a0, a1) { // fn#110039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14744:1127, offset: 0x023677bd, size: 105 bytes, params: 3, frame: 18
|
|
const value2 = undefined;
|
|
const CutoutableAvatarImage = (require(1305) /* metro dependency 1305: native */).CutoutableAvatarImage;
|
|
const guildIdBinding = guildId;
|
|
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
|
const XSMALL_20 = AvatarSizes.XSMALL_20;
|
|
return (
|
|
<CutoutableAvatarImage
|
|
user={a0}
|
|
guildId={guildIdBinding}
|
|
size={XSMALL_20}
|
|
cutout={a1 ? value2 : env1_6}
|
|
/>
|
|
);
|
|
}
|
|
|