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,258 +1,342 @@
/* Metro module 14979; source: modules/guild_home/native/components/GuildFeedBanner.tsx; dependencies: [31, 27, 12694, 1867, 14980, 661, 33, 4501, 697, 4017, 1478, 4048, 12695, 477, 1423, 8642, 4504, 4507, 566, 7556, 11336, 4002, 14981, 14982, 6819, 4573, 1305, 5278, 3857, 1244, 14983, 2] */
import UseWindowDimensionsNative from '../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UseTheme from '../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import GuildIcon from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import UseIsWindowLarge from '../../../screen/native/useIsWindowLarge.tsx'; /* Metro dependency 7556 */
import GuildPopoutStore from '../../../guild_profile/GuildPopoutStore.tsx'; /* Metro dependency 12694 */
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 FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TimingPresetsModule from '../../../../design/animation/reanimated/timing/timingPresets.tsx'; /* Metro dependency 4507 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as GuildIconModule from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as GuildBadgeModule from '../../../guild/native/GuildBadge.tsx'; /* Metro dependency 8642 */
import * as UseDrawerWidthModule from '../../../screen/native/drawer/useDrawerWidth.tsx'; /* Metro dependency 11336 */
import * as GuildFeedConstantsModule from '../GuildFeedConstants.tsx'; /* Metro dependency 14980 */
function _fun113250(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:6, offset: 0x023f0acb, size: 799 bytes, params: 8, frame: 25
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_4 = value2.View;
const env0_5 = value2.Image;
const guildPopoutStore = importDefault(12694) /* metro dependency 12694: GuildPopoutStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const guildFeedConstantsModule = require(14980) /* metro dependency 14980: GuildFeedConstants */;
const GUILD_FEED_CARD_MARGIN_HORIZONTAL = guildFeedConstantsModule.GUILD_FEED_CARD_MARGIN_HORIZONTAL;
const env0_9 = guildFeedConstantsModule.GUILD_FEED_MIN_BANNER_HEIGHT;
const env0_10 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
const value4 = require(33) /* metro dependency 33 */;
const env0_11 = value4.jsx;
const env0_12 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'borderRadius': null, 'height': 64, 'width': 64};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object3.avatar = object4;
let value = ReactModule;
const GUILD_FEED_CARD_MARGIN_HORIZONTAL = GuildFeedConstantsModule.GUILD_FEED_CARD_MARGIN_HORIZONTAL;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'borderRadius': null, 'height': 64, 'width': 64};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.avatar = object2;
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object3.container = {paddingBottom: 24, backgroundColor: BACKGROUND_SURFACE_HIGH};
object3.description = {marginTop: 4};
object3.textContainer = {'marginTop': null, 'alignItems': 'center', 'flexDirection': 'row',
object.container = {paddingBottom: 24, backgroundColor: BACKGROUND_SURFACE_HIGH};
object.description = {marginTop: 4};
object.textContainer = {'marginTop': null, 'alignItems': 'center', 'flexDirection': 'row',
marginTop: GUILD_FEED_CARD_MARGIN_HORIZONTAL};
object3.content = {width: '100%'};
object3.icon = {marginLeft: 8};
object.content = {width: '100%'};
object.icon = {marginLeft: 8};
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object3.headerContainer = {alignItems: 'center', backgroundColor: BACKGROUND_SURFACE_HIGH};
const object5 = {};
object5.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object5.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object5.marginTop = -16;
object3.headerBorder = object5;
const object6 = {'padding': 4, 'borderRadius': null, 'alignSelf': 'flex-start'};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.headerContainer = {alignItems: 'center', backgroundColor: BACKGROUND_SURFACE_HIGH};
const object8 = {};
object8.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object8.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object8.marginTop = -16;
object.headerBorder = object8;
const object9 = {'padding': 4, 'borderRadius': null, 'alignSelf': 'flex-start'};
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
object3.guildIconContainer = object6;
const object7 = {'width': 4, 'height': 4, 'borderRadius': null, 'marginRight': 4};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object9.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.guildIconContainer = object9;
const object10 = {'width': 4, 'height': 4, 'borderRadius': null, 'marginRight': 4};
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object7.backgroundColor = GREEN_360;
object3.dotOnline = object7;
object3.publicInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginRight': 12};
object3.publicIcon = {'marginRight': 4, 'width': 14, 'height': 14};
object3.memberInfo = {'marginTop': 4, 'flexDirection': 'row', 'alignItems': 'center'};
object3.title = {maxWidth: '90%'};
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object3]);
object3 = {code: 'function GuildFeedBannerTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}'};
object10.backgroundColor = GREEN_360;
object.dotOnline = object10;
object.publicInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginRight': 12};
object.publicIcon = {'marginRight': 4, 'width': 14, 'height': 14};
object.memberInfo = {'marginTop': 4, 'flexDirection': 'row', 'alignItems': 'center'};
object.title = {maxWidth: '90%'};
const env0_13 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function GuildFeedBannerTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}'};
value = value.memo(_fun113259);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_home/native/components/GuildFeedBanner.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_home/native/components/GuildFeedBanner.tsx');
exports.default = value;
}
function GuildFeedBanner({guild, description, hideDescription, hideMemberCount}) { // fn#113251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1374, offset: 0x023f0dea, size: 1736 bytes, params: 2, frame: 43
var r4;
var r16;
var object;
var features;
var PressableOpacity;
var items9;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items10;
var Fragment;
var items11;
let env0_3 = undefined;
const styles = useStyles();
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = GuildFeedBannerY;
closure.__closure = {opacity: value3};
closure.__workletHash = 10872399645496;
closure.__initData = env0_14;
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
const Math = global.Math;
const value6 = Math.max(0.22 * height, GUILD_FEED_MIN_BANNER_HEIGHT);
const value7 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const binding = env0_3;
binding.useEffect(_fun113253, [guild]);
const value8 = binding.useMemo(_fun113254, [guild]);
const name = guild.name;
description = description ?? guild.description;
description = hideDescription ? undefined : description;
const guildBadgeSource = (require(8642) /* metro dependency 8642: GuildBadge */).getGuildBadgeSource(guild);
closure = onLoad_113255;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
const discoverableGuild = Reflect.apply(useStateFromStoresObject, fluxModule, [[GuildPopoutStore], function() {
var object = {};
object.discoverableGuild = GuildPopoutStore.getGuild(guild.id);
return object;
}, [guild]]).discoverableGuild;
const value11 = (importDefault(7556) /* metro dependency 7556: useIsWindowLarge */)();
const value12 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
const width = value12.width;
env0_3 = width;
const value14 = env0_3.useMemo(_fun113257, [width, value12.height, value11,
(require(11336) /* metro dependency 11336: useDrawerWidth */).useDrawerWidth()]);
if (value8 != null) {
r4 = {style: [{height: value6, width: '100%'}, value4], source: value8, onLoad: closure};
} else {
object = {};
object.style = [{height: value6, width: '100%'}, value4];
object.source = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value7) ? importDefault(14981) /* metro dependency 14981 */ : importDefault(14982) /* metro dependency 14982 */;
object.onLoad = closure;
r4 = object;
}
const image = <Image {...r4} />;
const items5 = [styles.headerContainer];
items5[1] = styles.headerBorder;
const items6 = [styles.content];
items6[1] = {width: value14, marginTop: -32};
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const XLARGE = GuildIconSizes.XLARGE;
const items7 = [<View style={styles.guildIconContainer}><GuildIcon style={styles.avatar} guild={guild} size={XLARGE} animate /></View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items7[1] = <View style={styles.textContainer}><Text lineClamp={1} variant="heading-xl/extrabold" color="mobile-text-heading-primary" style={styles.title}>{name}</Text>{guildBadgeSource != null ? ((Icon) => <Icon style={styles.icon} source={guildBadgeSource} disableColor />)((require(1305) /* metro dependency 1305: native */).Icon) : null}</View>;
items7[2] = description != null ? <Text style={styles.description} variant="text-sm/medium" color="text-default">{description}</Text> : null;
let r11 = discoverableGuild != null && !hideMemberCount;
if (r11) {
var viewBinding3Props = {style: styles.memberInfo};
features = discoverableGuild.features;
if (features.has(GuildFeatures.DISCOVERABLE)) {
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
var pressableOpacityProps = {style: styles.publicInfo, accessibilityRole: 'button', onPress: function() {
var defaultImport = importDefault(dependencyMap[28]);
var object = {key: 'DISCOVERABLE_GUILD_HEADER_PUBLIC_INFO'};
object.content = require(dependencyMap[29]).intl.string(require(dependencyMap[29]).t.O8lDI2);
defaultImport.open(object);
}};
items9 = [((Icon) => <Icon style={styles.publicIcon} source={importDefault(14983) /* metro dependency 14983 */} />)((require(1305) /* metro dependency 1305: native */).Icon)];
items9[1] = <Text variant="text-xs/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['B/vjCu'])}</Text>;
r16 = <PressableOpacity {...pressableOpacityProps}>{items9}</PressableOpacity>;
function GuildFeedBanner({guild, description, hideDescription, hideMemberCount}) { // fn#113251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1374, offset: 0x023f0dea, size: 1736 bytes, params: 2, frame: 43
var r4;
var r16;
var object2;
var features;
var PressableOpacity;
var items9;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items10;
var Fragment;
var items11;
let env0_3 = undefined;
const styles = useStyles();
const value3 = (ReanimatedRexportModule).useSharedValue(0);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
let closure = GuildFeedBannerY;
closure.__closure = {opacity: value3};
closure.__workletHash = 10872399645496;
closure.__initData = env0_14;
const value4 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const height = (UseWindowDimensionsNative)().height;
const Math = global.Math;
const value6 = Math.max(0.22 * height, GUILD_FEED_MIN_BANNER_HEIGHT);
const value7 = (UseTheme)();
const binding = env0_3;
binding.useEffect(_fun113253, [guild]);
const value8 = binding.useMemo(_fun113254, [guild]);
const name = guild.name;
description = description ?? guild.description;
description = hideDescription ? undefined : description;
const guildBadgeSource = (GuildBadgeModule).getGuildBadgeSource(guild);
closure = onLoad_113255;
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const discoverableGuild = Reflect.apply(useStateFromStoresObject, FluxModule, [[GuildPopoutStore], function() {
var object = {};
object.discoverableGuild = GuildPopoutStore.getGuild(guild.id);
return object;
}, [guild]]).discoverableGuild;
const value11 = (UseIsWindowLarge)();
const value12 = (UseWindowDimensionsNative)();
const width = value12.width;
env0_3 = width;
const value14 = env0_3.useMemo(_fun113257, [width, value12.height, value11,
(UseDrawerWidthModule).useDrawerWidth()]);
if (value8 != null) {
r4 = {style: [{height: value6, width: '100%'}, value4], source: value8, onLoad: closure};
} else {
r16 = null;
object2 = {};
object2.style = [{height: value6, width: '100%'}, value4];
object2.source = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value7) ? importDefault(14981) /* metro dependency 14981 */ : importDefault(14982) /* metro dependency 14982 */;
object2.onLoad = closure;
r4 = object2;
}
items10 = [r16];
if (discoverableGuild.presenceCount != null) {
if (discoverableGuild.memberCount != null) {
Fragment = env0_3.Fragment;
items11 = [<View style={styles.dotOnline} />];
items11[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.QCNv6P,
{online: discoverableGuild.presenceCount, offline: discoverableGuild.memberCount})}</Text>;
r16 = <Fragment>{items11}</Fragment>;
const image = <Image {...r4} />;
const items5 = [styles.headerContainer];
items5[1] = styles.headerBorder;
const items6 = [styles.content];
items6[1] = {width: value14, marginTop: -32};
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const XLARGE = GuildIconSizes.XLARGE;
const items7 = [
<View style={styles.guildIconContainer}>
<GuildIcon
style={styles.avatar}
guild={guild}
size={XLARGE}
animate
/>
</View>,
];
const Text = (TextModule).Text;
items7[1] = (
<View style={styles.textContainer}>
<Text
lineClamp={1}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
style={styles.title}
>
{name}
</Text>
{
guildBadgeSource != null
? ((Icon) => <Icon style={styles.icon} source={guildBadgeSource} disableColor />)((require(1305) /* metro dependency 1305: native */).Icon)
: null
}
</View>
);
items7[2] = (
description != null
? (
<Text
style={styles.description}
variant="text-sm/medium"
color="text-default"
>
{description}
</Text>
)
: null
);
let r11 = discoverableGuild != null && !hideMemberCount;
if (r11) {
var viewBinding3Props = {style: styles.memberInfo};
features = discoverableGuild.features;
if (features.has(GuildFeatures.DISCOVERABLE)) {
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
var pressableOpacityProps = {style: styles.publicInfo, accessibilityRole: 'button', onPress: function() {
var defaultImport = importDefault(dependencyMap[28]);
var object = {key: 'DISCOVERABLE_GUILD_HEADER_PUBLIC_INFO'};
object.content = require(dependencyMap[29]).intl.string(require(dependencyMap[29]).t.O8lDI2);
defaultImport.open(object);
}};
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
items9 = [
<Icon style={styles.publicIcon} source={importDefault(14983) /* metro dependency 14983 */} />,
];
items9[1] = (
<Text variant="text-xs/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['B/vjCu'])}
</Text>
);
r16 = (
<PressableOpacity {...pressableOpacityProps}>
{items9}
</PressableOpacity>
);
} else {
r16 = null;
}
} else {
r16 = null;
items10 = [r16];
if (discoverableGuild.presenceCount != null) {
if (discoverableGuild.memberCount != null) {
Fragment = env0_3.Fragment;
items11 = [
<View style={styles.dotOnline} />,
];
items11[1] = (
<Text variant="text-xs/medium" color="text-default">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.QCNv6P,
{online: discoverableGuild.presenceCount, offline: discoverableGuild.memberCount})}
</Text>
);
r16 = (
<Fragment>
{items11}
</Fragment>
);
} else {
r16 = null;
}
} else {
r16 = null;
}
items10[1] = r16;
r11 = (
<View {...viewBinding3Props}>
{items10}
</View>
);
}
items10[1] = r16;
r11 = <View {...viewBinding3Props}>{items10}</View>;
}
items7[3] = r11;
return (
<View style={styles.container}>
{image}
<View style={items5}>
<View style={items6}>
{items7}
items7[3] = r11;
return (
<View style={styles.container}>
{image}
<View style={items5}>
<View style={items6}>
{items7}
</View>
</View>
</View>
</View>
);
}
);
function GuildFeedBannerY() { // fn#113252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1509, owner: GuildFeedBanner.y, offset: 0x01c1ea9c, size: 24 bytes, params: 1, frame: 10
const object = {};
object.opacity = env0_1.get();
return object;
}
function _fun113259({guildId, description, hideDescription, hideMemberCount}) { // fn#113259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:3995, offset: 0x023f1723, size: 131 bytes, params: 2, frame: 19
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
return guild == null ? null : <GuildFeedBanner guild={guild} description={description} hideDescription={hideDescription} hideMemberCount={hideMemberCount} />;
}
function _fun113253() { // fn#113253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1671, offset: 0x023f14b2, size: 50 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(12695) /* metro dependency 12695: GuildPopoutActionCreators */;
value.fetchGuildForPopout(guild.id);
}
function _fun113253() { // fn#113253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1671, offset: 0x023f14b2, size: 50 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(12695) /* metro dependency 12695: GuildPopoutActionCreators */;
value.fetchGuildForPopout(guild.id);
}
function _fun113254() { // fn#113254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1735, offset: 0x023f14e4, size: 244 bytes, params: 1, frame: 19
var r7;
var r5;
var r0;
var moduleValue;
var defaultImport;
var getGuildBannerSource;
var defaultImport2;
var getGuildHomeHeaderSource;
const features = guild.features;
const has = features.has;
const ANIMATED_BANNER = GuildFeatures.ANIMATED_BANNER;
const value3 = Reflect.apply(has, features, [ANIMATED_BANNER]);
if (value3) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
r7 = !moduleValue.isAndroid();
} else {
r7 = value3;
}
const banner = guild.banner;
const value5 = null;
if (value5 != banner) {
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildBannerSource = defaultImport.getGuildBannerSource;
guildBinding = guild;
r5 = Reflect.apply(getGuildBannerSource, defaultImport, [{id: guildBinding.id, banner: guildBinding.banner},
r7]);
} else {
r5 = value5;
}
guildBinding = guild;
if (value5 == guildBinding) {
r0 = r5;
} else if (value5 == guild.homeHeader) {
r0 = r5;
} else {
defaultImport2 = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildHomeHeaderSource = defaultImport2.getGuildHomeHeaderSource;
guildBinding = guild;
r0 = Reflect.apply(getGuildHomeHeaderSource, defaultImport2, [{id: guildBinding.id,
homeHeader: guildBinding.homeHeader}]);
}
return r0;
}
function GuildFeedBannerOnLoad() { // fn#113255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:2095, owner: GuildFeedBanner.onLoad, offset: 0x023f15d8, size: 76 bytes, params: 1, frame: 17
const binding = env0_1;
const set = binding.set;
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [value.withTiming(1,
(TimingPresetsModule).timingSlow)]);
}
function _fun113257() { // fn#113257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:2347, offset: 0x023f164b, size: 109 bytes, params: 1, frame: 16
var value3;
let Math = global.Math;
const value2 = Math.min(width, height);
if (env0_2) {
Math = global.Math;
value3 = Math.max(width, height);
Math = global.Math;
return Math.min(value3 - ReactNativeModule.Image, value2);
}
return value2 - 2 * GUILD_FEED_CARD_MARGIN_HORIZONTAL;
}
function _fun113254() { // fn#113254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1735, offset: 0x023f14e4, size: 244 bytes, params: 1, frame: 19
var r7;
var r5;
var r0;
var moduleValue;
var defaultImport;
var getGuildBannerSource;
var defaultImport2;
var getGuildHomeHeaderSource;
const features = guild.features;
const has = features.has;
const ANIMATED_BANNER = GuildFeatures.ANIMATED_BANNER;
const value3 = Reflect.apply(has, features, [ANIMATED_BANNER]);
if (value3) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
r7 = !moduleValue.isAndroid();
} else {
r7 = value3;
}
const banner = guild.banner;
const value5 = null;
if (value5 != banner) {
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildBannerSource = defaultImport.getGuildBannerSource;
guildBinding = guild;
r5 = Reflect.apply(getGuildBannerSource, defaultImport, [{id: guildBinding.id, banner: guildBinding.banner},
r7]);
} else {
r5 = value5;
function _fun113259({guildId, description, hideDescription, hideMemberCount}) { // fn#113259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:3995, offset: 0x023f1723, size: 131 bytes, params: 2, frame: 19
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
return (
guild == null
? null
: (
<GuildFeedBanner
guild={guild}
description={description}
hideDescription={hideDescription}
hideMemberCount={hideMemberCount}
/>
)
);
}
guildBinding = guild;
if (value5 == guildBinding) {
r0 = r5;
} else if (value5 == guild.homeHeader) {
r0 = r5;
} else {
defaultImport2 = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildHomeHeaderSource = defaultImport2.getGuildHomeHeaderSource;
guildBinding = guild;
r0 = Reflect.apply(getGuildHomeHeaderSource, defaultImport2, [{id: guildBinding.id,
homeHeader: guildBinding.homeHeader}]);
}
return r0;
}
function GuildFeedBannerOnLoad() { // fn#113255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:2095, owner: GuildFeedBanner.onLoad, offset: 0x023f15d8, size: 76 bytes, params: 1, frame: 17
const binding = env0_1;
const set = binding.set;
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [value.withTiming(1,
(require(4507) /* metro dependency 4507: timingPresets */).timingSlow)]);
}
function _fun113257() { // fn#113257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:2347, offset: 0x023f164b, size: 109 bytes, params: 1, frame: 16
var value3;
let Math = global.Math;
const value2 = Math.min(width, height);
if (env0_2) {
Math = global.Math;
value3 = Math.max(width, height);
Math = global.Math;
return Math.min(value3 - env0_5, value2);
}
return value2 - 2 * GUILD_FEED_CARD_MARGIN_HORIZONTAL;
}
global.__d(_fun113250, 14979, [31, 27, 12694, 1867, 14980, 661, 33, 4501, 697, 4017, 1478, 4048, 12695, 477, 1423,
8642, 4504, 4507, 566, 7556, 11336, 4002, 14981, 14982, 6819, 4573, 1305, 5278, 3857, 1244, 14983,
2]) /* metro module 14979, dependencies: [31, 27, 12694, 1867, 14980, 661, 33, 4501, 697, 4017, 1478, 4048, 12695, 477, 1423, 8642, 4504, 4507, 566, 7556, 11336, 4002, 14981, 14982, 6819, 4573, 1305, 5278, 3857, 1244, 14983, 2] */;
@@ -1,44 +1,51 @@
/* Metro module 14588; source: modules/guild_home/native/components/guild_sidebar/GuildHomeChannelRow.tsx; dependencies: [31, 661, 1386, 10980, 33, 4501, 697, 1230, 11846, 1244, 12374, 2] */
import BaseChannelItem from '../../../../guild_sidebar/native/BaseChannelItem.tsx'; /* Metro dependency 11846 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
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 ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ChannelConstantsModule from '../../../../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as RedesignChannelListConstantsModule from '../../../../channel_list_v2/native/RedesignChannelListConstants.tsx'; /* Metro dependency 10980 */
import * as BaseChannelItemModule from '../../../../guild_sidebar/native/BaseChannelItem.tsx'; /* Metro dependency 11846 */
import * as SignPostIconModule from '../../../../../design/components/Icon/native/redesign/generated/SignPostIcon.tsx'; /* Metro dependency 12374 */
function _fun110328(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14785:6, offset: 0x02374dd1, size: 278 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(661) /* metro dependency 661: Constants */).Routes;
const env0_5 = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoute;
const CHANNEL_MARGIN_VERTICAL = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).CHANNEL_MARGIN_VERTICAL;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_7 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_home/native/components/guild_sidebar/GuildHomeChannelRow.tsx');
const CHANNEL_MARGIN_VERTICAL = (RedesignChannelListConstantsModule).CHANNEL_MARGIN_VERTICAL;
const createStyles = CreateStylesModule.createStyles;
const object2 = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_7 = Reflect.apply(createStyles, CreateStylesModule, [{container: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/guild_home/native/components/guild_sidebar/GuildHomeChannelRow.tsx');
exports.default = GuildHomeChannelRow;
function GuildHomeChannelRow({guild, selected}) { // fn#110329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14785:423, offset: 0x02374ee7, size: 364 bytes, params: 2, frame: 22
const styles = useStyles();
const value2 = ReactModule.useCallback(function() {
require(dependencyMap[7]).transitionTo(Routes.CHANNEL(id, StaticChannelRoute.GUILD_HOME));
}, [guild.id]);
const ChannelModes = (BaseChannelItemModule).ChannelModes;
const r6 = selected ? ChannelModes.SELECTED : ChannelModes.DEFAULT;
const defaultImportProps = {onPress: value2, style: styles.container, accessible: true};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
let VbpLyU = (require(1244) /* metro dependency 1244: indexNative */).t.VbpLyU;
defaultImportProps.accessibilityLabel = Reflect.apply(string, intl, [VbpLyU]);
defaultImportProps.accessibilityState = {selected: selected};
defaultImportProps.mode = r6;
const BaseChannelName = (BaseChannelItemModule).BaseChannelName;
string = intl.string;
VbpLyU = (require(1244) /* metro dependency 1244: indexNative */).t.VbpLyU;
defaultImportProps.name = <BaseChannelName name={Reflect.apply(string, intl, [VbpLyU])} mode={r6} />;
const BaseChannelIcon = (BaseChannelItemModule).BaseChannelIcon;
const SignPostIcon = (SignPostIconModule).SignPostIcon;
defaultImportProps.icon = <BaseChannelIcon mode={r6} IconComponent={SignPostIcon} />;
return <BaseChannelItem {...defaultImportProps} />;
}
}
function GuildHomeChannelRow({guild, selected}) { // fn#110329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14785:423, offset: 0x02374ee7, size: 364 bytes, params: 2, frame: 22
const styles = useStyles();
const value2 = env0_3.useCallback(function() {
require(dependencyMap[7]).transitionTo(Routes.CHANNEL(id, StaticChannelRoute.GUILD_HOME));
}, [guild.id]);
const ChannelModes = (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes;
const r6 = selected ? ChannelModes.SELECTED : ChannelModes.DEFAULT;
const BaseChannelItem = importDefault(11846) /* metro dependency 11846: BaseChannelItem */;
const defaultImportProps = {onPress: value2, style: styles.container, accessible: true};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
let VbpLyU = (require(1244) /* metro dependency 1244: indexNative */).t.VbpLyU;
defaultImportProps.accessibilityLabel = Reflect.apply(string, intl, [VbpLyU]);
defaultImportProps.accessibilityState = {selected: selected};
defaultImportProps.mode = r6;
const BaseChannelName = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelName;
string = intl.string;
VbpLyU = (require(1244) /* metro dependency 1244: indexNative */).t.VbpLyU;
defaultImportProps.name = <BaseChannelName name={Reflect.apply(string, intl, [VbpLyU])} mode={r6} />;
const BaseChannelIcon = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelIcon;
const SignPostIcon = (require(12374) /* metro dependency 12374: SignPostIcon */).SignPostIcon;
defaultImportProps.icon = <BaseChannelIcon mode={r6} IconComponent={SignPostIcon} />;
return <BaseChannelItem {...defaultImportProps} />;
}
global.__d(_fun110328, 14588, [31, 661, 1386, 10980, 33, 4501, 697, 1230, 11846, 1244, 12374,
2]) /* metro module 14588, dependencies: [31, 661, 1386, 10980, 33, 4501, 697, 1230, 11846, 1244, 12374, 2] */;