Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,61 @@
|
||||
/* Metro module 11557; source: modules/media_channel/native/MediaPostGridThumbnail.tsx; dependencies: [31, 27, 33, 11555, 5475, 477, 2] */
|
||||
function _fun88568(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11743:6, offset: 0x01fe8c77, size: 211 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.ImageBackground;
|
||||
const env0_4 = value.StyleSheet;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = value.Fragment;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media_channel/native/MediaPostGridThumbnail.tsx');
|
||||
exports.default = MediaPostGridThumbnail;
|
||||
}
|
||||
|
||||
function MediaPostGridThumbnailAndroid(a0) { // fn#88569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11743:189, offset: 0x01fe8d4a, size: 324 bytes, params: 2, frame: 24
|
||||
const shouldSpoiler = a0.shouldSpoiler;
|
||||
const blurTheme = a0.blurTheme;
|
||||
const source = a0.source;
|
||||
const androidStyle = a0.androidStyle;
|
||||
const backgroundImagesource = a0.backgroundImagesource;
|
||||
return backgroundImagesource == null ? <ImageBackground style={androidStyle} source={source} blurRadius={shouldSpoiler ? 10 : 0} resizeMode="cover">{((ForumPostMediaSpoiler) => <ForumPostMediaSpoiler shouldSpoiler={shouldSpoiler} blurTheme={blurTheme} />)((require(11555) /* metro dependency 11555: ForumPostMedia */).ForumPostMediaSpoiler)}</ImageBackground> : <ImageBackground style={androidStyle} source={backgroundImagesource} resizeMode="cover" imageStyle={{opacity: 0.2}}>{((Component) => <Component style={StyleSheet.absoluteFill} source={source} resizeMode={a0.resizeMode} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}{((ForumPostMediaSpoiler) => <ForumPostMediaSpoiler shouldSpoiler={shouldSpoiler} blurTheme={blurTheme} />)((require(11555) /* metro dependency 11555: ForumPostMedia */).ForumPostMediaSpoiler)}</ImageBackground>;
|
||||
}
|
||||
|
||||
function MediaPostGridThumbnailIOS({shouldSpoiler, blurTheme, source, iosStyle, backgroundImagesource, resizeMode}) { // fn#88570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11743:665, offset: 0x01fe8e8e, size: 367 bytes, params: 2, frame: 29
|
||||
var object;
|
||||
var items2;
|
||||
var items3;
|
||||
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
||||
if (backgroundImagesource == null) {
|
||||
items3 = [((Component) => <Component style={iosStyle} source={source} resizeMode={resizeMode} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
items3[1] = ((ForumPostMediaSpoiler) => <ForumPostMediaSpoiler shouldSpoiler={shouldSpoiler} blurTheme={blurTheme} />)((require(11555) /* metro dependency 11555: ForumPostMedia */).ForumPostMediaSpoiler);
|
||||
object = {children: items3};
|
||||
} else {
|
||||
items2 = [((Component) => <Component style={[StyleSheet.absoluteFill,
|
||||
{opacity: 0.2}]} source={backgroundImagesource} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
items2[1] = ((Component) => <Component style={iosStyle} source={source} resizeMode={resizeMode} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
items2[2] = ((ForumPostMediaSpoiler) => <ForumPostMediaSpoiler shouldSpoiler={shouldSpoiler} blurTheme={blurTheme} />)((require(11555) /* metro dependency 11555: ForumPostMedia */).ForumPostMediaSpoiler);
|
||||
object = {children: items2};
|
||||
}
|
||||
return ((Fragment) => <Fragment {...object} />)(jsxRuntimeEnv0_7Binding);
|
||||
}
|
||||
|
||||
function MediaPostGridThumbnail(a0) { // fn#88571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11743:1222, offset: 0x01fe8ffd, size: 168 bytes, params: 2, frame: 16
|
||||
var r1;
|
||||
var source;
|
||||
if (a0.isPortrait === true && a0.shouldSpoiler === false) {
|
||||
source = a0.source;
|
||||
r1 = 'contain';
|
||||
} else {
|
||||
r1 = 'cover';
|
||||
source = undefined;
|
||||
}
|
||||
const mediaPostGridThumbnailIOSProps = {...a0};
|
||||
mediaPostGridThumbnailIOSProps['backgroundImagesource'] = source;
|
||||
mediaPostGridThumbnailIOSProps['resizeMode'] = r1;
|
||||
return (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? <MediaPostGridThumbnailAndroid {...mediaPostGridThumbnailIOSProps} /> : <MediaPostGridThumbnailIOS {...mediaPostGridThumbnailIOSProps} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* Metro module 11020; source: modules/media_channel/native/MediaPostMultipleThumbnailActionSheet.tsx; dependencies: [31, 27, 1376, 33, 4501, 697, 1585, 6275, 6277, 4573, 1244, 1305, 4578, 2] */
|
||||
function _fun84406(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11206:6, offset: 0x01f48b6b, size: 449 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
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 env0_4 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object2.container = {'flex': 1, 'backgroundColor': null, 'padding': 24, backgroundColor: BACKGROUND_SURFACE_HIGH};
|
||||
const object5 = {'flex': 1, 'width': '100%', 'paddingVertical': 40, 'paddingHorizontal': 12};
|
||||
const TEXT_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_WARNING;
|
||||
object5.backgroundColor = TEXT_FEEDBACK_WARNING;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.topContainer = object5;
|
||||
const object6 = {'flex': 1, 'flexDirection': 'row', 'padding': 12, 'width': '100%', 'backgroundColor': null,
|
||||
'borderRadius': null, 'alignItems': 'center', 'justifyContent': 'space-between'};
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object6.backgroundColor = BACKGROUND_MOD_NORMAL;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.setAsThumbnailContainer = object6;
|
||||
object2.contentContainer = {'alignItems': 'center', 'flex': 1};
|
||||
object2.title = {marginTop: 24};
|
||||
object2.description = {textAlign: 'center'};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media_channel/native/MediaPostMultipleThumbnailActionSheet.tsx');
|
||||
exports.default = MediaPostThumbnailActionSheet;
|
||||
}
|
||||
|
||||
function MediaPostThumbnailActionSheet({markAsDismissed}) { // fn#84407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11206:876, offset: 0x01f48d2c, size: 746 bytes, params: 2, frame: 32
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const items2 = [styles.contentContainer];
|
||||
items2[1] = {paddingBottom: bottom};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
let value = <Text variant="text-md/semibold" color="mobile-text-heading-primary">{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.ews2pj])}</Text>;
|
||||
const Checkbox = (require(1305) /* metro dependency 1305: native */).Checkbox;
|
||||
value = <View style={styles.topContainer}><View style={styles.setAsThumbnailContainer}>{value}<Checkbox selected /></View></View>;
|
||||
const items3 = [value];
|
||||
string = intl.string;
|
||||
const WJisip = (require(1244) /* metro dependency 1244: indexNative */).t.WJisip;
|
||||
items3[1] = <Text variant="heading-lg/semibold" color="mobile-text-heading-primary" style={styles.title}>{Reflect.apply(string,
|
||||
intl, [WJisip])}</Text>;
|
||||
const Spacer = (require(1305) /* metro dependency 1305: native */).Spacer;
|
||||
items3[2] = <Spacer size={12} />;
|
||||
string = intl.string;
|
||||
const X6ZH6d = (require(1244) /* metro dependency 1244: indexNative */).t.X6ZH6d;
|
||||
items3[3] = <Text variant="text-md/normal" color="text-default" style={styles.description}>{Reflect.apply(string,
|
||||
intl, [X6ZH6d])}</Text>;
|
||||
items3[4] = <Spacer size={48} />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items3[5] = <Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])} grow onPress={function() {
|
||||
return markAsDismissed(ContentDismissActionType.UNKNOWN);
|
||||
}} />;
|
||||
return (
|
||||
<BottomSheet
|
||||
backdropOpacity={0.8}
|
||||
onDismiss={function() {
|
||||
return markAsDismissed(ContentDismissActionType.UNKNOWN);
|
||||
}}
|
||||
>
|
||||
<View style={styles.container}>
|
||||
<BottomSheetScrollView contentContainerStyle={items2}>
|
||||
{items3}
|
||||
</BottomSheetScrollView>
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
/* Metro module 10603; source: modules/media_channel/native/createMediaPostPreviewEmbedContent.tsx; dependencies: [27, 4649, 1379, 1867, 3969, 1878, 10604, 4803, 4246, 1244, 8205, 8207, 697, 4631, 10605, 4821, 4813, 4804, 2] */
|
||||
function _fun81729(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10789:6, offset: 0x01edbd47, size: 249 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.processColor;
|
||||
const devSettingsStore = importDefault(4649) /* metro dependency 4649: DevSettingsStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const mediaPostEmbedStore = importDefault(10604) /* metro dependency 10604: MediaPostEmbedStore */;
|
||||
const env0_11 = (require(10604) /* metro dependency 10604: MediaPostEmbedStore */).FetchState;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media_channel/native/createMediaPostPreviewEmbedContent.tsx');
|
||||
exports.default = createMediaPostPreviewEmbedContent;
|
||||
}
|
||||
|
||||
function createMediaPostPreviewEmbedContent(a0, a1, a2) { // fn#81730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10789:326, offset: 0x01edbe40, size: 1647 bytes, params: 4, frame: 28
|
||||
var r4;
|
||||
var r7;
|
||||
var moduleValue4;
|
||||
var value13;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToParts;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var mCytFr;
|
||||
var moduleValue5;
|
||||
var shouldSpoiler;
|
||||
var value24;
|
||||
var value27;
|
||||
let value = a3;
|
||||
const value2 = undefined;
|
||||
const r6 = value !== value2 ? value : false;
|
||||
const mediaPostEmbedChannelId = (require(4803) /* metro dependency 4803: MediaPostEmbedUtils */).getMediaPostEmbedChannelId(a2);
|
||||
if (mediaPostEmbedChannelId == null) {
|
||||
return null;
|
||||
}
|
||||
const embedFetchState = MediaPostEmbedStore.getEmbedFetchState(mediaPostEmbedChannelId);
|
||||
const FETCHED = FetchState.FETCHED;
|
||||
if (embedFetchState !== FETCHED) {
|
||||
return null;
|
||||
}
|
||||
const mediaPostEmbed = MediaPostEmbedStore.getMediaPostEmbed(mediaPostEmbedChannelId);
|
||||
const media = mediaPostEmbed == null ? value2 : mediaPostEmbed.media;
|
||||
if (media == null) {
|
||||
return null;
|
||||
}
|
||||
const guild = GuildStore.getGuild(media.guild_id);
|
||||
const user = UserStore.getUser(media.author_id);
|
||||
const channel = ChannelStore.getChannel(media.parent_channel_id);
|
||||
const channel2 = ChannelStore.getChannel(media.channel_id);
|
||||
const guildId = SelectedGuildStore.getGuildId();
|
||||
const r5 = channel != null && (require(4246) /* metro dependency 4246: LinkUtils */).canViewChannel(channel);
|
||||
const mediaPostEmbedUtilsModule = require(4803) /* metro dependency 4803: MediaPostEmbedUtils */;
|
||||
const getMediaPostEmbedCommonData = mediaPostEmbedUtilsModule.getMediaPostEmbedCommonData;
|
||||
let object2 = {mediaPostEmbedData: media, guild: guild, parentChannel: channel, postThread: channel2, user: user,
|
||||
selectedGuildId: guildId, canAccess: r5};
|
||||
const value12 = Reflect.apply(getMediaPostEmbedCommonData, mediaPostEmbedUtilsModule, [object2]);
|
||||
if (value12 == null) {
|
||||
return null;
|
||||
}
|
||||
if (value12.authorName == null) {
|
||||
r4 = intl.formatToParts(t.p4VdWJ, {guildName: value12.guildName});
|
||||
} else if (value12.channelName == null) {
|
||||
r4 = intl.formatToParts(t.p4VdWJ, {guildName: value12.guildName});
|
||||
} else if (user == null) {
|
||||
r4 = intl.formatToParts(t.p4VdWJ, {guildName: value12.guildName});
|
||||
} else {
|
||||
moduleValue4 = require(8205) /* metro dependency 8205: useAuthorWithProcessedColor */;
|
||||
value13 = moduleValue4.getUserAuthorWithProcessedColor(user, value12.postThread);
|
||||
formatToParts = intl.formatToParts;
|
||||
mCytFr = t.mCytFr;
|
||||
object2 = {};
|
||||
object2.username = value12.authorName;
|
||||
object2.usernameOnClick = (importDefault(8207) /* metro dependency 8207: formatUsernameOnClick */)({userId: user.id,
|
||||
|
||||
message: a0, author: value13, roleStyle: a1, messageChannelId: value12.threadId});
|
||||
object2.channelName = value12.channelName;
|
||||
r4 = Reflect.apply(formatToParts, intl, [mCytFr, object2]);
|
||||
}
|
||||
const r3 = value12.canAccess === false ? processColor((importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.TEAL_430) : processColor((importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500);
|
||||
const value18 = value12.coverImage != null;
|
||||
if (value18) {
|
||||
moduleValue5 = require(4631) /* metro dependency 4631: MediaFormatTesters */;
|
||||
r7 = moduleValue5.isAnimatedImageUrl(value12.coverImage);
|
||||
} else {
|
||||
r7 = value18;
|
||||
}
|
||||
let r1 = value12.coverImage != null && !value12.shouldShowBlurredThumbnailImage && r7 && r6;
|
||||
if (r1) {
|
||||
value12.coverImage = '' + value12.coverImage + '?format=webp';
|
||||
}
|
||||
if (value12.shouldShowBlurredThumbnailImage) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value12, undefined);
|
||||
object2['blurredCoverImage'] = Image.resolveAssetSource(importDefault(10605) /* metro dependency 10605 */).uri;
|
||||
object2['footer'] = r4;
|
||||
object2['ctaButtonColor'] = r3;
|
||||
return object2;
|
||||
}
|
||||
let r9 = DevSettingsStore.get('obscure_blur_effect_explicit_content_enabled') || DevSettingsStore.get('obscure_blur_effect_gore_content_enabled');
|
||||
r9 = !r9 ? DevSettingsStore.get('obscure_blur_effect_self_harm_content_enabled') : r9;
|
||||
const explicitMediaRedactionUtilsModule = require(4821) /* metro dependency 4821: ExplicitMediaRedactionUtils */;
|
||||
const isPendingScanVersion2 = explicitMediaRedactionUtilsModule.isPendingScanVersion(value12.contentScanVersion);
|
||||
const r11 = r9 && explicitMediaRedactionUtilsModule.shouldAgeVerifyForExplicitMedia();
|
||||
const r10 = r9 && (require(4813) /* metro dependency 4813: AgeVerificationUtils */).isVerifiedTeen();
|
||||
if (value12.shouldContainMediaWithBackground) {
|
||||
if (value12.coverImage != null) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value12, undefined);
|
||||
object2['footer'] = r4;
|
||||
shouldSpoiler = value12.shouldSpoiler;
|
||||
value27 = '';
|
||||
object2['spoiler'] = shouldSpoiler !== true ? value27 : intl.string(t['F+x38C']).toUpperCase();
|
||||
object2['obscure'] = r9 ? intl.string(t.SpxcUR) : value27;
|
||||
object2['obscureAwaitingScan'] = isPendingScanVersion2;
|
||||
object2['verifyAge'] = r11;
|
||||
object2['obscureHideControls'] = r10;
|
||||
object2['obscureIsOpaque'] = r9;
|
||||
object2['ctaButtonColor'] = r3;
|
||||
value = require(4804) /* metro dependency 4804: MediaPostThumbnailUtils */;
|
||||
value = value.getBackgroundImageUrl(value12.coverImage);
|
||||
object2['backgroundImage'] = value;
|
||||
r1 = object2;
|
||||
} else {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value12, undefined);
|
||||
object2['footer'] = r4;
|
||||
shouldSpoiler = value12.shouldSpoiler;
|
||||
value24 = '';
|
||||
object2['spoiler'] = shouldSpoiler !== true ? value24 : intl.string(t['F+x38C']).toUpperCase();
|
||||
object2['obscure'] = r9 ? intl.string(t.SpxcUR) : value24;
|
||||
object2['obscureAwaitingScan'] = isPendingScanVersion2;
|
||||
object2['verifyAge'] = r11;
|
||||
object2['obscureHideControls'] = r10;
|
||||
object2['obscureIsOpaque'] = r9;
|
||||
object2['ctaButtonColor'] = r3;
|
||||
r1 = object2;
|
||||
}
|
||||
} else {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value12, undefined);
|
||||
object2['footer'] = r4;
|
||||
shouldSpoiler = value12.shouldSpoiler;
|
||||
value24 = '';
|
||||
object2['spoiler'] = shouldSpoiler !== true ? value24 : intl.string(t['F+x38C']).toUpperCase();
|
||||
object2['obscure'] = r9 ? intl.string(t.SpxcUR) : value24;
|
||||
object2['obscureAwaitingScan'] = isPendingScanVersion2;
|
||||
object2['verifyAge'] = r11;
|
||||
object2['obscureHideControls'] = r10;
|
||||
object2['obscureIsOpaque'] = r9;
|
||||
object2['ctaButtonColor'] = r3;
|
||||
r1 = object2;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/* Metro module 11134; source: modules/media_channel/native/useSetMediaPostThumbnail.tsx; dependencies: [31, 4645, 4644, 632, 4650, 7879, 4080, 2] */
|
||||
function _fun85175(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11320:6, offset: 0x01f66210, size: 159 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(4645) /* metro dependency 4645: DraftStore */).DraftType;
|
||||
const uploadAttachmentStore = importDefault(4644) /* metro dependency 4644: UploadAttachmentStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media_channel/native/useSetMediaPostThumbnail.tsx');
|
||||
exports.default = useSetMediaPostThumbnail;
|
||||
}
|
||||
|
||||
function useSetMediaPostThumbnail(a0, a1) { // fn#85176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11320:237, offset: 0x01f662af, size: 115 bytes, params: 3, frame: 17
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env0_3.useCallback(_fun85179,
|
||||
[(require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UploadAttachmentStore],
|
||||
_fun85177), a0, a1]);
|
||||
}
|
||||
|
||||
function _fun85177() { // fn#85177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11320:314, offset: 0x01f66322, size: 70 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const getUploads = UploadAttachmentStore.getUploads;
|
||||
const binding = env0_0;
|
||||
const ChannelMessage = DraftType.ChannelMessage;
|
||||
value = Reflect.apply(getUploads, UploadAttachmentStore, [binding, ChannelMessage]);
|
||||
value = value.find(function(a0) {
|
||||
return (a0 == null || a0.item == null ? undefined : a0.item.platform) === require(dependencyMap[4]).UploadPlatform.REACT_NATIVE && a0.isThumbnail === true;
|
||||
});
|
||||
const value3 = null;
|
||||
return value3 != value ? value : value3;
|
||||
}
|
||||
|
||||
function _fun85179() { // fn#85179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11320:536, offset: 0x01f663c4, size: 319 bytes, params: 1, frame: 21
|
||||
var isThumbnail;
|
||||
var r8;
|
||||
var value5;
|
||||
var defaultImport;
|
||||
var value7;
|
||||
var defaultImport2;
|
||||
const value2 = undefined;
|
||||
if ((require == null ? value2 : require.id) != null) {
|
||||
if (env0_2 != null && env0_2.id !== (require == null ? value2 : require.id)) {
|
||||
value5 = environment.__proto__;
|
||||
defaultImport = importDefault(7879) /* metro dependency 7879: UploadAttachmentActionCreators */;
|
||||
defaultImport.update(env0_0, env0_2.id, DraftType.ChannelMessage, {thumbnail: false});
|
||||
}
|
||||
isThumbnail = require == null ? value2 : require.isThumbnail;
|
||||
r8 = isThumbnail != null && isThumbnail;
|
||||
value7 = environment.__proto__;
|
||||
defaultImport2 = importDefault(7879) /* metro dependency 7879: UploadAttachmentActionCreators */;
|
||||
defaultImport2.update(env0_0, require == null ? value2 : require.id, DraftType.ChannelMessage, {thumbnail: !r8,
|
||||
spoiler: false});
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user