Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,72 @@
|
||||
/* Metro module 8852; source: modules/activity_status/native/ActivityEmoji.tsx; dependencies: [31, 33, 4501, 3829, 1423, 7950, 6739, 2] */
|
||||
function _fun69030(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9037:6, offset: 0x01c65a84, size: 207 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(33) /* metro dependency 33 */).jsx;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({emoji: {'flexShrink': 0,
|
||||
'width': '100%', 'height': '100%'}, text: {'textAlign': 'center', 'fontFamily': 'System'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_status/native/ActivityEmoji.tsx');
|
||||
exports.default = ActivityEmoji;
|
||||
}
|
||||
|
||||
function ActivityEmoji({emoji, size, style, withPlaceholder, animate}) { // fn#69031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9037:332, offset: 0x01c65b53, size: 401 bytes, params: 2, frame: 23
|
||||
var r1;
|
||||
var r0;
|
||||
var defaultImport;
|
||||
withPlaceholder = !(withPlaceholder === undefined) && withPlaceholder;
|
||||
animate = animate === undefined || animate;
|
||||
const styles = useStyles();
|
||||
const AnimateEmoji = (require(3829) /* metro dependency 3829: UserSettings */).AnimateEmoji;
|
||||
const value5 = AnimateEmoji.useSetting();
|
||||
const Boolean = global.Boolean;
|
||||
const value8 = env0_3.useMemo(_fun69032, [emoji?.id, Boolean(emoji?.animated && value5 && animate)]);
|
||||
if (emoji != null) {
|
||||
if (emoji == null) {
|
||||
const ReactionIcon = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon;
|
||||
r1 = <ReactionIcon style={style} size="sm" />;
|
||||
} else {
|
||||
defaultImport = importDefault(6739) /* metro dependency 6739: Emoji */;
|
||||
var defaultImportProps2 = {src: value8, name: emoji.name, style: [style, {width: size, height: size}]};
|
||||
emoji = styles.emoji;
|
||||
defaultImportProps2.textEmojiStyle = [emoji, styles.text, {fontSize: size}];
|
||||
emoji = styles.emoji;
|
||||
defaultImportProps2.fastImageStyle = emoji;
|
||||
defaultImportProps2.adjustsFontSizeToFit = true;
|
||||
r1 = ((Component) => <Component {...defaultImportProps2} />)(defaultImport);
|
||||
}
|
||||
r0 = r1;
|
||||
} else if (withPlaceholder) {
|
||||
if (emoji == null) {
|
||||
const ReactionIcon2 = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon;
|
||||
r1 = <ReactionIcon2 style={style} size="sm" />;
|
||||
} else {
|
||||
defaultImport = importDefault(6739) /* metro dependency 6739: Emoji */;
|
||||
var defaultImportProps2 = {src: value8, name: emoji.name, style: [style, {width: size, height: size}]};
|
||||
emoji = styles.emoji;
|
||||
defaultImportProps2.textEmojiStyle = [emoji, styles.text, {fontSize: size}];
|
||||
emoji = styles.emoji;
|
||||
defaultImportProps2.fastImageStyle = emoji;
|
||||
defaultImportProps2.adjustsFontSizeToFit = true;
|
||||
r1 = ((Component) => <Component {...defaultImportProps2} />)(defaultImport);
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun69032() { // fn#69032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9037:519, offset: 0x01c65ce4, size: 102 bytes, params: 1, frame: 13
|
||||
var value3;
|
||||
const emojiBinding = emoji;
|
||||
const value2 = undefined;
|
||||
if ((emojiBinding == null ? value2 : emoji.id) != null) {
|
||||
value3 = environment.__proto__;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getEmojiURL({id: emoji.id, size: 48,
|
||||
animated: env0_1});
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
/* Metro module 8829; source: modules/activity_status/native/ActivityStatus.tsx; dependencies: [31, 27, 4396, 3793, 1878, 8830, 661, 33, 4501, 566, 8831, 8832, 8833, 8838, 8839, 8848, 8852, 8837, 2] */
|
||||
function _fun68974(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9014:6, offset: 0x01c6353f, size: 342 bytes, params: 8, frame: 21
|
||||
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 presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_8 = (require(8830) /* metro dependency 8830: ActivityStatusConstants */).DOT_UNICODE;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.Fragment;
|
||||
const env0_12 = value.jsxs;
|
||||
const env0_13 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flexDirection': 'row',
|
||||
'alignItems': 'center', 'gap': 4}, icon: {marginTop: 1}, emoji: {marginRight: 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_status/native/ActivityStatus.tsx');
|
||||
exports.default = ActivityStatus;
|
||||
}
|
||||
|
||||
function ActivityStatus({userId, guildId, iconStyle, textStyle, emojiSize, maxFontSizeMultiplier, animate, hideEmoji}) { // fn#68975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9014:456, offset: 0x01c63695, size: 758 bytes, params: 2, frame: 29
|
||||
var r10;
|
||||
var r1;
|
||||
var r6;
|
||||
var jsxRuntimeEnv0_11Binding;
|
||||
var emoji;
|
||||
var ActivityEmoji;
|
||||
var object;
|
||||
var items2;
|
||||
emojiSize = emojiSize === undefined ? 14 : emojiSize;
|
||||
const env0_3 = maxFontSizeMultiplier;
|
||||
animate = animate === undefined || animate;
|
||||
hideEmoji = !(hideEmoji === undefined) && hideEmoji;
|
||||
const styles = useStyles();
|
||||
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(userId);
|
||||
});
|
||||
const activities = (require(566) /* metro dependency 566: flux */).useStateFromStores([PresenceStore], function() {
|
||||
return PresenceStore.getActivities(userId);
|
||||
});
|
||||
const env0_6 = (importDefault(8831) /* metro dependency 8831: useDiscoverableApplicationStream */)(userId);
|
||||
const env0_7 = (importDefault(8832) /* metro dependency 8832: useUserVoiceActivity */)({userId: userId,
|
||||
guildId: guildId}).voiceChannel;
|
||||
const value6 = env0_3.useMemo(_fun68978, [activities]);
|
||||
if ((require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() {
|
||||
return RelationshipStore.isBlockedOrIgnored(userId);
|
||||
})) {
|
||||
return null;
|
||||
}
|
||||
const env0_8 = user?.bot === true;
|
||||
const env0_9 = value6?.state != null;
|
||||
const value9 = _fun68981();
|
||||
if (value6 == null) {
|
||||
r6 = null;
|
||||
} else {
|
||||
if (value6 != null) {
|
||||
jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
|
||||
emoji = value6.emoji;
|
||||
r10 = emoji != null && !hideEmoji;
|
||||
if (r10) {
|
||||
ActivityEmoji = importDefault(8852) /* metro dependency 8852: ActivityEmoji */;
|
||||
object = {};
|
||||
emoji = value6.emoji;
|
||||
object.emoji = emoji;
|
||||
object.size = emojiSize;
|
||||
object.animate = animate;
|
||||
emoji = styles.emoji;
|
||||
object.style = emoji;
|
||||
r10 = <ActivityEmoji {...object} />;
|
||||
}
|
||||
items2 = [r10];
|
||||
r10 = value6.state != null && ((Component) => <Component variant="text-xs/normal" style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{value6.state}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
||||
items2[1] = r10;
|
||||
r1 = <>{items2}</>;
|
||||
} else {
|
||||
r1 = null;
|
||||
}
|
||||
r6 = r1;
|
||||
}
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{value9}
|
||||
{value9 != null && r6 != null && ((Component) => <Component variant="text-xs/normal" style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier} accessibilityElementsHidden importantForAccessibility="no-hide-descendants">{DOT_UNICODE}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */)}
|
||||
{r6}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun68978() { // fn#68978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9014:788, offset: 0x01c639a6, size: 121 bytes, params: 1, frame: 14
|
||||
const activitiesBinding = activities;
|
||||
const value2 = null;
|
||||
const value3 = undefined;
|
||||
const r2 = value2 == activitiesBinding ? value3 : activities.find(function({type}) {
|
||||
return type === ActivityTypes.CUSTOM_STATUS;
|
||||
});
|
||||
if (value2 == r2) {
|
||||
return value2;
|
||||
}
|
||||
const state = r2.state;
|
||||
let r1 = value2 == state ? value3 : state.trim();
|
||||
const r3 = value2 != r1 ? r1 : value2;
|
||||
r1 = r3 === '' ? value2 : r3;
|
||||
r1 = value2 != r1 ? r2 : value2 == r2.emoji ? value2 : r2;
|
||||
return r1;
|
||||
}
|
||||
|
||||
function _fun68981() { // fn#68981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9014:1145, offset: 0x01c63a55, size: 452 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
var value7;
|
||||
var value8;
|
||||
var ApplicationStreamActivityStatus;
|
||||
const value2 = null;
|
||||
if (value2 != env0_6) {
|
||||
value7 = environment.__proto__;
|
||||
value8 = undefined;
|
||||
ApplicationStreamActivityStatus = importDefault(8833) /* metro dependency 8833: ApplicationStreamActivityStatus */;
|
||||
return (
|
||||
<ApplicationStreamActivityStatus
|
||||
game={value2 == activities ? value8 : activities.find(importDefault(8838) /* metro dependency 8838: isGameActivity */)}
|
||||
iconStyle={[styles.icon, iconStyle]}
|
||||
textStyle={textStyle}
|
||||
maxFontSizeMultiplier={maxFontSizeMultiplier}
|
||||
hideIcon={env0_8}
|
||||
hideText={env0_9}
|
||||
/>
|
||||
);
|
||||
}
|
||||
const r6 = value2 == activities ? undefined : activities.find(_fun68982);
|
||||
return value2 != r6 ? ((Component) => <Component activity={r6} iconStyle={[styles.icon,
|
||||
iconStyle]} textStyle={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier} hideIcon={env0_8} hideText={env0_9} />)(importDefault(8839) /* metro dependency 8839: PresenceActivityStatus */) : value2 != voiceChannel ? ((Component) => <Component channel={voiceChannel} iconStyle={[styles.icon,
|
||||
iconStyle]} textStyle={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier} hideIcon={env0_8} hideText={env0_9} />)(importDefault(8848) /* metro dependency 8848: VoiceActivityStatus */) : value2;
|
||||
}
|
||||
|
||||
function _fun68982({type}) { // fn#68982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9014:1327, offset: 0x01c63c19, size: 44 bytes, params: 2, frame: 4
|
||||
const value = environment.__proto__.__proto__;
|
||||
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
|
||||
return type !== CUSTOM_STATUS && type !== ActivityTypes.HANG_STATUS;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 8834; source: modules/activity_status/native/ActivityStatusIcon.tsx; dependencies: [31, 33, 4501, 2] */
|
||||
function _fun68998(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9019:6, offset: 0x01c6445a, size: 162 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_0 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_1 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({icon: {flexShrink: 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_status/native/ActivityStatusIcon.tsx');
|
||||
exports.default = ActivityStatusIcon;
|
||||
}
|
||||
|
||||
function ActivityStatusIcon(a0) { // fn#68999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9019:261, offset: 0x01c644fc, size: 109 bytes, params: 2, frame: 18
|
||||
const icon = a0.icon;
|
||||
const style = a0.style;
|
||||
const value = Object.create(null);
|
||||
value.icon = 0;
|
||||
value.style = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const styles = useStyles();
|
||||
return ((Component) => <Component size="xxs" style={[styles.icon,
|
||||
style]} color="status-positive" {...value2} />)(icon);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 8837; source: modules/activity_status/native/ActivityStatusText.tsx; dependencies: [31, 33, 4501, 4573, 2] */
|
||||
function _fun69003(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9022:6, offset: 0x01c64639, size: 170 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_3 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({text: {flexShrink: 1}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_status/native/ActivityStatusText.tsx');
|
||||
exports.default = ActivityStatusText;
|
||||
}
|
||||
|
||||
function ActivityStatusText(a0) { // fn#69004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9022:261, offset: 0x01c646e3, size: 170 bytes, params: 2, frame: 20
|
||||
const children = a0.children;
|
||||
const style = a0.style;
|
||||
let variant = a0.variant;
|
||||
variant = variant === undefined ? 'text-xs/medium' : variant;
|
||||
const object2 = {'children': 0, 'style': 0, 'variant': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object2, undefined);
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant={variant}
|
||||
color="text-muted"
|
||||
style={[styles.text, style]}
|
||||
lineClamp={1}
|
||||
{...value}
|
||||
>
|
||||
{children}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 8833; source: modules/activity_status/native/ApplicationStreamActivityStatus.tsx; dependencies: [31, 33, 1244, 8834, 8835, 8837, 2] */
|
||||
function _fun68996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9018:6, offset: 0x01c64233, size: 157 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.Fragment;
|
||||
const env0_5 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_status/native/ApplicationStreamActivityStatus.tsx');
|
||||
exports.default = ApplicationStreamActivityStatus;
|
||||
}
|
||||
|
||||
function ApplicationStreamActivityStatus({game, iconStyle, textStyle, maxFontSizeMultiplier, hideIcon, hideText}) { // fn#68997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9018:254, offset: 0x01c642d0, size: 394 bytes, params: 2, frame: 26
|
||||
var r7;
|
||||
var r9;
|
||||
var value4;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var jsxRuntimeEnv0_4Binding;
|
||||
var items2;
|
||||
hideIcon = !(hideIcon === undefined) && hideIcon;
|
||||
hideText = !(hideText === undefined) && hideText;
|
||||
if (hideIcon) {
|
||||
if (hideText) {
|
||||
return null;
|
||||
}
|
||||
value4 = null;
|
||||
r7 = (value4 == game ? undefined : game.name) === '' ? value4 : value4 == game ? undefined : game.name;
|
||||
r9 = value4 != r7 ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0wJXSh'],
|
||||
{name: r7}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eXan7B);
|
||||
jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
||||
r7 = !hideIcon && ((Component) => <Component icon={(require(8835) /* metro dependency 8835: TvIcon */).TvIcon} style={iconStyle} />)(importDefault(8834) /* metro dependency 8834: ActivityStatusIcon */);
|
||||
items2 = [r7];
|
||||
items2[1] = !hideText && ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{r9}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
value4 = null;
|
||||
r7 = (value4 == game ? undefined : game.name) === '' ? value4 : value4 == game ? undefined : game.name;
|
||||
return (
|
||||
<>
|
||||
{!hideIcon && ((Component) => <Component icon={(require(8835) /* metro dependency 8835: TvIcon */).TvIcon} style={iconStyle} />)(importDefault(8834) /* metro dependency 8834: ActivityStatusIcon */)}
|
||||
{!hideText && ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{value4 != r7 ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0wJXSh'],
|
||||
{name: r7}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eXan7B)}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 8839; source: modules/activity_status/native/PresenceActivityStatus.tsx; dependencies: [31, 661, 33, 6885, 8658, 8840, 8841, 8835, 8843, 8834, 8837, 2] */
|
||||
function _fun69007(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9024:6, offset: 0x01c6481e, size: 179 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.Fragment;
|
||||
const env0_6 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_status/native/PresenceActivityStatus.tsx');
|
||||
exports.default = PresenceActivityStatus;
|
||||
}
|
||||
|
||||
function PresenceActivityStatus({activity, iconStyle, textStyle, maxFontSizeMultiplier, hideIcon, hideText}) { // fn#69008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9024:270, offset: 0x01c648d1, size: 506 bytes, params: 2, frame: 25
|
||||
var r14;
|
||||
var r7;
|
||||
var r5;
|
||||
var value;
|
||||
var text;
|
||||
var jsxRuntimeEnv0_5Binding;
|
||||
var items2;
|
||||
hideIcon = !(hideIcon === undefined) && hideIcon;
|
||||
hideText = !(hideText === undefined) && hideText;
|
||||
if (hideIcon) {
|
||||
if (hideText) {
|
||||
return null;
|
||||
}
|
||||
text = (importDefault(8843) /* metro dependency 8843: getActivityStatusText */)(activity, true).text;
|
||||
r14 = (importDefault(6885) /* metro dependency 6885: isEmbeddedActivity */)(activity) ? (require(8840) /* metro dependency 8840: AppsIcon */).AppsIcon : activity.type === ActivityTypes.PLAYING ? (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon : activity.type === ActivityTypes.LISTENING ? (require(8841) /* metro dependency 8841: MusicIcon */).MusicIcon : activity.type === ActivityTypes.WATCHING || activity.type === ActivityTypes.STREAMING ? (require(8835) /* metro dependency 8835: TvIcon */).TvIcon : activity.type !== ActivityTypes.COMPETING ? null : (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon;
|
||||
jsxRuntimeEnv0_5Binding = jsxRuntimeEnv0_5;
|
||||
r7 = !hideIcon && r14 != null;
|
||||
r7 = r7 && ((Component) => <Component icon={r14} style={iconStyle} />)(importDefault(8834) /* metro dependency 8834: ActivityStatusIcon */);
|
||||
items2 = [r7];
|
||||
if (hideText) {
|
||||
r5 = !hideText;
|
||||
} else {
|
||||
value = importDefault(8837) /* metro dependency 8837: ActivityStatusText */;
|
||||
value = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{text}</Component>)(value);
|
||||
r5 = value;
|
||||
}
|
||||
items2[1] = r5;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
text = (importDefault(8843) /* metro dependency 8843: getActivityStatusText */)(activity, true).text;
|
||||
r14 = (importDefault(6885) /* metro dependency 6885: isEmbeddedActivity */)(activity) ? (require(8840) /* metro dependency 8840: AppsIcon */).AppsIcon : activity.type === ActivityTypes.PLAYING ? (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon : activity.type === ActivityTypes.LISTENING ? (require(8841) /* metro dependency 8841: MusicIcon */).MusicIcon : activity.type === ActivityTypes.WATCHING || activity.type === ActivityTypes.STREAMING ? (require(8835) /* metro dependency 8835: TvIcon */).TvIcon : activity.type !== ActivityTypes.COMPETING ? null : (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon;
|
||||
jsxRuntimeEnv0_5Binding = jsxRuntimeEnv0_5;
|
||||
r7 = !hideIcon && r14 != null && ((Component) => <Component icon={r14} style={iconStyle} />)(importDefault(8834) /* metro dependency 8834: ActivityStatusIcon */);
|
||||
if (hideText) {
|
||||
r5 = !hideText;
|
||||
} else {
|
||||
value = importDefault(8837) /* metro dependency 8837: ActivityStatusText */;
|
||||
value = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{text}</Component>)(value);
|
||||
r5 = value;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{r7}
|
||||
{r5}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 8848; source: modules/activity_status/native/VoiceActivityStatus.tsx; dependencies: [31, 33, 4501, 8849, 8837, 1244, 2] */
|
||||
function _fun69022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9033:6, offset: 0x01c65478, size: 196 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.Fragment;
|
||||
const env0_5 = value.jsxs;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({icon: {flexShrink: 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_status/native/VoiceActivityStatus.tsx');
|
||||
exports.default = VoiceActivityStatus;
|
||||
}
|
||||
|
||||
function VoiceActivityStatus({channel, iconStyle, textStyle, maxFontSizeMultiplier, hideIcon, hideText}) { // fn#69023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9033:288, offset: 0x01c6553c, size: 459 bytes, params: 2, frame: 28
|
||||
var r7;
|
||||
var r6;
|
||||
var r0;
|
||||
var jsxRuntimeEnv0_4Binding;
|
||||
var items2;
|
||||
var isGuildStageVoice2;
|
||||
var defaultImport2;
|
||||
var object3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
hideIcon = !(hideIcon === undefined) && hideIcon;
|
||||
hideText = !(hideText === undefined) && hideText;
|
||||
const styles = useStyles();
|
||||
if (hideIcon) {
|
||||
if (hideText) {
|
||||
r0 = null;
|
||||
} else {
|
||||
jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
||||
r7 = !hideIcon && ((Component) => <Component channel={channel} size="xxs" color="status-positive" style={[styles.icon,
|
||||
|
||||
|
||||
iconStyle]} />)(importDefault(8849) /* metro dependency 8849: UserProfileVoiceActivityIcon */);
|
||||
items2 = [r7];
|
||||
if (hideText) {
|
||||
r6 = !hideText;
|
||||
} else {
|
||||
if (channel.isDM()) {
|
||||
r7 = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9FaEzi'])}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
||||
} else if (channel.isGroupDM()) {
|
||||
r7 = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9FaEzi'])}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
||||
} else {
|
||||
isGuildStageVoice2 = channel.isGuildStageVoice();
|
||||
defaultImport2 = importDefault(8837) /* metro dependency 8837: ActivityStatusText */;
|
||||
string = intl.string;
|
||||
r7 = isGuildStageVoice2 ? ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{Reflect.apply(string,
|
||||
|
||||
|
||||
|
||||
|
||||
intl,
|
||||
[t.QygGCN])}</Component>)(defaultImport2) : ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{Reflect.apply(string,
|
||||
|
||||
|
||||
|
||||
|
||||
intl, [t.msxteM])}</Component>)(defaultImport2);
|
||||
}
|
||||
r6 = r7;
|
||||
}
|
||||
items2[1] = r6;
|
||||
r0 = <>{items2}</>;
|
||||
}
|
||||
} else {
|
||||
jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
||||
r7 = !hideIcon && ((Component) => <Component channel={channel} size="xxs" color="status-positive" style={[styles.icon,
|
||||
|
||||
iconStyle]} />)(importDefault(8849) /* metro dependency 8849: UserProfileVoiceActivityIcon */);
|
||||
items2 = [r7];
|
||||
if (hideText) {
|
||||
r6 = !hideText;
|
||||
} else {
|
||||
if (channel.isDM()) {
|
||||
r7 = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9FaEzi'])}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
||||
} else if (channel.isGroupDM()) {
|
||||
r7 = ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9FaEzi'])}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
||||
} else {
|
||||
isGuildStageVoice2 = channel.isGuildStageVoice();
|
||||
defaultImport2 = importDefault(8837) /* metro dependency 8837: ActivityStatusText */;
|
||||
string = intl.string;
|
||||
r7 = isGuildStageVoice2 ? ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{Reflect.apply(string,
|
||||
|
||||
|
||||
|
||||
intl,
|
||||
[t.QygGCN])}</Component>)(defaultImport2) : ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{Reflect.apply(string,
|
||||
|
||||
|
||||
|
||||
intl, [t.msxteM])}</Component>)(defaultImport2);
|
||||
}
|
||||
r6 = r7;
|
||||
}
|
||||
items2[1] = r6;
|
||||
r0 = <>{items2}</>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user