Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,99 @@
|
||||
/* Metro module 10507; source: modules/collectibles/nameplates/native/NameplatePreview.tsx; dependencies: [31, 27, 4502, 1945, 33, 4501, 697, 1901, 4618, 8398, 566, 3995, 4635, 1305, 8483, 8696, 8697, 4573, 2] */
|
||||
function _fun81230(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10693:6, offset: 0x01e9f56b, size: 237 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun81231);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/nameplates/native/NameplatePreview.tsx');
|
||||
exports.NameplatePreview = NameplatePreview_81232;
|
||||
}
|
||||
|
||||
function _fun81231(a0) { // fn#81231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10693:192, offset: 0x01e9f658, size: 281 bytes, params: 2, frame: 18
|
||||
const object3 = {};
|
||||
const object5 = {'borderRadius': null, 'padding': null, 'flexDirection': 'row', 'alignItems': 'center',
|
||||
'width': '100%'};
|
||||
const value = 0;
|
||||
object5.borderRadius = a0 ? (importDefault(697) /* metro dependency 697: native */).radii.sm : value;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.padding = PX_8;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object5.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object3.container = object5;
|
||||
object3.nameplate = {borderRadius: a0 ? (importDefault(697) /* metro dependency 697: native */).radii.sm : value};
|
||||
const object6 = {};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.marginRight = PX_8;
|
||||
object3.avatar = object6;
|
||||
const PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
|
||||
object3.content = {flex: 1, paddingRight: PX_40};
|
||||
return object3;
|
||||
}
|
||||
|
||||
function NameplatePreview_81232(a0) { // fn#81232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10693:663, offset: 0x01e9f771, size: 813 bytes, params: 2, frame: 31
|
||||
var object2;
|
||||
const nameplate = a0.nameplate;
|
||||
const nameplateData = a0.nameplateData;
|
||||
const user = a0.user;
|
||||
let hasRoundedCorners = a0.hasRoundedCorners;
|
||||
const value = undefined;
|
||||
hasRoundedCorners = hasRoundedCorners === value || hasRoundedCorners;
|
||||
let animate = a0.animate;
|
||||
animate = !(animate === value) && animate;
|
||||
const guildId = a0.guildId;
|
||||
const pendingDisplayNameStyles = a0.pendingDisplayNameStyles;
|
||||
const pendingGlobalName = a0.pendingGlobalName;
|
||||
const property = a0['aria-hidden'];
|
||||
const styles = useStyles(hasRoundedCorners);
|
||||
const r17 = nameplate == null ? nameplateData : (require(1901) /* metro dependency 1901: utils */).getNameplateData(nameplate);
|
||||
const value6 = (require(4618) /* metro dependency 4618: useAvatarDecoration */).useAvatarDecoration(user, guildId);
|
||||
const pendingAvatarDecoration = (importDefault(8398) /* metro dependency 8398: usePendingAvatarSettings */)({guildId: guildId}).pendingAvatarDecoration;
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const env0_3 = useReducedMotion;
|
||||
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], _fun81234);
|
||||
const r11 = pendingGlobalName ?? (guildId == null || (value7 == null ? value : value7.nick) == null ? (importDefault(3995) /* metro dependency 3995: UserUtils */).useName(user) : value7 == null ? value : value7.nick);
|
||||
const r19 = value === pendingAvatarDecoration ? value6 : pendingAvatarDecoration;
|
||||
const value9 = (importDefault(4635) /* metro dependency 4635: useDisplayNameStyles */)({userId: user.id,
|
||||
guildId: guildId, pendingDisplayNameStyles: pendingDisplayNameStyles});
|
||||
const value10 = env0_3.useMemo(_fun81235, [styles.avatar, user, guildId, r19, useReducedMotion]);
|
||||
object2 = {style: styles.container};
|
||||
object2['aria-hidden'] = property;
|
||||
const items2 = [((Component) => <Component nameplate={r17} style={styles.nameplate} fullOpacity animate={animate} />)(importDefault(8483) /* metro dependency 8483: Nameplate */)];
|
||||
items2[1] = <View style={styles.avatar}>{value10}</View>;
|
||||
items2[2] = <View style={styles.content}>{value9 != null && ((Component) => <Component userId={user.id} guildId={guildId} userName={r11} variant="text-md/semibold" effectDisplayType={(require(8697) /* metro dependency 8697: types */).EffectDisplayType.STATIC} lineClamp={1} pendingDisplayNameStyles={pendingDisplayNameStyles} />)(importDefault(8696) /* metro dependency 8696: UsernameWithEffects */)}{value9 == null && ((Text) => <Text lineClamp={1} variant="text-md/semibold" color="mobile-text-heading-primary">{r11}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>;
|
||||
return (
|
||||
<View {...object2}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun81234() { // fn#81234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10693:1041, offset: 0x01e9fa9e, size: 65 bytes, params: 1, frame: 14
|
||||
const guildIdBinding = guildId;
|
||||
const value2 = null;
|
||||
return value2 != guildIdBinding && value2 != user ? GuildMemberStore.getMember(guildId, user.id) : value2;
|
||||
}
|
||||
|
||||
function _fun81235() { // fn#81235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10693:1279, offset: 0x01e9fadf, size: 136 bytes, params: 1, frame: 18
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const avatarProps = {style: styles.avatar, user: user, guildId: guildId};
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const NORMAL = AvatarSizes.NORMAL;
|
||||
avatarProps.size = NORMAL;
|
||||
avatarProps.avatarDecoration = env0_4;
|
||||
avatarProps.animate = !useReducedMotion;
|
||||
avatarProps.autoStatusCutout = true;
|
||||
avatarProps['aria-hidden'] = true;
|
||||
return <Avatar {...avatarProps} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user