This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,33 +1,81 @@
/* Metro module 14697; source: modules/guild_sidebar/native/ChannelBadge.tsx; dependencies: [31, 27, 1949, 33, 4501, 632, 14698, 11819, 4573, 1856, 2] */
import LocaleStore from '../../user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun110877(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14894:6, offset: 0x0238acc2, size: 208 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
ReactModule;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
return {channelInfoContainer: {paddingStart: 4}};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/ChannelBadge.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_sidebar/native/ChannelBadge.tsx');
exports.default = ChannelBadge;
}
function ChannelBadge({mentionCount, isMentionLowImportance, isNewChannel, postsWithUnreadsCount, muted}) { // fn#110879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14894:305, offset: 0x0238ada5, size: 394 bytes, params: 2, frame: 25
var r0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var value;
const styles = useStyles();
const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore],
function() {
return LocaleStore.locale;
});
if (mentionCount == null) {
if (isNewChannel) {
function ChannelBadge({mentionCount, isMentionLowImportance, isNewChannel, postsWithUnreadsCount, muted}) { // fn#110879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14894:305, offset: 0x0238ada5, size: 394 bytes, params: 2, frame: 25
var r0;
const Text = (TextModule).Text;
var value;
const styles = useStyles();
const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore],
function() {
return LocaleStore.locale;
});
if (mentionCount == null) {
if (isNewChannel) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = importDefault(11819) /* metro dependency 11819: NewBadge */;
value = (
<View {...viewBindingProps}>
{((Component) => <Component />)(value)}
</View>
);
r0 = value;
} else if (muted != null) {
if (muted) {
r0 = null;
} else if (postsWithUnreadsCount != null) {
if (postsWithUnreadsCount > 0) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = require(1856) /* metro dependency 1856: NumberUtils */;
value = (
<View {...viewBindingProps}>
<Text variant="text-xs/semibold" color="text-muted">
{value.humanizeValue(postsWithUnreadsCount, locale)}
</Text>
</View>
);
r0 = value;
} else {
r0 = null;
}
} else {
r0 = null;
}
} else {
r0 = null;
}
} else if (mentionCount > 0) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = importDefault(14698) /* metro dependency 14698: MentionsBadge */;
value = (
<View {...viewBindingProps}>
{((Component) => <Component mentionsCount={mentionCount} isMentionLowImportance={isMentionLowImportance} />)(value)}
</View>
);
r0 = value;
} else if (isNewChannel) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = importDefault(11819) /* metro dependency 11819: NewBadge */;
value = <View {...viewBindingProps}>{((Component) => <Component />)(value)}</View>;
value = (
<View {...viewBindingProps}>
{((Component) => <Component />)(value)}
</View>
);
r0 = value;
} else if (muted != null) {
if (muted) {
@@ -36,12 +84,13 @@ function ChannelBadge({mentionCount, isMentionLowImportance, isNewChannel, posts
if (postsWithUnreadsCount > 0) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = require(1856) /* metro dependency 1856: NumberUtils */;
value = <View {...viewBindingProps}><Text variant="text-xs/semibold" color="text-muted">{value.humanizeValue(postsWithUnreadsCount,
locale)}</Text></View>;
value = (
<View {...viewBindingProps}>
<Text variant="text-xs/semibold" color="text-muted">
{value.humanizeValue(postsWithUnreadsCount, locale)}
</Text>
</View>
);
r0 = value;
} else {
r0 = null;
@@ -52,38 +101,10 @@ function ChannelBadge({mentionCount, isMentionLowImportance, isNewChannel, posts
} else {
r0 = null;
}
} else if (mentionCount > 0) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = importDefault(14698) /* metro dependency 14698: MentionsBadge */;
value = <View {...viewBindingProps}>{((Component) => <Component mentionsCount={mentionCount} isMentionLowImportance={isMentionLowImportance} />)(value)}</View>;
r0 = value;
} else if (isNewChannel) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = importDefault(11819) /* metro dependency 11819: NewBadge */;
value = <View {...viewBindingProps}>{((Component) => <Component />)(value)}</View>;
r0 = value;
} else if (muted != null) {
if (muted) {
r0 = null;
} else if (postsWithUnreadsCount != null) {
if (postsWithUnreadsCount > 0) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = require(1856) /* metro dependency 1856: NumberUtils */;
value = <View {...viewBindingProps}><Text variant="text-xs/semibold" color="text-muted">{value.humanizeValue(postsWithUnreadsCount,
locale)}</Text></View>;
r0 = value;
} else {
r0 = null;
}
} else {
r0 = null;
}
} else {
r0 = null;
return r0;
}
return r0;
}
global.__d(_fun110877, 14697, [31, 27, 1949, 33, 4501, 632, 14698, 11819, 4573, 1856,
2]) /* metro module 14697, dependencies: [31, 27, 1949, 33, 4501, 632, 14698, 11819, 4573, 1856, 2] */;