Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,60 @@
|
||||
/* Metro module 15343; source: modules/launchpad/native/shared/ChannelSubtitle.tsx; dependencies: [31, 10980, 33, 15332, 4573, 14694, 10978, 2] */
|
||||
function _fun117284(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15540:6, offset: 0x024ad419, size: 171 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(10980) /* metro dependency 10980: RedesignChannelListConstants */).SUBTITLE_OPACITY_NORMAL;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/ChannelSubtitle.tsx');
|
||||
exports.renderChannelSubtitle = renderChannelSubtitle_117286;
|
||||
}
|
||||
|
||||
function ChannelSubtitle_117285({muted, connected, channelId, guildId, subtitle, textProps}) { // fn#117285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15540:152, offset: 0x024ad4c4, size: 246 bytes, params: 2, frame: 23
|
||||
let value = environment;
|
||||
const channelSubtitleData = (require(14694) /* metro dependency 14694: getChannelSubtitleData */).getChannelSubtitleData(subtitle);
|
||||
if (channelSubtitleData == null) {
|
||||
return null;
|
||||
}
|
||||
const r8 = channelSubtitleData.type === 'voice' && connected;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const textProps2 = {...textProps};
|
||||
value = Reflect.apply((require(10978) /* metro dependency 10978: MessagePreviewMarkup */).renderMessagePreviewMarkup,
|
||||
value, [{content: channelSubtitleData.subtitle, muted: muted != null && muted, channelId: channelId,
|
||||
guildId: guildId, disableAnimatedEmoji: !r8, color: muted ? 'text-muted' : 'text-subtle'}]);
|
||||
return (
|
||||
<Text {...textProps2}>
|
||||
{value}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function renderChannelSubtitle_117286({subtitle, muted, channelId, guildId, connected}) { // fn#117286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15540:637, offset: 0x024ad5ba, size: 242 bytes, params: 2, frame: 21
|
||||
if (subtitle == null) {
|
||||
return null;
|
||||
}
|
||||
const textProps = {'variant': null, 'color': 'text-muted', 'lineClamp': 1, 'maxFontSizeMultiplier': 1.75,
|
||||
variant: (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)().messagePreview.text.variant};
|
||||
const SUBTITLE_OPACITY_NORMAL2 = muted ? 1 : SUBTITLE_OPACITY_NORMAL;
|
||||
textProps.style = {opacity: SUBTITLE_OPACITY_NORMAL2};
|
||||
if (typeof subtitle === 'string') {
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text {...textProps}>
|
||||
{subtitle}
|
||||
</Text>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<ChannelSubtitle_117285
|
||||
channelId={channelId}
|
||||
guildId={guildId}
|
||||
subtitle={subtitle}
|
||||
muted={muted}
|
||||
connected={connected}
|
||||
textProps={textProps}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/* Metro module 15338; source: modules/launchpad/native/shared/ChannelTitle.tsx; dependencies: [31, 4865, 33, 4501, 697, 15332, 4573, 2] */
|
||||
function _fun117269(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15535:6, offset: 0x024ac600, size: 281 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyleProperties = createStylesModule.createStyleProperties;
|
||||
object2 = {};
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object2.muted = TEXT_MUTED;
|
||||
const REDESIGN_CHANNEL_NAME_MUTED_TEXT = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_CHANNEL_NAME_MUTED_TEXT;
|
||||
object2.normal = REDESIGN_CHANNEL_NAME_MUTED_TEXT;
|
||||
const REDESIGN_CHANNEL_NAME_TEXT = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_CHANNEL_NAME_TEXT;
|
||||
object2.unreadOrConnected = REDESIGN_CHANNEL_NAME_TEXT;
|
||||
const env0_6 = Reflect.apply(createStyleProperties, createStylesModule, [object2]);
|
||||
value = value.memo(ChannelTitle_117270);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/ChannelTitle.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function ChannelTitle_117270({title, muted, unread, resolvedUnreadSetting, connected}) { // fn#117270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15535:340, offset: 0x024ac719, size: 230 bytes, params: 2, frame: 23
|
||||
const env0_3 = connected;
|
||||
const value2 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
const value4 = env0_3.useMemo(_fun117271, [unread, env0_6(), connected, muted, resolvedUnreadSetting]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant={value2.channelName.text.variant}
|
||||
lineClamp={1}
|
||||
maxFontSizeMultiplier={1.75}
|
||||
style={value4}
|
||||
>
|
||||
{title ?? ''}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun117271() { // fn#117271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15535:461, offset: 0x024ac7ff, size: 102 bytes, params: 1, frame: 5
|
||||
var r2;
|
||||
var r1;
|
||||
if (muted) {
|
||||
r1 = env0_4.muted;
|
||||
} else {
|
||||
r2 = unread && resolvedUnreadSetting === UnreadSetting.ALL_MESSAGES;
|
||||
r2 = !r2 ? connected : r2;
|
||||
r1 = r2 ? env0_4.unreadOrConnected : env0_4.normal;
|
||||
}
|
||||
return {'color': null, 'paddingRight': 4, 'flexShrink': 1, color: r1};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* Metro module 15328; source: modules/launchpad/native/shared/CutoutImage.tsx; dependencies: [57, 31, 27, 33, 491, 7744, 10255, 2] */
|
||||
function _fun117226(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15525:6, offset: 0x024a99e0, size: 199 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).Image;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value2.jsx;
|
||||
const env0_7 = value2.jsxs;
|
||||
value = value.memo(CutoutImage);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/CutoutImage.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function CutoutImage({style, cutoutTopLeftSize, cutoutTopLeftInsetX, cutoutTopLeftInsetY, cutoutTopRightSize, cutoutTopRightInsetX, cutoutTopRightInsetY, cutoutBottomLeftSize, cutoutBottomLeftInsetX, cutoutBottomLeftInsetY, cutoutBottomRightSize, cutoutBottomRightInsetX, cutoutBottomRightInsetY, imageSize, imageSource, imageBorderRadius = imageSize / 2, imageBackgroundColor, imageTintColor, clipInnerAmount, clipOuterAmount, borderStroke, borderStrokeColor}) { // fn#117227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15525:173, offset: 0x024a9aa7, size: 1937 bytes, params: 2, frame: 53
|
||||
var r17;
|
||||
var ClipPath;
|
||||
var object;
|
||||
cutoutTopLeftSize = cutoutTopLeftSize === undefined ? 0 : cutoutTopLeftSize;
|
||||
cutoutTopLeftInsetX = cutoutTopLeftInsetX === undefined ? 0 : cutoutTopLeftInsetX;
|
||||
cutoutTopLeftInsetY = cutoutTopLeftInsetY === undefined ? 0 : cutoutTopLeftInsetY;
|
||||
cutoutTopRightSize = cutoutTopRightSize === undefined ? 0 : cutoutTopRightSize;
|
||||
cutoutTopRightInsetX = cutoutTopRightInsetX === undefined ? 0 : cutoutTopRightInsetX;
|
||||
cutoutTopRightInsetY = cutoutTopRightInsetY === undefined ? 0 : cutoutTopRightInsetY;
|
||||
cutoutBottomLeftSize = cutoutBottomLeftSize === undefined ? 0 : cutoutBottomLeftSize;
|
||||
cutoutBottomLeftInsetX = cutoutBottomLeftInsetX === undefined ? 0 : cutoutBottomLeftInsetX;
|
||||
cutoutBottomLeftInsetY = cutoutBottomLeftInsetY === undefined ? 0 : cutoutBottomLeftInsetY;
|
||||
cutoutBottomRightSize = cutoutBottomRightSize === undefined ? 0 : cutoutBottomRightSize;
|
||||
cutoutBottomRightInsetX = cutoutBottomRightInsetX === undefined ? 0 : cutoutBottomRightInsetX;
|
||||
cutoutBottomRightInsetY = cutoutBottomRightInsetY === undefined ? 0 : cutoutBottomRightInsetY;
|
||||
clipInnerAmount = clipInnerAmount === undefined ? 0 : clipInnerAmount;
|
||||
clipOuterAmount = clipOuterAmount === undefined ? 0 : clipOuterAmount;
|
||||
let binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const moduleValue = require(491) /* metro dependency 491 */;
|
||||
const value19 = env0_3(Reflect.apply(useState, binding, [moduleValue.v4()]), 2);
|
||||
const property = value19[0];
|
||||
const env0_1 = value19[1];
|
||||
const r11 = property != null ? 'url(#' + property + ')' : undefined;
|
||||
let r24 = clipOuterAmount > 0 ? moduleValue.v4() : undefined;
|
||||
const r10 = r24 != null ? 'url(#' + r24 + ')' : undefined;
|
||||
binding = env0_4;
|
||||
const value24 = binding.useCallback(_fun117228, []);
|
||||
binding.useLayoutEffect(_fun117229, [imageTintColor]);
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
|
||||
const Mask = (require(7744) /* metro dependency 7744 */).Mask;
|
||||
const items2 = [imageBorderRadius === imageSize / 2 ? ((Circle) => <Circle cx={imageSize / 2} cy={imageSize / 2} r={imageSize / 2} fill="white" />)((require(7744) /* metro dependency 7744 */).Circle) : ((Rect) => <Rect x={0} y={0} width={imageSize} height={imageSize} rx={imageBorderRadius} ry={imageBorderRadius} fill="white" />)((require(7744) /* metro dependency 7744 */).Rect)];
|
||||
items2[1] = cutoutTopLeftSize > 0 ? ((Circle) => <Circle cx={cutoutTopLeftInsetX} cy={cutoutTopLeftInsetY} r={cutoutTopLeftSize} fill="black" />)((require(7744) /* metro dependency 7744 */).Circle) : null;
|
||||
items2[2] = cutoutTopRightSize > 0 ? ((Circle) => <Circle cx={imageSize - cutoutTopRightInsetX} cy={cutoutTopRightInsetY} r={cutoutTopRightSize} fill="black" />)((require(7744) /* metro dependency 7744 */).Circle) : null;
|
||||
items2[3] = cutoutBottomLeftSize > 0 ? ((Circle) => <Circle cx={cutoutBottomLeftInsetX} cy={imageSize - cutoutBottomLeftInsetY} r={cutoutBottomLeftSize} fill="black" />)((require(7744) /* metro dependency 7744 */).Circle) : null;
|
||||
items2[4] = cutoutBottomRightSize > 0 ? ((Circle) => <Circle cx={imageSize - cutoutBottomRightInsetX} cy={imageSize - cutoutBottomRightInsetY} r={cutoutBottomRightSize} fill="black" />)((require(7744) /* metro dependency 7744 */).Circle) : null;
|
||||
items2[5] = clipInnerAmount > 0 ? imageBorderRadius === imageSize / 2 ? ((Circle) => <Circle cx={imageSize / 2} cy={imageSize / 2} r={clipInnerAmount / 2} fill="black" />)((require(7744) /* metro dependency 7744 */).Circle) : ((Rect) => <Rect x={(imageSize - clipInnerAmount) / 2} y={(imageSize - clipInnerAmount) / 2} width={clipInnerAmount} height={clipInnerAmount} rx={imageBorderRadius * (clipInnerAmount / imageSize)} ry={imageBorderRadius * (clipInnerAmount / imageSize)} fill="black" />)((require(7744) /* metro dependency 7744 */).Rect) : null;
|
||||
const mask = <Mask width={imageSize} height={imageSize} id={property}>{items2}</Mask>;
|
||||
if (r24 != null) {
|
||||
ClipPath = (require(7744) /* metro dependency 7744 */).ClipPath;
|
||||
object = {id: r24};
|
||||
if (imageBorderRadius === imageSize / 2) {
|
||||
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
|
||||
r24 = <Circle cx={imageSize / 2} cy={imageSize / 2} r={imageSize / 4} fill="white" />;
|
||||
} else {
|
||||
const Rect = (require(7744) /* metro dependency 7744 */).Rect;
|
||||
r24 = <Rect x={clipOuterAmount} y={clipOuterAmount} width={imageSize - 2 * clipOuterAmount} height={imageSize - 2 * clipOuterAmount} rx={imageBorderRadius * ((imageSize - 2 * clipOuterAmount) / imageSize)} ry={imageBorderRadius * ((imageSize - 2 * clipOuterAmount) / imageSize)} fill="white" />;
|
||||
}
|
||||
r17 = <ClipPath {...object}>{r24}</ClipPath>;
|
||||
} else {
|
||||
r17 = null;
|
||||
}
|
||||
const items3 = [<Defs>{mask}{r17}</Defs>];
|
||||
items3[1] = imageBackgroundColor != null ? ((Rect) => <Rect height={imageSize} width={imageSize} fill={imageBackgroundColor} mask={r11} clipPath={r10} />)((require(7744) /* metro dependency 7744 */).Rect) : null;
|
||||
items3[2] = imageSource != null ? typeof imageSource !== 'number' ? ((Image) => <Image height={imageSize} width={imageSize} href={(importDefault(10255) /* metro dependency 10255: getReactNativeSVGImageSource */)(imageSource)} mask={r11} clipPath={r10} />)((require(7744) /* metro dependency 7744 */).Image) : imageTintColor != null ? ((ForeignObject) => <ForeignObject height={imageSize} width={imageSize} mask={r11} clipPath={r10}><Image style={{width: imageSize,
|
||||
height: imageSize,
|
||||
tintColor: imageTintColor}} source={imageSource} onLoad={value24} /></ForeignObject>)((require(7744) /* metro dependency 7744 */).ForeignObject) : ((Image) => <Image height={imageSize} width={imageSize} href={(importDefault(10255) /* metro dependency 10255: getReactNativeSVGImageSource */)(imageSource)} mask={r11} clipPath={r10} />)((require(7744) /* metro dependency 7744 */).Image) : null;
|
||||
items3[3] = borderStroke != null ? ((Rect) => <Rect height={imageSize} width={imageSize} fill="transparent" stroke={borderStrokeColor} strokeWidth={2 * borderStroke} mask={r11} clipPath={r10} rx={imageBorderRadius} ry={imageBorderRadius} />)((require(7744) /* metro dependency 7744 */).Rect) : null;
|
||||
return ((Component) => <Component style={style} height={imageSize} width={imageSize}>{items3}</Component>)(defaultImport);
|
||||
}
|
||||
|
||||
function _fun117228() { // fn#117228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15525:831, offset: 0x024aa238, size: 49 bytes, params: 1, frame: 12
|
||||
const binding = env0_1;
|
||||
let value = environment.__proto__;
|
||||
value = require(491) /* metro dependency 491 */;
|
||||
binding(value.v4());
|
||||
}
|
||||
|
||||
function _fun117229() { // fn#117229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15525:884, offset: 0x024aa269, size: 61 bytes, params: 1, frame: 12
|
||||
var binding;
|
||||
var value;
|
||||
if (imageTintColor != null) {
|
||||
binding = env0_1;
|
||||
value = environment.__proto__;
|
||||
value = require(491) /* metro dependency 491 */;
|
||||
binding(value.v4());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 15346; source: modules/launchpad/native/shared/DMChannel.tsx; dependencies: [31, 4865, 33, 4601, 12129, 4501, 697, 15332, 14436, 13775, 21, 4584, 15333, 5278, 15345, 15336, 10975, 3834, 4805, 2] */
|
||||
function _fun117297(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15543:6, offset: 0x024ade6c, size: 258 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const INTERACTIVE_BACKGROUND_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_BACKGROUND_ACTIVE;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{pressable: {flex: 1},
|
||||
pressableUnderlayColor: {backgroundColor: INTERACTIVE_BACKGROUND_ACTIVE}}]);
|
||||
value = value.memo(DMChannel);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/DMChannel.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function usePrivateChannelPressEvents(a0, a1) { // fn#117298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15543:144, offset: 0x024adf6e, size: 106 bytes, params: 3, frame: 18
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const object2 = {};
|
||||
object2.onPress = env0_3.useCallback(_fun117299, [a0.id, a1]);
|
||||
object2.onLongPress = env0_3.useCallback(_fun117300, [a0.id]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function DMChannel({channel, muted, navigationReplace}) { // fn#117301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15543:526, offset: 0x024ae048, size: 603 bytes, params: 2, frame: 31
|
||||
var object4;
|
||||
var r10;
|
||||
var defaultImport2;
|
||||
muted = !(muted === undefined) && muted;
|
||||
navigationReplace = !(navigationReplace === undefined) && navigationReplace;
|
||||
const styles = useStyles();
|
||||
const value5 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
const {unread,
|
||||
mentionCount} = (require(14436) /* metro dependency 14436: useChannelUnreadBadgeState */).useBaseChannelUnreadBadgeState(channel,
|
||||
muted);
|
||||
const value7 = (importDefault(13775) /* metro dependency 13775: useMessagePreviews */)(channel, {unread: unread});
|
||||
if (value7 != null) {
|
||||
defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
r10 = defaultImport2.extractTimestamp(value7.id);
|
||||
} else {
|
||||
r10 = undefined;
|
||||
}
|
||||
const value9 = 'text-muted';
|
||||
const r18 = unread ? muted ? value9 : 'text-default' : value9;
|
||||
const value11 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
|
||||
const defaultImport3 = importDefault(15333) /* metro dependency 15333: renderChannelPressableWrapper */;
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
object4 = {};
|
||||
const borderRadius = value5.container.borderRadius;
|
||||
object4.style = [styles.pressable, {borderRadius: borderRadius}];
|
||||
object4.underlayColor = styles.pressableUnderlayColor.backgroundColor;
|
||||
copyDataProperties(object4, usePrivateChannelPressEvents(channel, navigationReplace), borderRadius);
|
||||
const defaultImport4 = importDefault(15345) /* metro dependency 15345: renderChannelItem */;
|
||||
const object2 = {channel: channel, unread: unread};
|
||||
let ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
|
||||
object2.resolvedUnreadSetting = ALL_MESSAGES;
|
||||
object2.muted = muted;
|
||||
object2.mentionCount = mentionCount;
|
||||
const UnreadBadge = importDefault(15336) /* metro dependency 15336: UnreadBadge */;
|
||||
ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
|
||||
object2.unreadBadge = <UnreadBadge unread={unread} resolvedUnreadSetting={ALL_MESSAGES} muted={muted} />;
|
||||
object2.subtitle = value7 != null && ((ChannelRowPreview) => <ChannelRowPreview channel={channel} message={value7} color={r18} muted={muted} layout={(require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes.COMPACT} />)((require(10975) /* metro dependency 10975: ChannelRowPreview */).ChannelRowPreview);
|
||||
object2.latestMessageTimestamp = r10;
|
||||
object2.channelName = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel);
|
||||
object2.fontScale = value11;
|
||||
return defaultImport3(<PressableHighlight {...object4}>{defaultImport4(object2)}</PressableHighlight>);
|
||||
}
|
||||
|
||||
function _fun117299() { // fn#117299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15543:217, offset: 0x024adfd8, size: 62 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = require(4601) /* metro dependency 4601: transitionToChannel */;
|
||||
value.transitionToChannel(env0_0.id, {navigationReplace: require});
|
||||
}
|
||||
|
||||
function _fun117300() { // fn#117300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15543:317, offset: 0x024ae016, size: 50 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
|
||||
return value.openChannelLongPressActionSheet(env0_0.id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 15325; source: modules/launchpad/native/shared/SimpleGuild.tsx; dependencies: [31, 27, 1422, 5214, 1867, 661, 33, 4501, 6819, 15326, 566, 15327, 15329, 1244, 14421, 6682, 697, 15328, 2] */
|
||||
function _fun117208(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15522:6, offset: 0x024a8529, size: 286 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 env0_5 = (require(1422) /* metro dependency 1422: GuildRecord */).getGuildIconSource;
|
||||
const guildReadStateStore = importDefault(5214) /* metro dependency 5214: GuildReadStateStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).ME;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({dmsWrapper: {'flex': 1,
|
||||
'justifyContent': 'center', 'alignItems': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/SimpleGuild.tsx');
|
||||
exports.default = SimpleGuild;
|
||||
}
|
||||
|
||||
function SimpleGuild({guildIconRef, style, guildId, onPress, onLongPress, onAccessibilityAction, onLayout, backgroundColor, animated, altDefaultBackground, selected, size, iconSize = require(dependencyMap[8]).GuildIconSizes.LARGE, borderRadius, unread, badge}) { // fn#117209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15522:379, offset: 0x024a8647, size: 1128 bytes, params: 2, frame: 47
|
||||
var color;
|
||||
var CutoutImage;
|
||||
var object;
|
||||
var value23;
|
||||
var value24;
|
||||
var ChatIcon;
|
||||
var colors;
|
||||
animated = animated === undefined || animated;
|
||||
altDefaultBackground = !(altDefaultBackground === undefined) && altDefaultBackground;
|
||||
selected = !(selected === undefined) && selected;
|
||||
const styles = useStyles();
|
||||
const {iconStroke, iconBackground,
|
||||
iconBackgroundBrand} = (importDefault(15326) /* metro dependency 15326: useSimpleGuildDefaultColors */)();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
let r17 = guild?.name ?? '';
|
||||
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildReadStateStore],
|
||||
function() {
|
||||
var object = {};
|
||||
var guildIdBinding = guildId;
|
||||
object.unread = GuildReadStateStore.hasUnread(guildIdBinding);
|
||||
object.badge = GuildReadStateStore.getMentionCount(guildIdBinding);
|
||||
return object;
|
||||
}, [guildId]);
|
||||
const unread2 = value10.unread;
|
||||
const badge2 = value10.badge;
|
||||
const env0_3 = badge2;
|
||||
const simpleGuildContainerModule = require(15327) /* metro dependency 15327: SimpleGuildContainer */;
|
||||
const r2 = animated ? simpleGuildContainerModule.SimpleGuildContainerAnimated : simpleGuildContainerModule.SimpleGuildContainer;
|
||||
const {containerSize, containerSizeStyle,
|
||||
containerStyles} = (importDefault(15329) /* metro dependency 15329: useSimpleGuildSize */)({size: size,
|
||||
style: style});
|
||||
const value13 = env0_3.useMemo(_fun117212, [r17, unread2, badge2]);
|
||||
const value14 = (require(14421) /* metro dependency 14421: GuildsBarActivityIndicator */).useActivityIndicatorState(guildId);
|
||||
let r4 = unread2 || selected;
|
||||
r4 = !r4 ? badge2 > 0 : r4;
|
||||
r4 = (!r4 ? value14.source != null : r4) && backgroundColor === 'transparent';
|
||||
r17 = guild != null ? getGuildIconSource(guild, containerSize, selected && !r4) : undefined;
|
||||
const r15 = r17 === null || typeof r17 !== 'object' ? r17 != null : 'uri' in r17 ? r17.uri != null : r17 != null;
|
||||
const r2Props = {guildIconRef: guildIconRef, guildId: guild?.id, style: containerStyles,
|
||||
backgroundColor: backgroundColor, selected: selected, size: size, borderRadius: borderRadius, onPress: onPress,
|
||||
onLongPress: onLongPress, unread: unread ?? unread2, badge: badge ?? badge2, onLayout: onLayout,
|
||||
onAccessibilityAction: onAccessibilityAction, accessibilityLabel: value13, usingCutout: r4,
|
||||
activityIndicatorState: value14};
|
||||
if (guildId === ME) {
|
||||
var viewBindingProps = {style: styles.dmsWrapper};
|
||||
ChatIcon = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
|
||||
colors = (importDefault(697) /* metro dependency 697: native */).colors;
|
||||
r4 = <View {...viewBindingProps}><ChatIcon color={selected ? colors.WHITE : colors.MOBILE_GUILDBAR_ICON_DEFAULT} /></View>;
|
||||
} else if (r4) {
|
||||
CutoutImage = importDefault(15328) /* metro dependency 15328: CutoutImage */;
|
||||
object = {'cutoutBottomRightSize': null, 'cutoutBottomRightInsetX': 6, 'cutoutBottomRightInsetY': 7,
|
||||
'cutoutTopRightSize': null, 'cutoutTopRightInsetX': 8, 'cutoutTopRightInsetY': 8};
|
||||
value23 = 0;
|
||||
value24 = 13;
|
||||
object.cutoutBottomRightSize = badge2 > value23 ? value24 : unread2 ? 11 : value23;
|
||||
object.cutoutTopRightSize = value14.source != null ? value24 : value23;
|
||||
object.imageSize = containerSize;
|
||||
object.imageSource = r17;
|
||||
object.imageBorderRadius = borderRadius;
|
||||
color = r15 ? iconBackground.color : iconBackgroundBrand.color;
|
||||
object.imageBackgroundColor = color;
|
||||
object.clipOuterAmount = selected ? 3 : value23;
|
||||
object.borderStroke = 1;
|
||||
color = iconStroke.color;
|
||||
object.borderStrokeColor = color;
|
||||
r4 = <CutoutImage {...object} />;
|
||||
} else {
|
||||
r4 = ((Component) => <Component guild={guild} size={iconSize} selected={selected} animate={selected} TABS_altDefaultBackground={altDefaultBackground} style={size != null ? containerSizeStyle : null} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */);
|
||||
}
|
||||
return ((Component) => <Component {...r2Props}>{r4}</Component>)(r2);
|
||||
}
|
||||
|
||||
function _fun117212() { // fn#117212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15522:1122, offset: 0x024a8ae1, size: 297 bytes, params: 1, frame: 17
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
return env0_1 === '' ? env0_1 : badge == null ? unread === true ? intl.formatToPlainString(t.lzqe42,
|
||||
{guildName: env0_1}) : intl.formatToPlainString(t['/uzRss'], {guildName: env0_1,
|
||||
mentions: badge}) : badge > 0 ? intl.formatToPlainString(t['/uzRss'], {guildName: env0_1,
|
||||
mentions: badge}) : unread === true ? intl.formatToPlainString(t.lzqe42,
|
||||
{guildName: env0_1}) : intl.formatToPlainString(t['/uzRss'], {guildName: env0_1, mentions: badge});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,295 @@
|
||||
/* Metro module 15327; source: modules/launchpad/native/shared/SimpleGuildContainer.tsx; dependencies: [31, 27, 33, 4501, 9608, 14421, 697, 15326, 3860, 15328, 4017, 4577, 2] */
|
||||
function _fun117214(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:6, offset: 0x024a8cd3, size: 392 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value2.Pressable;
|
||||
const env0_5 = value2.View;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value3.jsx;
|
||||
const env0_7 = value3.Fragment;
|
||||
const env0_8 = value3.jsxs;
|
||||
const env0_9 = {'mass': 0.2, 'damping': 40, 'stiffness': 300, 'overshootClamping': true, 'restSpeedThreshold': 1};
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({badgeWrapper: {'position': 'absolute',
|
||||
'right': -4, 'bottom': 0}});
|
||||
const env0_11 = value.memo(_fun117215);
|
||||
const env0_12 = value.memo(_fun117216);
|
||||
object = {code: 'function SimpleGuildContainerTsx1(){const{targetRadius}=this.__closure;return targetRadius;}'};
|
||||
object = {code: 'function SimpleGuildContainerTsx2(){const{selected}=this.__closure;return selected?1:0;}'};
|
||||
object = {code: "function SimpleGuildContainerTsx3(){const{withSpring,toRadius,springConfig,GUILD_SIZE,iconBackground}=this.__closure;return{borderRadius:withSpring(toRadius.get(),springConfig),width:GUILD_SIZE,height:GUILD_SIZE,overflow:'hidden',backgroundColor:iconBackground.color};}"};
|
||||
object = {code: "function SimpleGuildContainerTsx4(){const{withSpring,toRadius,springConfig,interpolate,toStrokeWidth,borderColor,GUILD_SIZE}=this.__closure;return{borderRadius:withSpring(toRadius.get()+2,springConfig),borderWidth:withSpring(interpolate(toStrokeWidth.get(),[0,1],[0,2]),springConfig),borderColor:borderColor,position:'absolute',top:-2,left:-2,width:GUILD_SIZE+4,height:GUILD_SIZE+4};}"};
|
||||
object = {code: "function SimpleGuildContainerTsx5(){const{withSpring,toRadius,springConfig,interpolate,toStrokeWidth,backgroundColor,GUILD_SIZE}=this.__closure;return{borderRadius:withSpring(toRadius.get(),springConfig),borderWidth:withSpring(interpolate(toStrokeWidth.get(),[0,1],[0,3]),springConfig),borderColor:backgroundColor,position:'absolute',top:0,left:0,width:GUILD_SIZE,height:GUILD_SIZE};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/SimpleGuildContainer.tsx');
|
||||
exports.SimpleGuildContainer = SimpleGuildContainer;
|
||||
exports.SimpleGuildContainerAnimated = SimpleGuildContainerAnimated;
|
||||
}
|
||||
|
||||
function _fun117215({badge, unread, backgroundColor}) { // fn#117215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:352, offset: 0x024a8e5b, size: 117 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
if (badge <= 0) {
|
||||
if (unread) {
|
||||
var viewBindingProps = {style: styles.badgeWrapper};
|
||||
value = importDefault(9608) /* metro dependency 9608: MaskedBadge */;
|
||||
value = <View {...viewBindingProps}>{((Component) => <Component value={badge} unread={unread} backgroundColor={backgroundColor} />)(value)}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.badgeWrapper};
|
||||
value = importDefault(9608) /* metro dependency 9608: MaskedBadge */;
|
||||
value = <View {...viewBindingProps}>{((Component) => <Component value={badge} unread={unread} backgroundColor={backgroundColor} />)(value)}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun117216({guildId, activityIndicatorState, backgroundColor}) { // fn#117216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:528, offset: 0x024a8ed0, size: 183 bytes, params: 2, frame: 18
|
||||
var r0;
|
||||
let value = null;
|
||||
if (value != (value == activityIndicatorState ? undefined : activityIndicatorState.source)) {
|
||||
const GuildsBarActivityIndicatorBase = (require(14421) /* metro dependency 14421: GuildsBarActivityIndicator */).GuildsBarActivityIndicatorBase;
|
||||
r0 = <GuildsBarActivityIndicatorBase style={{backgroundColor: backgroundColor}} source={activityIndicatorState.source} IconComponent={activityIndicatorState.IconComponent} isCurrentUserConnected={activityIndicatorState.isCurrentUserConnected} />;
|
||||
} else if (value != guildId) {
|
||||
value = importDefault(14421) /* metro dependency 14421: GuildsBarActivityIndicator */;
|
||||
value = ((Component) => <Component guildId={guildId} style={{backgroundColor: backgroundColor}} />)(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function SimpleGuildContainer({guildIconRef, guildId, style, children, selected, size, borderRadius = selected ? importDefault(dependencyMap[6]).radii.lg : 24, badge, unread, backgroundColor, folder, usingCutout, activityIndicatorState, accessibilityLabel, onAccessibilityAction, onLayout}) { // fn#117217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:2256, offset: 0x024a8f87, size: 651 bytes, params: 2, frame: 36
|
||||
size = size === undefined ? 48 : size;
|
||||
const env0_3 = badge;
|
||||
folder = !(folder === undefined) && folder;
|
||||
usingCutout = !(usingCutout === undefined) && usingCutout;
|
||||
const {iconStroke,
|
||||
iconBackground} = (importDefault(15326) /* metro dependency 15326: useSimpleGuildDefaultColors */)();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
return (
|
||||
<View
|
||||
style={style}
|
||||
accessible
|
||||
accessibilityState={{selected: selected}}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
accessibilityActions={[{name: 'activate'}]}
|
||||
onAccessibilityAction={onAccessibilityAction}
|
||||
>
|
||||
<View
|
||||
ref={guildIconRef}
|
||||
onLayout={onLayout}
|
||||
style={{borderRadius: borderRadius, overflow: 'hidden',
|
||||
backgroundColor: usingCutout ? 'transparent' : folder ? backgroundColor : iconBackground.color}}
|
||||
>
|
||||
{children}
|
||||
</View>
|
||||
{env0_3.useMemo(_fun117219, [borderRadius, usingCutout, size, iconStroke])}
|
||||
{env0_3.useMemo(_fun117218, [selected, usingCutout, activityIndicatorState?.source, badge, unread, size,
|
||||
Reflect.apply(useToken, useTokenModule, [BACKGROUND_BRAND]), borderRadius, backgroundColor])}
|
||||
{((Component) => <Component backgroundColor={backgroundColor} guildId={guildId} activityIndicatorState={activityIndicatorState} />)(env0_12)}
|
||||
{((Component) => <Component backgroundColor={backgroundColor} badge={badge} unread={unread} />)(env0_11)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function SimpleGuildContainerAnimated(a0) { // fn#117220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:3862, offset: 0x024a93f6, size: 1055 bytes, params: 2, frame: 42
|
||||
var object2;
|
||||
const guildIconRef = a0.guildIconRef;
|
||||
const guildId = a0.guildId;
|
||||
const style = a0.style;
|
||||
const children = a0.children;
|
||||
const selected = a0.selected;
|
||||
a0.size;
|
||||
const borderRadius = a0.borderRadius;
|
||||
const badge = a0.badge;
|
||||
const unread = a0.unread;
|
||||
const backgroundColor = a0.backgroundColor;
|
||||
a0.folder;
|
||||
a0.usingCutout;
|
||||
const activityIndicatorState = a0.activityIndicatorState;
|
||||
const accessibilityLabel = a0.accessibilityLabel;
|
||||
const onAccessibilityAction = a0.onAccessibilityAction;
|
||||
const onLayout = a0.onLayout;
|
||||
const onPress = a0.onPress;
|
||||
const onLongPress = a0.onLongPress;
|
||||
const iconBackground = (importDefault(15326) /* metro dependency 15326: useSimpleGuildDefaultColors */)().iconBackground;
|
||||
const r16 = selected ? (importDefault(697) /* metro dependency 697: native */).radii.lg : borderRadius ?? 24;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useDerivedValue = reanimatedRexportModule.useDerivedValue;
|
||||
let closure = SimpleGuildContainerAnimatedV;
|
||||
closure.__closure = {targetRadius: r16};
|
||||
closure.__workletHash = 5259600477627;
|
||||
closure.__initData = env0_13;
|
||||
const value3 = Reflect.apply(useDerivedValue, reanimatedRexportModule, [closure]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
useDerivedValue = moduleValue2.useDerivedValue;
|
||||
closure = SimpleGuildContainerAnimatedZ;
|
||||
closure.__closure = {selected: selected};
|
||||
closure.__workletHash = 12318204664732;
|
||||
closure.__initData = env0_14;
|
||||
const value4 = Reflect.apply(useDerivedValue, moduleValue2, [closure]);
|
||||
const moduleValue3 = reanimatedRexportModule;
|
||||
let useAnimatedStyle = moduleValue3.useAnimatedStyle;
|
||||
closure = SimpleGuildContainerAnimatedH;
|
||||
object2 = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, toRadius: value3};
|
||||
const binding = env0_9;
|
||||
object2.springConfig = binding;
|
||||
object2.GUILD_SIZE = 48;
|
||||
object2.iconBackground = iconBackground;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 11339684212259;
|
||||
closure.__initData = env0_15;
|
||||
const value5 = Reflect.apply(useAnimatedStyle, moduleValue3, [closure]);
|
||||
const BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
|
||||
const moduleValue4 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue4.useAnimatedStyle;
|
||||
closure = SimpleGuildContainerAnimatedJ;
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, toRadius: value3,
|
||||
springConfig: binding, interpolate: reanimatedRexportModule.interpolate, toStrokeWidth: value4,
|
||||
borderColor: BRAND_500, GUILD_SIZE: 48};
|
||||
closure.__workletHash = 1481885125958;
|
||||
closure.__initData = env0_16;
|
||||
const value6 = Reflect.apply(useAnimatedStyle, moduleValue4, [closure]);
|
||||
const moduleValue5 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue5.useAnimatedStyle;
|
||||
closure = SimpleGuildContainerAnimatedM;
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, toRadius: value3,
|
||||
springConfig: binding, interpolate: reanimatedRexportModule.interpolate, toStrokeWidth: value4,
|
||||
backgroundColor: backgroundColor, GUILD_SIZE: 48};
|
||||
closure.__workletHash = 11592745547551;
|
||||
closure.__initData = env0_17;
|
||||
const value7 = Reflect.apply(useAnimatedStyle, moduleValue5, [closure]);
|
||||
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items2 = [<View2 style={value5}>{children}</View2>];
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items2[1] = <View3 style={value7} />;
|
||||
const View4 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items2[2] = <View4 style={value6} />;
|
||||
items2[3] = ((Component) => <Component backgroundColor={backgroundColor} guildId={guildId} activityIndicatorState={activityIndicatorState} />)(env0_12);
|
||||
items2[4] = ((Component) => <Component backgroundColor={backgroundColor} badge={badge} unread={unread} />)(env0_11);
|
||||
const fragment = <>{items2}</>;
|
||||
return onPress != null ? <Pressable ref={guildIconRef} style={style} onPress={onPress} onLongPress={onLongPress} accessibilityRole="button" accessible accessibilityLabel={accessibilityLabel} accessibilityState={{selected: selected}} onAccessibilityAction={onAccessibilityAction} onLayout={onLayout}>{fragment}</Pressable> : <View style={style}>{fragment}</View>;
|
||||
}
|
||||
|
||||
function _fun117218() { // fn#117218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:2653, offset: 0x024a9212, size: 397 bytes, params: 1, frame: 24
|
||||
var source;
|
||||
var r6;
|
||||
var r1;
|
||||
var r0;
|
||||
var usingCutoutBinding;
|
||||
var value3;
|
||||
var jsxRuntimeEnv1_7Binding;
|
||||
var binding;
|
||||
var sizeBinding;
|
||||
var items2;
|
||||
var value5;
|
||||
var CutoutImage;
|
||||
var value6;
|
||||
const selectedBinding = selected;
|
||||
const value2 = null;
|
||||
if (selectedBinding) {
|
||||
usingCutoutBinding = usingCutout;
|
||||
value3 = environment.__proto__;
|
||||
if (usingCutoutBinding) {
|
||||
value5 = undefined;
|
||||
CutoutImage = importDefault(15328) /* metro dependency 15328: CutoutImage */;
|
||||
var defaultImportProps = {'style': null, 'cutoutTopRightSize': null, 'cutoutTopRightInsetX': 8,
|
||||
'cutoutTopRightInsetY': 8, 'cutoutBottomRightSize': null, 'cutoutBottomRightInsetX': 6,
|
||||
'cutoutBottomRightInsetY': 7, style: {'position': 'absolute', 'top': -2, 'left': -2}};
|
||||
source = value2 == activityIndicatorState ? value5 : activityIndicatorState.source;
|
||||
value6 = 0;
|
||||
r6 = value2 != source ? 13 : value6;
|
||||
defaultImportProps.cutoutTopRightSize = r6;
|
||||
r6 = badge > value6 ? 13 : unread ? 11 : value6;
|
||||
defaultImportProps.cutoutBottomRightSize = r6;
|
||||
sizeBinding = size;
|
||||
defaultImportProps.imageSize = sizeBinding + 4;
|
||||
defaultImportProps.imageBackgroundColor = env0_9;
|
||||
defaultImportProps.imageBorderRadius = env0_2 + 2;
|
||||
defaultImportProps.clipInnerAmount = sizeBinding;
|
||||
r1 = <CutoutImage {...defaultImportProps} />;
|
||||
} else {
|
||||
jsxRuntimeEnv1_7Binding = jsxRuntimeEnv1_7;
|
||||
binding = env0_2;
|
||||
sizeBinding = size;
|
||||
items2 = [<View style={{'borderRadius': null, 'borderWidth': 2, 'borderColor': null, 'position': 'absolute',
|
||||
'top': -2, 'left': -2, borderRadius: binding + 2, borderColor: env0_9, width: sizeBinding + 4,
|
||||
height: sizeBinding + 4}} />];
|
||||
items2[1] = <View style={{'borderRadius': null, 'borderWidth': 3, 'borderColor': null,
|
||||
'position': 'absolute',
|
||||
'top': 0, 'left': 0, borderRadius: binding, borderColor: backgroundColor, width: sizeBinding,
|
||||
height: sizeBinding}} />;
|
||||
r1 = <>{items2}</>;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun117219() { // fn#117219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:3288, offset: 0x024a939f, size: 87 bytes, params: 1, frame: 16
|
||||
return usingCutout ? null : <View style={{'position': 'absolute', 'borderWidth': 1, borderColor: iconStroke.color,
|
||||
borderRadius: env0_2, width: size, height: size}} />;
|
||||
}
|
||||
|
||||
function SimpleGuildContainerAnimatedZ() { // fn#117222, owner: SimpleGuildContainerAnimated.z, offset: 0x024a9815, size: 17 bytes, params: 1, frame: 2
|
||||
return selected ? 1 : 0;
|
||||
}
|
||||
|
||||
function SimpleGuildContainerAnimatedH() { // fn#117223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:4478, owner: SimpleGuildContainerAnimated.H, offset: 0x024a9826, size: 91 bytes, params: 1, frame: 16
|
||||
const object2 = {'borderRadius': null, 'width': 48, 'height': 48, 'overflow': 'hidden'};
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
object2.borderRadius = springModule.withSpring(env0_4.get(), env1_9);
|
||||
object2.backgroundColor = iconBackground.color;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function SimpleGuildContainerAnimatedJ() { // fn#117224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:4807, owner: SimpleGuildContainerAnimated.j, offset: 0x024a9881, size: 179 bytes, params: 1, frame: 21
|
||||
const object2 = {'borderRadius': null, 'borderWidth': null, 'borderColor': null, 'position': 'absolute', 'top': -2,
|
||||
'left': -2, 'width': 52, 'height': 52};
|
||||
let value = environment.__proto__;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
let withSpring = springModule.withSpring;
|
||||
let binding = env0_4;
|
||||
const value4 = binding.get() + 2;
|
||||
binding = env1_9;
|
||||
object2.borderRadius = Reflect.apply(withSpring, springModule, [value4, binding]);
|
||||
value = springModule;
|
||||
withSpring = value.withSpring;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
object2.borderWidth = Reflect.apply(withSpring, value, [reanimatedRexportModule.interpolate(env0_5.get(), [0, 1],
|
||||
[0, 2]), binding]);
|
||||
object2.borderColor = BRAND_500;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function SimpleGuildContainerAnimatedM() { // fn#117225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15524:5233, owner: SimpleGuildContainerAnimated.M, offset: 0x024a9934, size: 172 bytes, params: 1, frame: 21
|
||||
const object2 = {'borderRadius': null, 'borderWidth': null, 'borderColor': null, 'position': 'absolute', 'top': 0,
|
||||
'left': 0, 'width': 48, 'height': 48};
|
||||
let value = environment.__proto__;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
let withSpring = springModule.withSpring;
|
||||
let binding = env0_4;
|
||||
const value3 = binding.get();
|
||||
binding = env1_9;
|
||||
object2.borderRadius = Reflect.apply(withSpring, springModule, [value3, binding]);
|
||||
value = springModule;
|
||||
withSpring = value.withSpring;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
object2.borderWidth = Reflect.apply(withSpring, value, [reanimatedRexportModule.interpolate(env0_5.get(), [0, 1],
|
||||
[0, 3]), binding]);
|
||||
object2.borderColor = backgroundColor;
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
/* Metro module 15340; source: modules/launchpad/native/shared/TextChannel.tsx; dependencies: [31, 27, 5071, 1949, 1379, 1309, 4865, 33, 4501, 15332, 697, 14436, 6860, 566, 4805, 9619, 13775, 5087, 4584, 15341, 6632, 11600, 10975, 3834, 15343, 8448, 14700, 15333, 5278, 15344, 15345, 15336, 15339, 2] */
|
||||
function _fun117274(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15537:6, offset: 0x024acabe, size: 307 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const activeJoinedThreadsStore = importDefault(5071) /* metro dependency 5071: ActiveJoinedThreadsStore */;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const env0_8 = (require(1309) /* metro dependency 1309: FormConstants */).getThemedRippleConfig;
|
||||
const env0_9 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value2.jsx;
|
||||
const env0_11 = value2.jsxs;
|
||||
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun117275);
|
||||
value = value.memo(TextChannel);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/TextChannel.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun117275() { // fn#117275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15537:258, offset: 0x024acbf1, size: 194 bytes, params: 1, frame: 15
|
||||
const object5 = {};
|
||||
const object6 = {'flex': 1, 'borderRadius': null, 'marginBottom': 1};
|
||||
object6.borderRadius = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)().container.borderRadius;
|
||||
object5.pressable = object6;
|
||||
const object7 = {'position': 'absolute', 'top': 0, 'bottom': 0, 'left': 0, 'right': 0, 'borderWidth': 1};
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object7.borderColor = BORDER_MUTED;
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object5.selectedBorder = object7;
|
||||
const object8 = {};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object8.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
object5.rowSelected = object8;
|
||||
return object5;
|
||||
}
|
||||
|
||||
function TextChannel({channel, subtitle, muted, navigationReplace, showGuildBadgeIcon, selected}) { // fn#117276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15537:613, offset: 0x024accb3, size: 1341 bytes, params: 2, frame: 47
|
||||
var r33;
|
||||
var moduleValue9;
|
||||
muted = !(muted === undefined) && muted;
|
||||
navigationReplace = !(navigationReplace === undefined) && navigationReplace;
|
||||
selected = !(selected === undefined) && selected;
|
||||
const id = channel.id;
|
||||
const isForumLikeChannel2 = channel.isForumLikeChannel();
|
||||
const guild_id = channel.guild_id;
|
||||
const {newChannel, optInEnabled, unread, resolvedUnreadSetting, mentionCount,
|
||||
isMentionLowImportance} = (require(14436) /* metro dependency 14436: useChannelUnreadBadgeState */).useChannelUnreadBadgeState(channel,
|
||||
muted);
|
||||
const styles = useStyles(muted, unread);
|
||||
const threadHooksModule = require(6860) /* metro dependency 6860: ThreadHooks */;
|
||||
const useHasActiveThreads = threadHooksModule.useHasActiveThreads;
|
||||
const hasActiveThreads = Reflect.apply(useHasActiveThreads, threadHooksModule, [channel]).hasActiveThreads;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const newThreadCount = Reflect.apply(useStateFromStores, fluxModule, [[ActiveJoinedThreadsStore], function() {
|
||||
var channelBinding = channel;
|
||||
return ActiveJoinedThreadsStore.getNewThreadCount(channelBinding.guild_id, channelBinding.id);
|
||||
}]);
|
||||
const moduleValue4 = fluxModule;
|
||||
useStateFromStores = moduleValue4.useStateFromStores;
|
||||
const r34 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(Reflect.apply(useStateFromStores,
|
||||
moduleValue4, [[ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channel.parent_id);
|
||||
}])) ?? undefined;
|
||||
const value9 = (require(9619) /* metro dependency 9619: ForumHooks */).useUnreadThreadsCountForParent(channel.guild_id,
|
||||
channel.id);
|
||||
const value11 = (importDefault(13775) /* metro dependency 13775: useMessagePreviews */)(channel,
|
||||
{unread: unread && !muted});
|
||||
const value12 = (require(5087) /* metro dependency 5087: SpoilerChannelUtils */).useIsChannelSpoilerGated(channel);
|
||||
const value13 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
|
||||
const locale = fluxModule.useStateFromStores([LocaleStore], function() {
|
||||
return LocaleStore.locale;
|
||||
});
|
||||
const value14 = (importDefault(15341) /* metro dependency 15341: usePressUnderlayColor */)();
|
||||
const {isSubscriptionGated,
|
||||
needSubscriptionToAccess} = (importDefault(6632) /* metro dependency 6632: useChannelRoleSubscriptionStatus */)(channel.id);
|
||||
const value16 = (importDefault(11600) /* metro dependency 11600: useEmbeddedAppsForChannel */)(channel);
|
||||
if (value11 == null) {
|
||||
moduleValue9 = require(15343) /* metro dependency 15343: ChannelSubtitle */;
|
||||
r33 = moduleValue9.renderChannelSubtitle({subtitle: subtitle, muted: muted, channelId: id, guildId: guild_id});
|
||||
} else if (value12) {
|
||||
moduleValue9 = require(15343) /* metro dependency 15343: ChannelSubtitle */;
|
||||
r33 = moduleValue9.renderChannelSubtitle({subtitle: subtitle, muted: muted, channelId: id, guildId: guild_id});
|
||||
} else {
|
||||
const ChannelRowPreview = (require(10975) /* metro dependency 10975: ChannelRowPreview */).ChannelRowPreview;
|
||||
r33 = <ChannelRowPreview channel={channel} message={value11} color="text-muted" muted={muted} layout={(require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes.COMPACT} />;
|
||||
}
|
||||
const value19 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).useIsActivitiesInTextEnabled(channel.id);
|
||||
const value21 = env0_3.useMemo(_fun117280, [value16.length > 0, value16]);
|
||||
const defaultImport3 = importDefault(15333) /* metro dependency 15333: renderChannelPressableWrapper */;
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
const pressableHighlightProps = {style: [styles.pressable, selected ? styles.rowSelected : undefined],
|
||||
underlayColor: value14, androidRippleConfig: getThemedRippleConfig({color: value14})};
|
||||
const useTextChannelPressEventsModule = require(15344) /* metro dependency 15344: useTextChannelPressEvents */;
|
||||
const useTextChannelPressEvents = useTextChannelPressEventsModule.useTextChannelPressEvents;
|
||||
copyDataProperties(pressableHighlightProps, Reflect.apply(useTextChannelPressEvents,
|
||||
useTextChannelPressEventsModule, [channel, navigationReplace]), undefined);
|
||||
const renderChannelItemModule = require(15345) /* metro dependency 15345: renderChannelItem */;
|
||||
const getChannelAccessibilityProps = renderChannelItemModule.getChannelAccessibilityProps;
|
||||
copyDataProperties(pressableHighlightProps, Reflect.apply(getChannelAccessibilityProps, renderChannelItemModule,
|
||||
[{channel: channel, unread: unread, mentionCount: mentionCount}]), undefined);
|
||||
const items2 = [selected && <View style={styles.selectedBorder} pointerEvents="none" />];
|
||||
const defaultImport4 = importDefault(15345) /* metro dependency 15345: renderChannelItem */;
|
||||
const object = {channel: channel, channelCategoryName: r34, subtitle: r33, hasActiveThreads: hasActiveThreads};
|
||||
object.unreadBadge = ((Component) => <Component unread={unread} resolvedUnreadSetting={resolvedUnreadSetting} muted={muted} />)(importDefault(15336) /* metro dependency 15336: UnreadBadge */);
|
||||
object.mentionBadge = (importDefault(15339) /* metro dependency 15339: renderChannelBadge */)({newChannel: newChannel && optInEnabled,
|
||||
mentionCount: mentionCount, isMentionLowImportance: isMentionLowImportance,
|
||||
postsWithUnreadsCount: isForumLikeChannel2 && value9 > 0 ? muted || resolvedUnreadSetting !== UnreadSetting.ALL_MESSAGES ? undefined : value9 : undefined,
|
||||
newPostCount: isForumLikeChannel2 && value9 > 0 ? muted ? undefined : newThreadCount : undefined,
|
||||
locale: locale});
|
||||
object.unread = unread;
|
||||
object.resolvedUnreadSetting = resolvedUnreadSetting;
|
||||
object.mentionCount = mentionCount;
|
||||
object.muted = muted;
|
||||
object.channelName = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel);
|
||||
object.fontScale = value13;
|
||||
object.isSubscriptionGated = isSubscriptionGated;
|
||||
object.needSubscriptionToAccess = needSubscriptionToAccess;
|
||||
object.showGuildBadgeIcon = showGuildBadgeIcon;
|
||||
object.end = value19 ? value21 : null;
|
||||
items2[1] = defaultImport4(object);
|
||||
return defaultImport3(<PressableHighlight {...pressableHighlightProps}>{items2}</PressableHighlight>);
|
||||
}
|
||||
|
||||
function _fun117280() { // fn#117280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15537:1764, offset: 0x024ad238, size: 60 bytes, params: 1, frame: 15
|
||||
return env0_2 ? ((Component) => <Component embeddedApps={env0_1} />)(importDefault(14700) /* metro dependency 14700: ChannelItemEmbeddedActivities */) : null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 15336; source: modules/launchpad/native/shared/UnreadBadge.tsx; dependencies: [31, 27, 10980, 4865, 33, 4501, 15332, 4584, 9609, 2] */
|
||||
function _fun117264(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15533:6, offset: 0x024abd44, size: 260 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const 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 env0_4 = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).MUTED_OPACITY_CONTENT;
|
||||
const env0_5 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({unreadBadge: {'flexGrow': 0,
|
||||
'flexShrink': 0, 'position': 'absolute'}});
|
||||
value = value.memo(UnreadBadge);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/UnreadBadge.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function UnreadBadge({unread, resolvedUnreadSetting, muted}) { // fn#117265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15533:289, offset: 0x024abe48, size: 307 bytes, params: 2, frame: 24
|
||||
var r0;
|
||||
var object4;
|
||||
var unreadBadge;
|
||||
var items2;
|
||||
var object5;
|
||||
var size;
|
||||
var Badge;
|
||||
var object3;
|
||||
var CHANNEL_BADGE_SIZE;
|
||||
var Math;
|
||||
var max;
|
||||
var value5;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
if (unread) {
|
||||
object4 = {};
|
||||
unreadBadge = styles.unreadBadge;
|
||||
items2 = [unreadBadge];
|
||||
unreadBadge = value2.unreadBadge;
|
||||
items2[1] = unreadBadge.position;
|
||||
object5 = {};
|
||||
unreadBadge = value2.unreadBadge;
|
||||
size = unreadBadge.size;
|
||||
object5.width = size;
|
||||
unreadBadge = value2.unreadBadge;
|
||||
size = unreadBadge.size;
|
||||
object5.height = size;
|
||||
items2[2] = object5;
|
||||
object4.style = items2;
|
||||
Badge = importDefault(9609) /* metro dependency 9609: Badge */;
|
||||
CHANNEL_BADGE_SIZE = (require(9609) /* metro dependency 9609: Badge */).CHANNEL_BADGE_SIZE;
|
||||
Math = global.Math;
|
||||
max = Math.max;
|
||||
value5 = 1;
|
||||
r0 = <View {...object4}><Badge classic size={CHANNEL_BADGE_SIZE * Reflect.apply(max, Math,
|
||||
[(require(4584) /* metro dependency 4584: useFontScale */).useFontScale(),
|
||||
value5])} badgeStyle={[{opacity: resolvedUnreadSetting !== UnreadSetting.ALL_MESSAGES || muted ? MUTED_OPACITY_CONTENT : value5}]} /></View>;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,278 @@
|
||||
/* Metro module 15347; source: modules/launchpad/native/shared/VoiceOrStageChannel.tsx; dependencies: [5, 31, 27, 4810, 1384, 1949, 4864, 4300, 661, 1309, 1386, 33, 1244, 8113, 1962, 7709, 6632, 6664, 8919, 1230, 6947, 15323, 12129, 4501, 4048, 7702, 4002, 15332, 7721, 14436, 566, 6273, 6268, 11600, 15345, 4805, 15341, 4584, 10978, 15333, 5278, 15343, 15339, 14700, 11814, 15348, 14705, 2] */
|
||||
function _fun117302(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:6, offset: 0x024ae2a3, size: 450 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const handleVoiceOrStageChannelConnectPress_117304 = function() {
|
||||
return _handleVoiceOrStageChannelConnectPress_117305.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const stageChannelParticipantStore = importDefault(4810) /* metro dependency 4810: StageChannelParticipantStore */;
|
||||
const stageInstanceStore = importDefault(1384) /* metro dependency 1384: StageInstanceStore */;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const sortedVoiceStateStore = importDefault(4300) /* metro dependency 4300: SortedVoiceStateStore */;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).Routes;
|
||||
const env0_12 = (require(1309) /* metro dependency 1309: FormConstants */).getThemedRippleConfig;
|
||||
const env0_13 = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoute;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value2.jsx;
|
||||
const env0_15 = value2.jsxs;
|
||||
const env0_16 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
|
||||
return {voiceUsers: {'display': 'flex', 'flexDirection': 'row', 'paddingRight': 16, 'marginTop': -2},
|
||||
pressable: {flex: 1}};
|
||||
});
|
||||
const env0_17 = [];
|
||||
const env0_18 = value.memo(UnmemoedVoiceOrStageChannelBase);
|
||||
value = value.memo(VoiceOrStageChannel);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/VoiceOrStageChannel.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function getStageChannelAccessibilityProps_117303({channelName, channel, userCount}) { // fn#117303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:288, offset: 0x024ae465, size: 283 bytes, params: 2, frame: 21
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const TPPk2T = t.TPPk2T;
|
||||
const value2 = Reflect.apply(formatToPlainString, intl, [TPPk2T, {channelName: channelName}]);
|
||||
const userLimit = channel.userLimit;
|
||||
return {'accessible': true, 'accessibilityRole': 'button',
|
||||
accessibilityLabel: userLimit == null ? userCount > 0 ? intl.formatToPlainString(t['7yr3Qc'],
|
||||
{channelName: channelName,
|
||||
userCount: userCount}) : value2 : channel.userLimit > 0 ? intl.formatToPlainString(t.rhh6Ev,
|
||||
{channelName: channelName, userCount: userCount,
|
||||
limit: channel.userLimit}) : userCount > 0 ? intl.formatToPlainString(t['7yr3Qc'], {channelName: channelName,
|
||||
userCount: userCount}) : value2};
|
||||
}
|
||||
|
||||
function _handleVoiceOrStageChannelConnectPress_117305() { // fn#117305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:860, offset: 0x024ae580, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun117307).apply(this, arguments);
|
||||
}
|
||||
|
||||
function useVoiceChannelPressEvents(a0) { // fn#117308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:1148, offset: 0x024ae653, size: 111 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const value = useVoiceChannelPressEventsUseVoiceChannelOnPressHandler();
|
||||
const object2 = {};
|
||||
object2.onPress = env0_4.useCallback(_fun117315, [a0, value]);
|
||||
object2.onLongPress = env0_4.useCallback(_fun117316, [a0.id]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function UnmemoedVoiceOrStageChannelBase({channel, subtitle, voiceStates = env0_17, speakerVoiceStates = env0_17}) { // fn#117318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:2099, offset: 0x024ae8ea, size: 1368 bytes, params: 2, frame: 48
|
||||
var r38;
|
||||
var r5;
|
||||
var voiceUsers;
|
||||
var items4;
|
||||
const id = channel.id;
|
||||
const guild_id = channel.guild_id;
|
||||
const value5 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const value6 = (importDefault(7702) /* metro dependency 7702: useIsUsingClientTheme */)();
|
||||
const sharedModule = require(4002) /* metro dependency 4002: shared */;
|
||||
const styles = useStyles(value6, sharedModule.isThemeLight(value5));
|
||||
const value7 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
const value8 = (require(7721) /* metro dependency 7721: VoiceChatHooks */).useIsConnectedToVoiceChannel(channel);
|
||||
const {unread,
|
||||
mentionCount} = (require(14436) /* metro dependency 14436: useChannelUnreadBadgeState */).useBaseChannelUnreadBadgeState(channel,
|
||||
!value8);
|
||||
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
|
||||
function() {
|
||||
return UserGuildSettingsStore.resolveUnreadSetting(channel);
|
||||
});
|
||||
const stageChannelParticipantStoreHooksModule = require(6273) /* metro dependency 6273: StageChannelParticipantStoreHooks */;
|
||||
const useStageParticipantsCount = stageChannelParticipantStoreHooksModule.useStageParticipantsCount;
|
||||
const id2 = channel.id;
|
||||
const StageChannelParticipantNamedIndex = (require(6268) /* metro dependency 6268: StageChannelParticipants */).StageChannelParticipantNamedIndex;
|
||||
const AUDIENCE = StageChannelParticipantNamedIndex.AUDIENCE;
|
||||
const value11 = Reflect.apply(useStageParticipantsCount, stageChannelParticipantStoreHooksModule, [id2, AUDIENCE]);
|
||||
const r28 = value11 + voiceStates.length ?? 0;
|
||||
const value15 = useVoiceChannelPressEvents(channel);
|
||||
const value16 = (importDefault(11600) /* metro dependency 11600: useEmbeddedAppsForChannel */)(channel);
|
||||
const channelAccessibilityProps = (require(15345) /* metro dependency 15345: renderChannelItem */).getChannelAccessibilityProps({channel: channel,
|
||||
unread: unread, mentionCount: mentionCount, voiceStates: voiceStates, embeddedActivitiesCount: value16.length});
|
||||
const value18 = (require(566) /* metro dependency 566: flux */).useStateFromStores([StageInstanceStore],
|
||||
function() {
|
||||
return StageInstanceStore.getStageInstanceByChannel(channel.id);
|
||||
}, [channel.id]);
|
||||
const topic = value18?.topic;
|
||||
const value19 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel, false);
|
||||
const value20 = (channel.isGuildStageVoice() ? speakerVoiceStates : voiceStates).map(function(a0) {
|
||||
return a0.user;
|
||||
});
|
||||
const value21 = (importDefault(15341) /* metro dependency 15341: usePressUnderlayColor */)();
|
||||
const value22 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
|
||||
const locale = (require(566) /* metro dependency 566: flux */).useStateFromStores([LocaleStore], function() {
|
||||
return LocaleStore.locale;
|
||||
});
|
||||
const {isSubscriptionGated,
|
||||
needSubscriptionToAccess} = (importDefault(6632) /* metro dependency 6632: useChannelRoleSubscriptionStatus */)(channel.id);
|
||||
env0_4.useEffect(_fun117323, [value8, subtitle]);
|
||||
const defaultImport3 = importDefault(15333) /* metro dependency 15333: renderChannelPressableWrapper */;
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
const pressableHighlightProps = {style: [styles.pressable, {paddingBottom: voiceStates.length > 0 ? 6 : 0,
|
||||
borderRadius: value7.container.borderRadius}], underlayColor: value21,
|
||||
androidRippleConfig: getThemedRippleConfig({color: value21}), ...value15,
|
||||
...(channel.isGuildStageVoice() ? getStageChannelAccessibilityProps_117303({channelName: value19,
|
||||
channel: channel, userCount: r28}) : channelAccessibilityProps)};
|
||||
const defaultImport4 = importDefault(15345) /* metro dependency 15345: renderChannelItem */;
|
||||
const object = {channel: channel};
|
||||
object.subtitle = (require(15343) /* metro dependency 15343: ChannelSubtitle */).renderChannelSubtitle({subtitle: topic ?? subtitle,
|
||||
channelId: id, guildId: guild_id, connected: value8});
|
||||
object.unread = unread || mentionCount > 0;
|
||||
object.resolvedUnreadSetting = value10;
|
||||
object.mentionCount = mentionCount;
|
||||
object.mentionBadge = (importDefault(15339) /* metro dependency 15339: renderChannelBadge */)({mentionCount: mentionCount,
|
||||
locale: locale});
|
||||
object.live = value18 != null;
|
||||
object.end = value16.length > 0 ? ((Component) => <Component embeddedApps={value16} size={value7.joinVoiceButton.icon.gameSize} />)(importDefault(14700) /* metro dependency 14700: ChannelItemEmbeddedActivities */) : ((VocalChannelJoinButton) => <VocalChannelJoinButton channel={channel} voiceStates={voiceStates} />)((require(11814) /* metro dependency 11814: components */).VocalChannelJoinButton);
|
||||
object.connected = value8;
|
||||
object.fontScale = value22;
|
||||
object.isSubscriptionGated = isSubscriptionGated;
|
||||
object.needSubscriptionToAccess = needSubscriptionToAccess;
|
||||
object.showGuildBadgeIcon = true;
|
||||
const value29 = defaultImport4(object);
|
||||
if (voiceStates.length > 0) {
|
||||
voiceUsers = styles.voiceUsers;
|
||||
items4 = [voiceUsers];
|
||||
voiceUsers = value7.voiceUsers;
|
||||
items4[1] = voiceUsers.margin;
|
||||
r5 = <View style={items4}>{((Component) => <Component users={value20} max={5} guildId={channel.guild_id} audienceCount={value11} />)(importDefault(15348) /* metro dependency 15348: VoiceOrStageSummaryRow */)}</View>;
|
||||
} else {
|
||||
r5 = null;
|
||||
}
|
||||
return defaultImport3(<PressableHighlight {...pressableHighlightProps}>{value29}{r5}</PressableHighlight>);
|
||||
}
|
||||
|
||||
function VoiceOrStageChannel({channel, customSubtitle}) { // fn#117324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:4155, offset: 0x024aeeea, size: 154 bytes, params: 2, frame: 21
|
||||
return ((Component) => <Component channel={channel} voiceStates={(require(566) /* metro dependency 566: flux */).useStateFromStores([SortedVoiceStateStore],
|
||||
function() {
|
||||
return SortedVoiceStateStore.getVoiceStatesForChannel(channel);
|
||||
})} speakerVoiceStates={(require(566) /* metro dependency 566: flux */).useStateFromStoresArray([StageChannelParticipantStore],
|
||||
_fun117326)} subtitle={customSubtitle} />)(env0_18);
|
||||
}
|
||||
|
||||
function* _fun117307(a0) { // fn#117307, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:959, offset: 0x024ae5bd, size: 150 bytes, params: 2, frame: 17
|
||||
if (true) {
|
||||
value = a0.isGuildStageVoice();
|
||||
var binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var value4 = binding(binding2[14]);
|
||||
if (value) {
|
||||
yield value4(binding2[13], binding2.paths);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
value.connectAndOpen(a0);
|
||||
} else {
|
||||
yield value4(binding2[15], binding2.paths);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
value.openGuildVoiceModal(a0, 'Channel List');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function useVoiceChannelPressEventsUseVoiceChannelOnPressHandler() { // fn#117309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:1193, owner: useVoiceChannelPressEvents.useVoiceChannelOnPressHandler, offset: 0x024ae6c2, size: 39 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return env1_4.useCallback(_fun117310(), []);
|
||||
}
|
||||
|
||||
function _fun117315() { // fn#117315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:1770, offset: 0x024ae828, size: 107 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_0.guild_id != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(6947) /* metro dependency 6947: transitionToGuildNative */;
|
||||
moduleValue.transitionToGuild(env0_0.guild_id);
|
||||
}
|
||||
(importDefault(15323) /* metro dependency 15323: hideLaunchPad */)();
|
||||
env0_1(env0_0);
|
||||
}
|
||||
|
||||
function _fun117316() { // fn#117316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:1884, offset: 0x024ae893, size: 50 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
|
||||
return value.openChannelLongPressActionSheet(env0_0.id);
|
||||
}
|
||||
|
||||
function _fun117323() { // fn#117323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:3128, offset: 0x024aee7d, size: 109 bytes, params: 1, frame: 12
|
||||
var value5;
|
||||
var messagePreviewASTCache;
|
||||
if (subtitle != null && typeof subtitle !== 'string' && subtitle.type === 'voice') {
|
||||
value5 = environment.__proto__;
|
||||
messagePreviewASTCache = (require(10978) /* metro dependency 10978: MessagePreviewMarkup */).messagePreviewASTCache;
|
||||
messagePreviewASTCache.del(subtitle.text);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun117326() { // fn#117326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:4329, offset: 0x024aef9f, size: 114 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const getMutableParticipants = StageChannelParticipantStore.getMutableParticipants;
|
||||
const id = channel.id;
|
||||
const StageChannelParticipantNamedIndex = (require(6268) /* metro dependency 6268: StageChannelParticipants */).StageChannelParticipantNamedIndex;
|
||||
const SPEAKER = StageChannelParticipantNamedIndex.SPEAKER;
|
||||
value = Reflect.apply(getMutableParticipants, StageChannelParticipantStore, [id, SPEAKER]);
|
||||
value = value.filter(function({type}) {
|
||||
return type === require(dependencyMap[32]).StageChannelParticipantTypes.VOICE;
|
||||
});
|
||||
return value.map((require(14705) /* metro dependency 14705: useStageChannelSpeakerVoiceStates */).transformParticipantToSortedVoiceState);
|
||||
}
|
||||
|
||||
function _fun117310() { // fn#117310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:1255, offset: 0x024ae6e9, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_3(_fun117312);
|
||||
return _fun117314;
|
||||
}
|
||||
|
||||
function* _fun117312(a0) { // fn#117312, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15544:1275, offset: 0x024ae718, size: 272 bytes, params: 2, frame: 21
|
||||
var environment;
|
||||
var r2;
|
||||
var value7;
|
||||
var transitionTo;
|
||||
var binding2;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const env0_0 = a0;
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
let binding = env4_0;
|
||||
const value3 = undefined;
|
||||
const value4 = binding(env4_2[16]);
|
||||
const getChannelRoleSubscriptionStatus = value4.getChannelRoleSubscriptionStatus;
|
||||
const needSubscriptionToAccess = Reflect.apply(getChannelRoleSubscriptionStatus, value4,
|
||||
[a0.id]).needSubscriptionToAccess;
|
||||
const guildId = a0.getGuildId();
|
||||
if (guildId != null) {
|
||||
binding = env4_0;
|
||||
var value6 = binding(env4_2[17]);
|
||||
if (value6.shouldShowMembershipVerificationGate(guildId)) {
|
||||
binding = env4_0;
|
||||
binding2 = env4_2;
|
||||
value = binding(binding2[14]);
|
||||
yield value(binding2[18], binding2.paths);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
value = value.openMemberVerificationModal(guildId, _fun117313);
|
||||
return value;
|
||||
}
|
||||
}
|
||||
if (needSubscriptionToAccess) {
|
||||
binding = env4_0;
|
||||
value7 = binding(env4_2[19]);
|
||||
transitionTo = value7.transitionTo;
|
||||
binding = env4_11;
|
||||
r2 = Reflect.apply(transitionTo, value7, [binding.CHANNEL(a0.guild_id, env4_13.ROLE_SUBSCRIPTIONS)]);
|
||||
} else {
|
||||
env4_20(a0);
|
||||
r2 = value3;
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Metro module 15348; source: modules/launchpad/native/shared/VoiceOrStageSummaryRow.tsx; dependencies: [31, 27, 33, 4501, 697, 15332, 4573, 1305, 15052, 2] */
|
||||
function _fun117328(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15545:6, offset: 0x024af044, size: 211 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const 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;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun117329);
|
||||
value = value.memo(VoiceOrStageSummaryRow_117330);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/VoiceOrStageSummaryRow.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function VoiceOrStageSummaryRow_117330({users, max, guildId, audienceCount}) { // fn#117330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15545:809, offset: 0x024af117, size: 534 bytes, params: 2, frame: 30
|
||||
var object3;
|
||||
var object5;
|
||||
max = max === undefined ? 5 : max;
|
||||
var value;
|
||||
const size = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)().voiceOrStageSummaryRow.size;
|
||||
const Math = global.Math;
|
||||
const env0_3 = Math.max(users.length - max, 0);
|
||||
const styles = useStyles(size);
|
||||
const items2 = [styles.container];
|
||||
items2[1] = {height: size + 4};
|
||||
const value3 = users.map(_fun117331);
|
||||
let r5 = audienceCount != null && audienceCount > 0;
|
||||
if (r5) {
|
||||
var viewProps = {style: [styles.wrapper, users.length > 0 && ({marginLeft: -12})]};
|
||||
var viewProps2 = {style: [styles.badge, styles.audienceBadge]};
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
value = <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.CUSTOM} style={{'height': 14,
|
||||
'width': 14}} source={importDefault(15052) /* metro dependency 15052 */} />;
|
||||
value = <View {...viewProps}><View {...viewProps2}>{value}{((Text) => <Text variant="text-sm/bold" style={{marginLeft: 4}}>{audienceCount}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View></View>;
|
||||
r5 = value;
|
||||
}
|
||||
return (
|
||||
<View style={items2}>
|
||||
{value3}
|
||||
{r5}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/* Metro module 15332; source: modules/launchpad/native/shared/getLayoutStyles.tsx; dependencies: [697, 1305, 6819, 6780, 2] */
|
||||
function _fun117255(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15529:6, offset: 0x024ab626, size: 926 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {};
|
||||
object2.layout = {margin: {'marginLeft': 8, 'marginRight': 8, 'marginVertical': 0}};
|
||||
const object4 = {};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object4.padding = {'paddingVertical': 4, 'paddingLeft': 8, 'paddingRight': 8};
|
||||
object2.container = object4;
|
||||
object2.voiceUsers = {height: 36, margin: {marginLeft: 60}};
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const XSMALL = AvatarSizes.XSMALL;
|
||||
object2.voiceOrStageSummaryRow = {size: 24, avatarSize: XSMALL};
|
||||
object2.channelName = {height: 20, text: {variant: 'redesign/channel-title/semibold'}};
|
||||
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
|
||||
let EXTRA_SMALL = IconSizes.EXTRA_SMALL;
|
||||
object2.messagePreview = {'messageTypeIconSize': null, 'messageTypeIconSizeNew': 'xxs', 'height': 16,
|
||||
messageTypeIconSize: EXTRA_SMALL, text: {variant: 'text-xs/medium'}, margin: {marginTop: 0}};
|
||||
object2.timestamp = {text: {variant: 'text-xs/medium'}};
|
||||
object2.inviteRow = {text: {variant: 'text-sm/semibold'}};
|
||||
const object5 = {};
|
||||
let REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
|
||||
object5.avatarSize = REFRESH_MEDIUM_32;
|
||||
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
|
||||
const SMALL_32 = GuildIconSizes.SMALL_32;
|
||||
object5.guildIconSize = SMALL_32;
|
||||
const XXSMALL_12 = GuildIconSizes.XXSMALL_12;
|
||||
object5.guildBadgeIconSize = XXSMALL_12;
|
||||
object5.wrapper = {size: 32};
|
||||
object5.channelIcon = {size: 16};
|
||||
object5.margin = {marginRight: 8};
|
||||
object5.emoji = {'size': 16, 'lineHeight': 24};
|
||||
object2.icon = object5;
|
||||
object2.unreadBadge = {size: 8, position: {left: -12}};
|
||||
object2.mentionBadge = {position: {top: 28}};
|
||||
object2.category = {height: 30, margin: {marginTop: 16}, text: {size: 14}};
|
||||
REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
|
||||
object2.typing = {position: {'top': 3, 'left': 3}, typingIndicator: {position: {'top': 20, 'left': 10}},
|
||||
avatarSize: REFRESH_MEDIUM_32};
|
||||
object2.activeThreadCount = {text: {variant: 'text-xs/bold'}};
|
||||
const object6 = {};
|
||||
EXTRA_SMALL = IconSizes.EXTRA_SMALL;
|
||||
object6.size = EXTRA_SMALL;
|
||||
const GameIconSizes = (require(6780) /* metro dependency 6780: GameIcon */).GameIconSizes;
|
||||
const SIZE_24 = GameIconSizes.SIZE_24;
|
||||
object6.gameSize = SIZE_24;
|
||||
object2.joinVoiceButton = {text: {variant: 'text-xs/bold'}, layout: {'paddingVertical': 4, 'paddingRight': 8,
|
||||
'paddingLeft': 8, 'height': 24}, icon: object6};
|
||||
object2.threadSpine = {'left': 38, 'startAndEndHeight': 15, 'transform': null, 'topOffset': -2,
|
||||
transform: [{translateY: 10}]};
|
||||
object2.happeningNow = {margin: {'marginTop': 16, 'marginBottom': 16}};
|
||||
object2.separator = {margin: {marginVertical: 12}};
|
||||
object2.searchButton = {margin: {marginHorizontal: 12}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/getLayoutStyles.tsx');
|
||||
exports.default = getLayoutStyle;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 15335; source: modules/launchpad/native/shared/getScaledChannelRowHeight.tsx; dependencies: [15332, 2] */
|
||||
function _fun117262(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15532:6, offset: 0x024abc1a, size: 99 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/getScaledChannelRowHeight.tsx');
|
||||
exports.default = getScaledChannelRowHeight_117263;
|
||||
}
|
||||
|
||||
function getScaledChannelRowHeight_117263(a0) { // fn#117263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15532:197, offset: 0x024abc7d, size: 199 bytes, params: 2, frame: 16
|
||||
const value = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
const Math = global.Math;
|
||||
const max = Math.max;
|
||||
const Math2 = global.Math;
|
||||
return Reflect.apply(max, Math, [Math2.max(a0,
|
||||
1) * (value.channelName.height + (value.messagePreview.margin.marginTop + value.messagePreview.height)),
|
||||
value.icon.wrapper.size]) + 2 * value.container.padding.paddingVertical + 2 * value.layout.margin.marginVertical + 4;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
/* Metro module 15339; source: modules/launchpad/native/shared/renderChannelBadge.tsx; dependencies: [31, 33, 1305, 11819, 4573, 1244, 1856, 2] */
|
||||
function _fun117272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15536:6, offset: 0x024ac865, size: 138 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(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/renderChannelBadge.tsx');
|
||||
exports.default = renderChannelBadge_117273;
|
||||
}
|
||||
|
||||
function renderChannelBadge_117273({newChannel, mentionCount, isMentionLowImportance, postsWithUnreadsCount, newPostCount, eventsMentionCount, locale}) { // fn#117273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15536:216, offset: 0x024ac8ef, size: 463 bytes, params: 2, frame: 25
|
||||
var r0;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
var GkAbqY;
|
||||
var object;
|
||||
newChannel = !(newChannel === undefined) && newChannel;
|
||||
mentionCount = mentionCount === undefined ? 0 : mentionCount;
|
||||
let value = null;
|
||||
if (value == mentionCount) {
|
||||
if (newChannel) {
|
||||
value = importDefault(11819) /* metro dependency 11819: NewBadge */;
|
||||
value = ((Component) => <Component />)(value);
|
||||
r0 = value;
|
||||
} else if (value == newPostCount) {
|
||||
if (value == postsWithUnreadsCount) {
|
||||
if (value != eventsMentionCount && eventsMentionCount > 0) {
|
||||
const Badge = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge value={eventsMentionCount} eventsMentionBadge />;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else if (postsWithUnreadsCount > 0) {
|
||||
r0 = <Text variant="text-xs/bold" color="text-muted">{postsWithUnreadsCount}</Text>;
|
||||
} else if (value != eventsMentionCount && eventsMentionCount > 0) {
|
||||
const Badge2 = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge2 value={eventsMentionCount} eventsMentionBadge />;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else if (newPostCount > 0) {
|
||||
format = intl.format;
|
||||
GkAbqY = (require(1244) /* metro dependency 1244: indexNative */).t.GkAbqY;
|
||||
object = {};
|
||||
value = require(1856) /* metro dependency 1856: NumberUtils */;
|
||||
object.count = value.humanizeValue(newPostCount, locale);
|
||||
value = <Text variant="text-xs/bold" color="text-brand">{Reflect.apply(format, intl, [GkAbqY,
|
||||
object])}</Text>;
|
||||
r0 = value;
|
||||
} else if (value == postsWithUnreadsCount) {
|
||||
if (value != eventsMentionCount && eventsMentionCount > 0) {
|
||||
const Badge3 = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge3 value={eventsMentionCount} eventsMentionBadge />;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else if (postsWithUnreadsCount > 0) {
|
||||
r0 = <Text variant="text-xs/bold" color="text-muted">{postsWithUnreadsCount}</Text>;
|
||||
} else if (value != eventsMentionCount && eventsMentionCount > 0) {
|
||||
const Badge4 = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge4 value={eventsMentionCount} eventsMentionBadge />;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else if (mentionCount > 0) {
|
||||
const Badge5 = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge5 value={mentionCount} isMentionLowImportance={isMentionLowImportance} />;
|
||||
} else if (newChannel) {
|
||||
value = importDefault(11819) /* metro dependency 11819: NewBadge */;
|
||||
value = ((Component) => <Component />)(value);
|
||||
r0 = value;
|
||||
} else if (value == newPostCount) {
|
||||
if (value == postsWithUnreadsCount) {
|
||||
if (value != eventsMentionCount && eventsMentionCount > 0) {
|
||||
const Badge6 = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge6 value={eventsMentionCount} eventsMentionBadge />;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else if (postsWithUnreadsCount > 0) {
|
||||
r0 = <Text variant="text-xs/bold" color="text-muted">{postsWithUnreadsCount}</Text>;
|
||||
} else if (value != eventsMentionCount && eventsMentionCount > 0) {
|
||||
const Badge7 = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge7 value={eventsMentionCount} eventsMentionBadge />;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else if (newPostCount > 0) {
|
||||
format = intl.format;
|
||||
GkAbqY = (require(1244) /* metro dependency 1244: indexNative */).t.GkAbqY;
|
||||
object = {};
|
||||
value = require(1856) /* metro dependency 1856: NumberUtils */;
|
||||
object.count = value.humanizeValue(newPostCount, locale);
|
||||
value = <Text variant="text-xs/bold" color="text-brand">{Reflect.apply(format, intl, [GkAbqY, object])}</Text>;
|
||||
r0 = value;
|
||||
} else if (value == postsWithUnreadsCount) {
|
||||
if (value != eventsMentionCount && eventsMentionCount > 0) {
|
||||
const Badge8 = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge8 value={eventsMentionCount} eventsMentionBadge />;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else if (postsWithUnreadsCount > 0) {
|
||||
r0 = <Text variant="text-xs/bold" color="text-muted">{postsWithUnreadsCount}</Text>;
|
||||
} else if (value != eventsMentionCount && eventsMentionCount > 0) {
|
||||
const Badge9 = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
r0 = <Badge9 value={eventsMentionCount} eventsMentionBadge />;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* Metro module 15337; source: modules/launchpad/native/shared/renderChannelContent.tsx; dependencies: [31, 27, 10980, 4865, 33, 4501, 477, 15332, 5107, 15338, 4573, 6705, 8129, 14538, 2] */
|
||||
function _fun117266(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15534:6, offset: 0x024abf7b, size: 446 bytes, params: 8, frame: 26
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = 0;
|
||||
const env0_3 = importAll(dependencyMap[value]);
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = 2;
|
||||
const SUBTITLE_OPACITY_NORMAL = require(dependencyMap[value2]).SUBTITLE_OPACITY_NORMAL;
|
||||
const env0_6 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value3.jsx;
|
||||
const env0_8 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {flex: 1};
|
||||
object5.marginTop = (require(477) /* metro dependency 477: PlatformUtils */).isIOS() ? value2 : -1;
|
||||
object4.channelContent = object5;
|
||||
object4.channelContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
|
||||
'justifyContent': 'space-between'};
|
||||
object4.leftBox = {'flexDirection': 'column', 'alignItems': 'flex-start', 'flexShrink': 1};
|
||||
object4.rightBox = {'flexDirection': 'column', 'alignItems': 'flex-end'};
|
||||
object4.rightContentAbsolute = {'position': 'absolute', 'right': 0, 'top': 0};
|
||||
object4.channelTraits = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const object6 = {opacity: SUBTITLE_OPACITY_NORMAL, marginRight: 4};
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
object6.marginTop = platformUtilsModule.isAndroid() ? value2 : value;
|
||||
object4.channelTraitIcon = object6;
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/renderChannelContent.tsx');
|
||||
exports.default = renderChannelContent_117268;
|
||||
}
|
||||
|
||||
function ChannelContent({name, subtitle, unread, resolvedUnreadSetting, locked, muted, lastMessageTimestampString, channel, channelCategoryName, connected, mentionCount, mentionBadge, isSubscriptionGated, needSubscriptionToAccess}) { // fn#117267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15534:723, offset: 0x024ac139, size: 1190 bytes, params: 2, frame: 49
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var object10;
|
||||
var items4;
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
let r34 = channel != null && (locked || (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(channel));
|
||||
let r33 = channel?.isNSFW();
|
||||
const isValidElement2 = env0_3.isValidElement(subtitle);
|
||||
const value7 = lastMessageTimestampString != null;
|
||||
let r12 = value7 && mentionBadge == null;
|
||||
const items3 = [styles.leftBox];
|
||||
items3[1] = {justifyContent: isValidElement2 ? 'space-between' : 'center'};
|
||||
const object = {'flexDirection': 'row', 'paddingRight': null, 'alignItems': 'center'};
|
||||
object.paddingRight = r12 ? 30 : 0;
|
||||
const items2 = [((Component) => <Component title={name} muted={muted} unread={unread} resolvedUnreadSetting={resolvedUnreadSetting ?? UnreadSetting.ONLY_MENTIONS} connected={connected} />)(importDefault(15338) /* metro dependency 15338: ChannelTitle */)];
|
||||
items2[1] = channelCategoryName != null ? <Text variant="text-xs/bold" color="text-muted" style={{marginRight: 4}}>{channelCategoryName}</Text> : null;
|
||||
let r24 = r34 || r33;
|
||||
if (r24) {
|
||||
var viewProps = {style: [styles.channelTraits, {maxWidth: 14 * (r34 && r33 ? 2 : 1)}]};
|
||||
r34 = r34 && ((LockIcon) => <LockIcon size="xxs" color="icon-muted" style={styles.channelTraitIcon} />)((require(6705) /* metro dependency 6705: LockIcon */).LockIcon);
|
||||
items4 = [r34];
|
||||
r33 = r33 && ((WarningIcon) => <WarningIcon size="xxs" color="icon-muted" style={styles.channelTraitIcon} />)((require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon);
|
||||
items4[1] = r33;
|
||||
items4[2] = isSubscriptionGated && ((Component) => <Component locked={needSubscriptionToAccess} isInMainTabsExperiment />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
|
||||
r24 = <View {...viewProps}>{items4}</View>;
|
||||
}
|
||||
items2[2] = r24;
|
||||
const view = <View style={items3}><View style={object}>{items2}</View>{isValidElement2 ? <View style={[{paddingRight: (mentionCount ?? 0) > 0 ? 20 : 0},
|
||||
{marginTop: value3.messagePreview.margin.marginTop}]}>{subtitle}</View> : null}</View>;
|
||||
const r11 = r12 ? styles.rightContentAbsolute : styles.rightBox;
|
||||
const items8 = [value7 && <Text variant="text-xs/medium" color="text-muted" style={{marginLeft: 'auto',
|
||||
opacity: muted ? 1 : SUBTITLE_OPACITY_NORMAL}} maxFontSizeMultiplier={1.75}>{lastMessageTimestampString}</Text>];
|
||||
items8[1] = <View style={[{'alignItems': 'center', 'paddingLeft': 4},
|
||||
value7 && ({marginTop: 5})]}>{mentionBadge}</View>;
|
||||
r12 = r12 && <View style={{flex: 1}} />;
|
||||
items8[2] = r12;
|
||||
return (
|
||||
<View style={styles.channelContent}>
|
||||
<View style={styles.channelContainer}>
|
||||
{view}
|
||||
<View style={r11}>
|
||||
{items8}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function renderChannelContent_117268(a0) { // fn#117268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15534:2368, offset: 0x024ac5df, size: 33 bytes, params: 2, frame: 13
|
||||
return <ChannelContent {...a0} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/* Metro module 15345; source: modules/launchpad/native/shared/renderChannelItem.tsx; dependencies: [31, 27, 1867, 3793, 1878, 4865, 33, 9122, 4501, 697, 15332, 566, 6819, 11727, 4788, 15334, 9719, 15337, 4805, 2] */
|
||||
function _fun117291(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15542:6, offset: 0x024ad8d4, size: 305 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 guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_7 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.Fragment;
|
||||
const env0_10 = value.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
|
||||
var object2 = {'position': 'absolute', 'zIndex': 1, 'bottom': -4, 'right': -4, 'borderColor': null,
|
||||
'borderWidth': 2, 'borderRadius': 6};
|
||||
object2.borderColor = importDefault(dependencyMap[9]).colors.BACKGROUND_BASE_LOW;
|
||||
return {guildBadgeIcon: object2};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/renderChannelItem.tsx');
|
||||
exports.default = renderChannelItem_117295;
|
||||
exports.getChannelAccessibilityProps = getChannelAccessibilityProps_117296;
|
||||
}
|
||||
|
||||
function LaunchpadChannelIcon_117292({channel}) { // fn#117292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15542:392, offset: 0x024ada05, size: 252 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(channel.guild_id);
|
||||
});
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const view = <View style={styles.guildBadgeIcon}>{((Component) => <Component guild={guild} size={value2.icon.guildBadgeIconSize} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)}</View>;
|
||||
const ChannelIcon = (require(11727) /* metro dependency 11727: AppLauncherChannelListActionSheet */).ChannelIcon;
|
||||
return (
|
||||
<>
|
||||
{view}
|
||||
<ChannelIcon
|
||||
channel={channel}
|
||||
size="sm"
|
||||
wrapperSize={32}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function renderChannelItem_117295({channel, channelCategoryName, subtitle, unreadBadge, mentionBadge, locked, unread, resolvedUnreadSetting = UnreadSetting.ONLY_MENTIONS, live, muted, latestMessageTimestamp, end, connected, mentionCount, channelName, fontScale, isSubscriptionGated, needSubscriptionToAccess}) { // fn#117295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15542:798, offset: 0x024adb42, size: 702 bytes, params: 2, frame: 44
|
||||
var r26;
|
||||
var moduleValue2;
|
||||
locked = !(locked === undefined) && locked;
|
||||
unread = !(unread === undefined) && unread;
|
||||
live = !(live === undefined) && live;
|
||||
muted = !(muted === undefined) && muted;
|
||||
isSubscriptionGated = !(isSubscriptionGated === undefined) && isSubscriptionGated;
|
||||
needSubscriptionToAccess = !(needSubscriptionToAccess === undefined) && needSubscriptionToAccess;
|
||||
const r21 = latestMessageTimestamp == null || muted ? null : (require(4788) /* metro dependency 4788: NotificationCenterUtils */).getRelativeTimestamp(latestMessageTimestamp);
|
||||
const value5 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
const defaultImport = importDefault(15334) /* metro dependency 15334: renderChannelWrapper */;
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const items2 = [unreadBadge];
|
||||
const object = {'position': 'relative', 'borderRadius': null, 'justifyContent': 'center', 'alignItems': 'center',
|
||||
'flexShrink': 0, 'flexGrow': 0};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object.width = value5.icon.wrapper.size;
|
||||
object.height = value5.icon.wrapper.size;
|
||||
copyDataProperties(object, value5.icon.margin, undefined);
|
||||
items2[1] = <View style={object}>{channel.isGroupDM() ? ((Component) => <Component channel={channel} size={value5.icon.avatarSize} />)(importDefault(9719) /* metro dependency 9719: GroupDMAvatar */) : <LaunchpadChannelIcon_117292 channel={channel} />}</View>;
|
||||
const defaultImport3 = importDefault(15337) /* metro dependency 15337: renderChannelContent */;
|
||||
if (channelName != null) {
|
||||
r26 = channelName;
|
||||
} else {
|
||||
moduleValue2 = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
r26 = moduleValue2.computeChannelName(channel, UserStore, RelationshipStore);
|
||||
}
|
||||
items2[2] = defaultImport3({name: r26, subtitle: subtitle, unread: unread,
|
||||
resolvedUnreadSetting: resolvedUnreadSetting, muted: muted, lastMessageTimestampString: r21, channel: channel,
|
||||
channelCategoryName: channelCategoryName, locked: locked, connected: connected, live: live,
|
||||
mentionCount: mentionCount, mentionBadge: mentionBadge, isSubscriptionGated: isSubscriptionGated,
|
||||
needSubscriptionToAccess: needSubscriptionToAccess});
|
||||
items2[3] = end != null ? <View style={{paddingLeft: 8}}>{end}</View> : null;
|
||||
return defaultImport(<>{items2}</>, {fontScale: fontScale});
|
||||
}
|
||||
|
||||
function getChannelAccessibilityProps_117296({channel, unread, mentionCount, voiceStates, embeddedActivitiesCount}) { // fn#117296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15542:1922, offset: 0x024ade00, size: 108 bytes, params: 2, frame: 17
|
||||
const object2 = {'accessible': true, 'accessibilityRole': 'button'};
|
||||
object2.accessibilityLabel = (importDefault(9122) /* metro dependency 9122: getChannelA11yLabel */)({channel: channel,
|
||||
unread: unread, mentionCount: mentionCount, voiceStates: voiceStates,
|
||||
embeddedActivitiesCount: embeddedActivitiesCount});
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 15333; source: modules/launchpad/native/shared/renderChannelPressableWrapper.tsx; dependencies: [31, 27, 33, 15332, 2] */
|
||||
function _fun117257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15530:6, offset: 0x024ab9c4, size: 205 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_0 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = [(importDefault(15332) /* metro dependency 15332: getLayoutStyles */)().layout.margin, {'flex': 1,
|
||||
'flexDirection': 'row', 'alignItems': 'center'}];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/renderChannelPressableWrapper.tsx');
|
||||
exports.default = renderChannelPressableWrapper_117258;
|
||||
}
|
||||
|
||||
function renderChannelPressableWrapper_117258(a0) { // fn#117258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15530:319, offset: 0x024aba91, size: 38 bytes, params: 2, frame: 13
|
||||
return (
|
||||
<View style={env0_2}>
|
||||
{a0}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 15334; source: modules/launchpad/native/shared/renderChannelWrapper.tsx; dependencies: [31, 27, 33, 15332, 15335, 2] */
|
||||
function _fun117259(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15531:6, offset: 0x024abab7, size: 186 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/renderChannelWrapper.tsx');
|
||||
exports.default = renderChannelWrapper_117261;
|
||||
}
|
||||
|
||||
function getStyles(a0) { // fn#117260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15531:145, offset: 0x024abb71, size: 92 bytes, params: 2, frame: 5
|
||||
return [{'flex': 1, 'flexDirection': 'row', 'alignItems': 'center', 'position': 'relative'},
|
||||
{minHeight: a0 - 2 * env0_4.layout.margin.marginVertical}, env0_4.container.padding];
|
||||
}
|
||||
|
||||
function renderChannelWrapper_117261(a0, a1) { // fn#117261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15531:411, offset: 0x024abbcd, size: 77 bytes, params: 3, frame: 15
|
||||
return (
|
||||
<View
|
||||
style={getStyles((importDefault(15335) /* metro dependency 15335: getScaledChannelRowHeight */)(a1.fontScale))}
|
||||
>
|
||||
{a0}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 14436; source: modules/launchpad/native/shared/useChannelUnreadBadgeState.tsx; dependencies: [5096, 4605, 4864, 566, 5102, 2] */
|
||||
function _fun109255(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14633:6, offset: 0x023434ad, size: 163 bytes, params: 8, frame: 20
|
||||
let env0_0 = require;
|
||||
const closure = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return require(dependencyMap[3]).useStateFromStoresObject([ReadStateStore], _fun109257);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const newChannelsStore = importDefault(5096) /* metro dependency 5096: NewChannelsStore */;
|
||||
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/useChannelUnreadBadgeState.tsx');
|
||||
exports.useChannelUnreadBadgeState = useChannelUnreadBadgeState;
|
||||
exports.useBaseChannelUnreadBadgeState = closure;
|
||||
}
|
||||
|
||||
function useBaseChannelUnreadBadgeState(a0, a1) { // fn#109256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14633:126, offset: 0x02343550, size: 74 bytes, params: 3, frame: 14
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ReadStateStore], _fun109257);
|
||||
}
|
||||
|
||||
function useChannelUnreadBadgeState(a0, a1) { // fn#109258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14633:508, offset: 0x0234361e, size: 219 bytes, params: 3, frame: 25
|
||||
var object2;
|
||||
const env0_0 = a0;
|
||||
const {unread, mentionCount, isMentionLowImportance} = useBaseChannelUnreadBadgeState(a0, a1);
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([NewChannelsStore], _fun109259,
|
||||
[a0.guild_id, a0.id]);
|
||||
const value4 = (require(5102) /* metro dependency 5102: isOptInEnabled */).useOptInEnabledForGuild(a0.guild_id);
|
||||
object2 = {unread: unread};
|
||||
object2.resolvedUnreadSetting = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
|
||||
_fun109260);
|
||||
object2.newChannel = value3;
|
||||
object2.optInEnabled = value4;
|
||||
object2.mentionCount = mentionCount;
|
||||
object2.isMentionLowImportance = isMentionLowImportance;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun109257() { // fn#109257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14633:216, offset: 0x0234359a, size: 132 bytes, params: 1, frame: 15
|
||||
const getMentionCount = ReadStateStore.getMentionCount;
|
||||
const binding = env0_0;
|
||||
const getIsMentionLowImportance = ReadStateStore.getIsMentionLowImportance;
|
||||
return {ackMessageId: ReadStateStore.ackMessageId(env0_0.id),
|
||||
unread: !require && ReadStateStore.hasUnread(env0_0.id), mentionCount: Reflect.apply(getMentionCount,
|
||||
ReadStateStore, [binding.id]), isMentionLowImportance: Reflect.apply(getIsMentionLowImportance, ReadStateStore,
|
||||
[binding.id])};
|
||||
}
|
||||
|
||||
function _fun109259() { // fn#109259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14633:680, offset: 0x023436f9, size: 38 bytes, params: 1, frame: 13
|
||||
const shouldIndicateNewChannel = NewChannelsStore.shouldIndicateNewChannel;
|
||||
const binding = env0_0;
|
||||
return Reflect.apply(shouldIndicateNewChannel, NewChannelsStore, [binding.guild_id, binding.id]);
|
||||
}
|
||||
|
||||
function _fun109260() { // fn#109260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14633:864, offset: 0x0234371f, size: 27 bytes, params: 1, frame: 11
|
||||
return UserGuildSettingsStore.resolveUnreadSetting(env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 15326; source: modules/launchpad/native/shared/useSimpleGuildDefaultColors.tsx; dependencies: [4501, 697, 2] */
|
||||
function _fun117213(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15523:6, offset: 0x024a8c0a, size: 201 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object2.iconBackground = {color: BACKGROUND_MOD_STRONG};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object2.iconBackgroundBrand = {color: BACKGROUND_BRAND};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.iconStroke = {color: BORDER_SUBTLE};
|
||||
value = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/useSimpleGuildDefaultColors.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 15329; source: modules/launchpad/native/shared/useSimpleGuildSize.tsx; dependencies: [31, 2] */
|
||||
function _fun117230(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15526:6, offset: 0x024aa2a6, size: 106 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/useSimpleGuildSize.tsx');
|
||||
exports.default = useSimpleGuildSize;
|
||||
}
|
||||
|
||||
function useSimpleGuildSize({size, style}) { // fn#117231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15526:204, offset: 0x024aa310, size: 142 bytes, params: 2, frame: 17
|
||||
const env0_0 = size;
|
||||
const r3 = size ?? 48;
|
||||
const binding = env0_0;
|
||||
let useMemo = binding.useMemo;
|
||||
value = Reflect.apply(useMemo, binding, [_fun117232, [r3]]);
|
||||
useMemo = binding.useMemo;
|
||||
return {containerSize: r3, containerSizeStyle: value, containerStyles: Reflect.apply(useMemo, binding, [_fun117233,
|
||||
[style, size, value]])};
|
||||
}
|
||||
|
||||
function _fun117232() { // fn#117232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15526:282, offset: 0x024aa39e, size: 23 bytes, params: 1, frame: 3
|
||||
return {width: env0_2, height: env0_2};
|
||||
}
|
||||
|
||||
function _fun117233() { // fn#117233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15526:326, offset: 0x024aa3b5, size: 83 bytes, params: 1, frame: 6
|
||||
const sizeBinding = size;
|
||||
const value2 = 0;
|
||||
return [{position: 'relative', marginLeft: sizeBinding == null ? 4 : value2,
|
||||
marginRight: size == null ? 4 : value2}, env0_3, style];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user