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

No files matched your search

+191 -132
View File
@@ -1,24 +1,24 @@
/* Metro module 11143; source: modules/media/native/AttachmentPreview.tsx; dependencies: [31, 27, 33, 4501, 697, 11144, 11145, 11146, 11147, 11148, 11149, 11150, 11151, 11152, 11153, 11154, 11155, 11156, 11157, 4655, 4573, 477, 5475, 1305, 9783, 9543, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as FileUtilsModule from '../../../utils/FileUtils.tsx'; /* Metro dependency 4655 */
function _fun85201(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:6, offset: 0x01f66fee, size: 651 bytes, params: 8, frame: 24
const env0_0 = require;
const closure = AttachmentIcon_85202;
const AttachmentIcon_852022 = AttachmentIcon_85202;
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.Image;
const env0_5 = value2.View;
const value3 = require(33) /* metro dependency 33 */;
const env0_6 = value3.jsx;
const env0_7 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object3 = {'flexDirection': 'row', 'alignItems': 'center', 'overflow': 'hidden', 'borderRadius': null,
const createStyles = CreateStylesModule.createStyles;
const object2 = {'flexDirection': 'row', 'alignItems': 'center', 'overflow': 'hidden', 'borderRadius': null,
'height': 75, 'padding': 12, 'flex': 1};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.gap = PX_8;
const env0_8 = Reflect.apply(createStyles, createStylesModule, [{fileInfoAttachmentPreviewFile: object3,
object2.gap = PX_8;
const env0_8 = Reflect.apply(createStyles, CreateStylesModule, [{fileInfoAttachmentPreviewFile: object2,
attachmentFileIcon: {'height': 32, 'width': 24}, attachmentFileName: {'paddingRight': 4, 'paddingLeft': 4,
'maxWidth': 136}, videoIcon: {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0,
'alignItems': 'center', 'justifyContent': 'center'}}]);
@@ -35,143 +35,202 @@ function _fun85201(global, require, importDefault, importAll, module, exports, d
unknown: importDefault(11155) /* metro dependency 11155 */,
video: importDefault(11156) /* metro dependency 11156 */,
webcode: importDefault(11157) /* metro dependency 11157 */};
const env0_10 = value.memo(_fun85206);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media/native/AttachmentPreview.tsx');
const env0_10 = ReactModule.memo(_fun85206);
(FileImportTrackerModule).fileFinishedImporting('modules/media/native/AttachmentPreview.tsx');
exports.default = AttachmentPreview;
exports.AttachmentIcon = closure;
}
function AttachmentIcon_85202({fileName}) { // fn#85202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:792, offset: 0x01f67279, size: 90 bytes, params: 2, frame: 17
const styles = useStyles();
return <Image style={styles.attachmentFileIcon} source={env0_3.useMemo(_fun85203, [fileName])} />;
}
function FilenameText({fileName}) { // fn#85204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:996, offset: 0x01f67331, size: 289 bytes, params: 2, frame: 23
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const styles = useStyles();
const regexp = RegExp('(?:\\.([^.]+))?$', '');
const value2 = '';
const value3 = regexp.exec(fileName ?? value2);
return (
<View>
{fileName != null && value2 !== fileName && <Text style={styles.attachmentFileName} ellipsizeMode="middle" lineClamp={1} variant="text-xs/medium" color="mobile-text-heading-primary">{fileName}</Text>}
<Text
style={styles.attachmentFileName}
lineClamp={1}
variant="text-xs/medium"
color="text-muted"
>
{value3 != null && value3[1] != null ? value3[1].toUpperCase() : 'UNKNOWN'}
</Text>
</View>
);
}
function DefaultAttachmentPreview({fileName, maxFileWidth, borderRadius}) { // fn#85205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:1436, offset: 0x01f67452, size: 142 bytes, params: 2, frame: 19
const styles = useStyles();
return (
<View style={[styles.fileInfoAttachmentPreviewFile, {maxWidth: maxFileWidth, borderRadius: borderRadius}]}>
<AttachmentIcon_85202 fileName={fileName} />
<FilenameText fileName={fileName} />
</View>
);
}
function _fun85206({uri, width, height, borderRadius, style, fileName}) { // fn#85206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:1691, offset: 0x01f674e0, size: 423 bytes, params: 2, frame: 22
var r0;
const object3 = {uri: uri, width: width, height: height};
const object4 = {width: width, height: height, borderRadius: borderRadius};
let value = fileName != null;
let r1 = value && fileName !== '' && RegExp('\\.gif$', 'i').test(fileName);
if (r1) {
r0 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS() && uri.startsWith('ph://');
if (!r0) {
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
r0 = value && uri.startsWith('content://');
exports.AttachmentIcon = AttachmentIcon_852022;
function AttachmentIcon_85202({fileName}) { // fn#85202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:792, offset: 0x01f67279, size: 90 bytes, params: 2, frame: 17
const styles = useStyles();
return <Image style={styles.attachmentFileIcon} source={env0_3.useMemo(_fun85203, [fileName])} />;
function _fun85203() { // fn#85203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:853, offset: 0x01f672d3, size: 94 bytes, params: 1, frame: 16
const value = environment.__proto__;
return env1_9[FileUtilsModule.classifyFileName(fileName ?? '')] ?? (importDefault(11155) /* metro dependency 11155 */);
}
r1 = r0;
}
const viewProps = {style: [object4, style, {overflow: 'hidden'}]};
if (r1) {
viewProps.children = ((Component) => <Component style={[object4,
style]} source={object3} resizeMode="cover" enableAnimation />)(importDefault(5475) /* metro dependency 5475: FastImage */);
} else {
viewProps.children = ((ThumbnailImage) => <ThumbnailImage style={[object4,
style]} source={object3} localImageSource={object3} />)((require(1305) /* metro dependency 1305: native */).ThumbnailImage);
}
return <View {...viewProps} />;
}
function AttachmentPreview({uri, isImage, isVideo, width, height, maxFileWidth, fileName, borderRadius = importDefault(dependencyMap[4]).radii.sm, showPlayOnVideoPreview, defaultPreview = <DefaultAttachmentPreview fileName={fileName} maxFileWidth={maxFileWidth} borderRadius={borderRadius} />, style}) { // fn#85207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:2322, offset: 0x01f67687, size: 676 bytes, params: 2, frame: 30
var r0;
var moduleValue;
var moduleValue2;
var moduleValue3;
width = width === undefined ? 75 : width;
height = height === undefined ? 75 : height;
showPlayOnVideoPreview = !(showPlayOnVideoPreview === undefined) && showPlayOnVideoPreview;
const styles = useStyles();
if (isImage) {
r0 = ((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10);
} else if (isVideo) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
r0 = showPlayOnVideoPreview ? <View style={style}>{((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)}<View style={styles.videoIcon}>{((CirclePlayIcon) => <CirclePlayIcon size="md" color="white" secondaryColor="black" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}</View></View> : ((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10);
}
function FilenameText({fileName}) { // fn#85204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:996, offset: 0x01f67331, size: 289 bytes, params: 2, frame: 23
const Text = (TextModule).Text;
const styles = useStyles();
const regexp = RegExp('(?:\\.([^.]+))?$', '');
const value2 = '';
const value3 = regexp.exec(fileName ?? value2);
return (
<View>
{fileName != null && value2 !== fileName && <Text style={styles.attachmentFileName} ellipsizeMode="middle" lineClamp={1} variant="text-xs/medium" color="mobile-text-heading-primary">{fileName}</Text>}
<Text
style={styles.attachmentFileName}
lineClamp={1}
variant="text-xs/medium"
color="text-muted"
>
{value3 != null && value3[1] != null ? value3[1].toUpperCase() : 'UNKNOWN'}
</Text>
</View>
);
}
function DefaultAttachmentPreview({fileName, maxFileWidth, borderRadius}) { // fn#85205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:1436, offset: 0x01f67452, size: 142 bytes, params: 2, frame: 19
const styles = useStyles();
return (
<View style={[styles.fileInfoAttachmentPreviewFile, {maxWidth: maxFileWidth, borderRadius: borderRadius}]}>
<AttachmentIcon_85202 fileName={fileName} />
<FilenameText fileName={fileName} />
</View>
);
}
function _fun85206({uri, width, height, borderRadius, style, fileName}) { // fn#85206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:1691, offset: 0x01f674e0, size: 423 bytes, params: 2, frame: 22
var r0;
const object = {uri: uri, width: width, height: height};
const object2 = {width: width, height: height, borderRadius: borderRadius};
let value = fileName != null;
let r1 = value && fileName !== '' && RegExp('\\.gif$', 'i').test(fileName);
if (r1) {
r0 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS() && uri.startsWith('ph://');
if (!r0) {
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
r0 = value && uri.startsWith('content://');
}
r1 = r0;
}
const viewProps = {style: [object2, style, {overflow: 'hidden'}]};
if (r1) {
viewProps.children = ((Component) => <Component style={[object2,
style]} source={object} resizeMode="cover" enableAnimation />)(importDefault(5475) /* metro dependency 5475: FastImage */);
} else {
viewProps.children = ((ThumbnailImage) => <ThumbnailImage style={[object2,
style]} source={object} localImageSource={object} />)((require(1305) /* metro dependency 1305: native */).ThumbnailImage);
}
return <View {...viewProps} />;
}
function AttachmentPreview({uri, isImage, isVideo, width, height, maxFileWidth, fileName, borderRadius = importDefault(dependencyMap[4]).radii.sm, showPlayOnVideoPreview, defaultPreview = <DefaultAttachmentPreview fileName={fileName} maxFileWidth={maxFileWidth} borderRadius={borderRadius} />, style}) { // fn#85207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:2322, offset: 0x01f67687, size: 676 bytes, params: 2, frame: 30
var r0;
var moduleValue;
var moduleValue2;
var moduleValue3;
width = width === undefined ? 75 : width;
height = height === undefined ? 75 : height;
showPlayOnVideoPreview = !(showPlayOnVideoPreview === undefined) && showPlayOnVideoPreview;
const styles = useStyles();
if (isImage) {
r0 = ((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10);
} else if (isVideo) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
r0 = (
showPlayOnVideoPreview
? (
<View style={style}>
{((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)}
<View style={styles.videoIcon}>
{((CirclePlayIcon) => <CirclePlayIcon size="md" color="white" secondaryColor="black" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}
</View>
</View>
)
: ((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)
);
} else {
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue2.isIOS()) {
if (uri.startsWith('ph://')) {
r0 = (
showPlayOnVideoPreview
? (
<View style={style}>
{((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)}
<View style={styles.videoIcon}>
{((CirclePlayIcon) => <CirclePlayIcon size="md" color="white" secondaryColor="black" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}
</View>
</View>
)
: ((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)
);
} else if (isVideo) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
r0 = (
moduleValue3.isIOS()
? (
<View style={style}>
{((VideoComponent) => <VideoComponent style={{height: height,
width: width}} source={{uri: uri}} muted paused resizeMode="cover" preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}
</View>
)
: defaultPreview
);
} else {
r0 = defaultPreview;
}
} else if (isVideo) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
r0 = (
moduleValue3.isIOS()
? (
<View style={style}>
{((VideoComponent) => <VideoComponent style={{height: height,
width: width}} source={{uri: uri}} muted paused resizeMode="cover" preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}
</View>
)
: defaultPreview
);
} else {
r0 = defaultPreview;
}
}
} else {
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue2.isIOS()) {
if (uri.startsWith('ph://')) {
r0 = showPlayOnVideoPreview ? <View style={style}>{((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)}<View style={styles.videoIcon}>{((CirclePlayIcon) => <CirclePlayIcon size="md" color="white" secondaryColor="black" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}</View></View> : ((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10);
r0 = (
showPlayOnVideoPreview
? (
<View style={style}>
{((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)}
<View style={styles.videoIcon}>
{((CirclePlayIcon) => <CirclePlayIcon size="md" color="white" secondaryColor="black" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}
</View>
</View>
)
: ((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)
);
} else if (isVideo) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
r0 = moduleValue3.isIOS() ? <View style={style}>{((VideoComponent) => <VideoComponent style={{height: height,
width: width}} source={{uri: uri}} muted paused resizeMode="cover" preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}</View> : defaultPreview;
r0 = (
moduleValue3.isIOS()
? (
<View style={style}>
{((VideoComponent) => <VideoComponent style={{height: height,
width: width}} source={{uri: uri}} muted paused resizeMode="cover" preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}
</View>
)
: defaultPreview
);
} else {
r0 = defaultPreview;
}
} else if (isVideo) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
r0 = moduleValue3.isIOS() ? <View style={style}>{((VideoComponent) => <VideoComponent style={{height: height,
width: width}} source={{uri: uri}} muted paused resizeMode="cover" preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}</View> : defaultPreview;
r0 = (
moduleValue3.isIOS()
? (
<View style={style}>
{((VideoComponent) => <VideoComponent style={{height: height,
width: width}} source={{uri: uri}} muted paused resizeMode="cover" preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}
</View>
)
: defaultPreview
);
} else {
r0 = defaultPreview;
}
}
} else {
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue2.isIOS()) {
if (uri.startsWith('ph://')) {
r0 = showPlayOnVideoPreview ? <View style={style}>{((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10)}<View style={styles.videoIcon}>{((CirclePlayIcon) => <CirclePlayIcon size="md" color="white" secondaryColor="black" />)((require(9783) /* metro dependency 9783: CirclePlayIcon */).CirclePlayIcon)}</View></View> : ((Component) => <Component uri={uri} width={width} height={height} borderRadius={borderRadius} style={style} fileName={fileName} />)(env0_10);
} else if (isVideo) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
r0 = moduleValue3.isIOS() ? <View style={style}>{((VideoComponent) => <VideoComponent style={{height: height,
width: width}} source={{uri: uri}} muted paused resizeMode="cover" preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}</View> : defaultPreview;
} else {
r0 = defaultPreview;
}
} else if (isVideo) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
r0 = moduleValue3.isIOS() ? <View style={style}>{((VideoComponent) => <VideoComponent style={{height: height,
width: width}} source={{uri: uri}} muted paused resizeMode="cover" preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}</View> : defaultPreview;
} else {
r0 = defaultPreview;
}
return r0;
}
return r0;
}
function _fun85203() { // fn#85203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11329:853, offset: 0x01f672d3, size: 94 bytes, params: 1, frame: 16
const value = environment.__proto__;
const fileUtilsModule = require(4655) /* metro dependency 4655: FileUtils */;
return env1_9[fileUtilsModule.classifyFileName(fileName ?? '')] ?? (importDefault(11155) /* metro dependency 11155 */);
}
global.__d(_fun85201, 11143, [31, 27, 33, 4501, 697, 11144, 11145, 11146, 11147, 11148, 11149, 11150, 11151, 11152,
11153, 11154, 11155, 11156, 11157, 4655, 4573, 477, 5475, 1305, 9783, 9543,
2]) /* metro module 11143, dependencies: [31, 27, 33, 4501, 697, 11144, 11145, 11146, 11147, 11148, 11149, 11150, 11151, 11152, 11153, 11154, 11155, 11156, 11157, 4655, 4573, 477, 5475, 1305, 9783, 9543, 2] */;
+38 -33
View File
@@ -1,45 +1,50 @@
/* Metro module 8509; source: modules/media/native/Caption.tsx; dependencies: [27, 661, 33, 4501, 697, 4000, 1305, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ColorUtilsModule from '../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun67450(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8694:6, offset: 0x01c23282, size: 344 bytes, params: 8, frame: 25
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object4 = {};
const object5 = {};
const Fonts = (ConstantsModule).Fonts;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {};
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
object5.fontFamily = PRIMARY_BOLD;
object2.fontFamily = PRIMARY_BOLD;
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object5.color = WHITE;
object5.fontSize = 12;
object4.captionText = object5;
const object6 = {'backgroundColor': null, 'borderRadius': null, 'paddingHorizontal': 8, 'paddingVertical': 2,
object2.color = WHITE;
object2.fontSize = 12;
object.captionText = object2;
const object3 = {'backgroundColor': null, 'borderRadius': null, 'paddingHorizontal': 8, 'paddingVertical': 2,
'position': 'absolute', 'right': 6, 'bottom': 6};
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
const hexWithOpacity = colorUtilsModule.hexWithOpacity;
const hexWithOpacity = ColorUtilsModule.hexWithOpacity;
const PRIMARY_700 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_700;
object6.backgroundColor = Reflect.apply(hexWithOpacity, colorUtilsModule, [PRIMARY_700, 0.5]);
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object4.labelContainer = object6;
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media/native/Caption.tsx');
object3.backgroundColor = Reflect.apply(hexWithOpacity, ColorUtilsModule, [PRIMARY_700, 0.5]);
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object.labelContainer = object3;
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/media/native/Caption.tsx');
exports.Caption = Caption;
function Caption({label, style, textStyle}) { // fn#67451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8694:524, offset: 0x01c233da, size: 136 bytes, params: 2, frame: 20
const styles = useStyles();
const items2 = [styles.labelContainer, style];
const LegacyText = (NativeModule).LegacyText;
return (
<View style={items2}>
<LegacyText style={[styles.captionText, textStyle]}>
{label}
</LegacyText>
</View>
);
}
}
function Caption({label, style, textStyle}) { // fn#67451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8694:524, offset: 0x01c233da, size: 136 bytes, params: 2, frame: 20
const styles = useStyles();
const items2 = [styles.labelContainer, style];
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
return (
<View style={items2}>
<LegacyText style={[styles.captionText, textStyle]}>
{label}
</LegacyText>
</View>
);
}
global.__d(_fun67450, 8509, [27, 661, 33, 4501, 697, 4000, 1305,
2]) /* metro module 8509, dependencies: [27, 661, 33, 4501, 697, 4000, 1305, 2] */;
@@ -1,227 +1,248 @@
/* Metro module 4682; source: modules/media/native/IosImageTypesManager.tsx; dependencies: [57, 6, 7, 15, 17, 18, 27, 3, 4561, 2] */
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun40520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:6, offset: 0x01103903, size: 312 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(57) /* metro dependency 57 */;
const env0_1 = importDefault(6) /* metro dependency 6 */;
const env0_2 = importDefault(7) /* metro dependency 7 */;
const env0_3 = importDefault(15) /* metro dependency 15 */;
const env0_4 = importDefault(17) /* metro dependency 17 */;
const env0_5 = importDefault(18) /* metro dependency 18 */;
const env0_6 = (require(27) /* metro dependency 27 */).NativeModules;
let value = importDefault(3) /* metro dependency 3: Logger */;
let value = Logger;
value = new value('IosImageTypesManager');
value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
value = _fun40524(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media/native/IosImageTypesManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/media/native/IosImageTypesManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_40521() { // fn#40521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:182, offset: 0x01103a3b, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_40521_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun40524(a0) { // fn#40524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:448, offset: 0x01103a99, size: 316 bytes, params: 2, frame: 16
const closure = IosImageTypesManager;
env0_5(closure, a0);
return env0_2(closure, [{key: '_initialize', value: function() {
this.initializeSupportedImageTypes();
}}, {key: '_terminate', value: function() {
}}, {key: 'initializeSupportedImageTypes', value: value_40528}, {key: 'getSupportedImageTypes', value: value_40529},
{key: 'isImageTypeSupported', value: value_40530}, {key: 'getSupportedExtensions', value: value_40531},
{key: 'getSupportedMimeTypes', value: value_40532}, {key: 'getAnimatedExtensions', value: value_40533},
{key: 'isExtensionSupported', value: value_40534}, {key: 'isMimeTypeSupported', value: value_40535},
{key: 'isExtensionAnimated', value: value_40536}]);
}
function IosImageTypesManager() { // fn#40525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:460, offset: 0x01103bd5, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_1(this, IosImageTypesManager);
const value3 = env1_4(IosImageTypesManager);
return env1_3(this, _isNativeReflectConstruct_40521() ? global.Reflect.construct(value3, arguments,
env1_4(this).constructor) : value3.apply(this, arguments));
}
function value_40528() { // fn#40528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:910, offset: 0x01103c59, size: 509 bytes, params: 1, frame: 26
var r12;
var r5;
var MediaManager;
var supportedImageTypes;
var Set;
var prototype;
var value3;
var set;
var value4;
var value5;
var value6;
var value7;
var value8;
var value9;
var Object;
var value10;
var length;
var value11;
var property;
var binding;
var value12;
var extension;
var mimeType;
var value13;
var value14;
var value15;
var value16;
var value17;
var value18;
var error;
var value19;
var value20;
var value21;
var value22;
var value23;
var value24;
if (env1_8 === null) {
function _isNativeReflectConstruct_40521() { // fn#40521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:182, offset: 0x01103a3b, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
MediaManager = NativeModules.MediaManager;
supportedImageTypes = MediaManager.getSupportedImageTypes();
env1_8 = supportedImageTypes;
Set = global.Set;
prototype = Set.prototype;
value3 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value4 = set instanceof Object ? set : value3;
Set = global.Set;
prototype = Set.prototype;
value5 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value6 = set instanceof Object ? set : value5;
Set = global.Set;
prototype = Set.prototype;
value7 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value8 = set instanceof Object ? set : value7;
value9 = 0;
Object = global.Object;
value10 = Object.entries(supportedImageTypes);
length = value10.length;
value11 = value9 < length;
if (value11) {
r12 = value9;
while (true) {
property = value10[r12];
binding = env1_0;
value12 = binding(property, 2);
value12[value9];
property = value12[1];
extension = property.extension;
mimeType = property.mimeType;
value13 = extension != null;
if (!value13) {
r5 = value13;
continue;
}
value14 = extension !== '';
r5 = value14;
if (!r5) {
continue;
}
value4.add(extension);
value15 = mimeType != null;
if (!value15) {
r5 = value15;
continue;
}
value16 = mimeType !== '';
r5 = value16;
if (!r5) {
continue;
}
value6.add(mimeType);
value17 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_40521_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun40524(a0) { // fn#40524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:448, offset: 0x01103a99, size: 316 bytes, params: 2, frame: 16
const IosImageTypesManager2 = IosImageTypesManager;
Inherits(IosImageTypesManager2, a0);
return CreateClass(IosImageTypesManager2, [{key: '_initialize', value: function() {
this.initializeSupportedImageTypes();
}}, {key: '_terminate', value: function() {
}}, {key: 'initializeSupportedImageTypes', value: value_40528}, {key: 'getSupportedImageTypes', value: value_40529},
{key: 'isImageTypeSupported', value: value_40530}, {key: 'getSupportedExtensions', value: value_40531},
{key: 'getSupportedMimeTypes', value: value_40532}, {key: 'getAnimatedExtensions', value: value_40533},
{key: 'isExtensionSupported', value: value_40534}, {key: 'isMimeTypeSupported', value: value_40535},
{key: 'isExtensionAnimated', value: value_40536}]);
function IosImageTypesManager() { // fn#40525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:460, offset: 0x01103bd5, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_1(this, IosImageTypesManager);
const value3 = env1_4(IosImageTypesManager);
return env1_3(this, _isNativeReflectConstruct_40521() ? global.Reflect.construct(value3, arguments,
env1_4(this).constructor) : value3.apply(this, arguments));
}
function value_40528() { // fn#40528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:910, offset: 0x01103c59, size: 509 bytes, params: 1, frame: 26
var r12;
var r5;
var MediaManager;
var supportedImageTypes;
var Set;
var prototype;
var value3;
var set;
var value4;
var value5;
var value6;
var value7;
var value8;
var value9;
var Object;
var value10;
var length;
var value11;
var property;
var binding;
var value12;
var extension;
var mimeType;
var value13;
var value14;
var value15;
var value16;
var value17;
var value18;
var error;
var value19;
var value20;
var value21;
var value22;
var value23;
var value24;
if (env1_8 === null) {
try {
MediaManager = NativeModules.MediaManager;
supportedImageTypes = MediaManager.getSupportedImageTypes();
env1_8 = supportedImageTypes;
Set = global.Set;
prototype = Set.prototype;
value3 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value4 = set instanceof Object ? set : value3;
Set = global.Set;
prototype = Set.prototype;
value5 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value6 = set instanceof Object ? set : value5;
Set = global.Set;
prototype = Set.prototype;
value7 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value8 = set instanceof Object ? set : value7;
value9 = 0;
Object = global.Object;
value10 = Object.entries(supportedImageTypes);
length = value10.length;
value18 = value17 < length;
if (value18) {
r12 = value17;
continue;
value11 = value9 < length;
if (value11) {
r12 = value9;
while (true) {
property = value10[r12];
binding = env1_0;
value12 = binding(property, 2);
value12[value9];
property = value12[1];
extension = property.extension;
mimeType = property.mimeType;
value13 = extension != null;
if (!value13) {
r5 = value13;
continue;
}
value14 = extension !== '';
r5 = value14;
if (!r5) {
continue;
}
value4.add(extension);
value15 = mimeType != null;
if (!value15) {
r5 = value15;
continue;
}
value16 = mimeType !== '';
r5 = value16;
if (!r5) {
continue;
}
value6.add(mimeType);
value17 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
length = value10.length;
value18 = value17 < length;
if (value18) {
r12 = value17;
continue;
}
break;
}
}
break;
value4.add('jpg');
value8.add('gif');
value8.add('webp');
env1_9 = value4;
env1_10 = value6;
env1_11 = value8;
} catch (error) {
binding = env1_7;
binding.warn('Failed to get iOS supported image types:', error);
env1_8 = {};
Set = global.Set;
prototype = Set.prototype;
value19 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value20 = set instanceof Object ? set : value19;
env1_9 = value20;
Set = global.Set;
prototype = Set.prototype;
value21 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value22 = set instanceof Object ? set : value21;
env1_10 = value22;
Set = global.Set;
prototype = Set.prototype;
value23 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value24 = set instanceof Object ? set : value23;
env1_11 = value24;
}
}
value4.add('jpg');
value8.add('gif');
value8.add('webp');
env1_9 = value4;
env1_10 = value6;
env1_11 = value8;
} catch (error) {
binding = env1_7;
binding.warn('Failed to get iOS supported image types:', error);
env1_8 = {};
Set = global.Set;
prototype = Set.prototype;
value19 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value20 = set instanceof Object ? set : value19;
env1_9 = value20;
Set = global.Set;
prototype = Set.prototype;
value21 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value22 = set instanceof Object ? set : value21;
env1_10 = value22;
Set = global.Set;
prototype = Set.prototype;
value23 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value24 = set instanceof Object ? set : value23;
env1_11 = value24;
}
function value_40529() { // fn#40529, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_40530(a0) { // fn#40530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:1424, offset: 0x01103e56, size: 29 bytes, params: 2, frame: 3
const value = environment.__proto__;
return env1_8 !== null && a0 in env1_8;
}
function value_40531() { // fn#40531, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_40532() { // fn#40532, offset: 0x00fbd9ec, size: 9 bytes, params: 1, frame: 1
return env1_10;
}
function value_40533() { // fn#40533, offset: 0x00ef8482, size: 9 bytes, params: 1, frame: 1
return env1_11;
}
function value_40534(a0) { // fn#40534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:1668, offset: 0x01103e73, size: 35 bytes, params: 2, frame: 12
const value = environment.__proto__;
return env1_9 !== null && env1_9.has(a0);
}
function value_40535(a0) { // fn#40535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:1741, offset: 0x01103e96, size: 35 bytes, params: 2, frame: 12
const value = environment.__proto__;
return env1_10 !== null && env1_10.has(a0);
}
function value_40536(a0) { // fn#40536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:1814, offset: 0x01103eb9, size: 35 bytes, params: 2, frame: 12
const value = environment.__proto__;
return env1_11 !== null && env1_11.has(a0);
}
}
}
function value_40530(a0) { // fn#40530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:1424, offset: 0x01103e56, size: 29 bytes, params: 2, frame: 3
const value = environment.__proto__;
return env1_8 !== null && a0 in env1_8;
}
function value_40534(a0) { // fn#40534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:1668, offset: 0x01103e73, size: 35 bytes, params: 2, frame: 12
const value = environment.__proto__;
return env1_9 !== null && env1_9.has(a0);
}
function value_40535(a0) { // fn#40535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:1741, offset: 0x01103e96, size: 35 bytes, params: 2, frame: 12
const value = environment.__proto__;
return env1_10 !== null && env1_10.has(a0);
}
function value_40536(a0) { // fn#40536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4860:1814, offset: 0x01103eb9, size: 35 bytes, params: 2, frame: 12
const value = environment.__proto__;
return env1_11 !== null && env1_11.has(a0);
}
global.__d(_fun40520, 4682, [57, 6, 7, 15, 17, 18, 27, 3, 4561,
2]) /* metro module 4682, dependencies: [57, 6, 7, 15, 17, 18, 27, 3, 4561, 2] */;
File diff suppressed because it is too large. Load diff