Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,11 @@
/* Metro module 1853; source: modules/image_upload/ForceSdrEmojisStickersExperiment.tsx; dependencies: [1854, 2] */
function _fun20014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1980:6, offset: 0x00ebc618, size: 166 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'kind': 'user',
'name': '2025-10-force-sdr-emojis-stickers', defaultConfig: {enabled: false},
variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image_upload/ForceSdrEmojisStickersExperiment.tsx');
exports.getForceSdrEmojisStickersConfig = getForceSdrEmojisStickersConfig;
}
@@ -0,0 +1,336 @@
/* Metro module 1457; source: modules/image_upload/ImageLoaderUtils.tsx; dependencies: [57, 5, 661, 1393, 561, 1458, 1468, 1471, 1475, 22, 1852, 2] */
function _fun16687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:6, offset: 0x00e57b5b, size: 373 bytes, params: 8, frame: 20
let env0_0 = require;
const loadImageAsset = function(a0) {
var env0_0 = a0;
var Image = global.Image;
var value2 = new Image();
var env0_1 = value2;
value2.onerror = _fun16689(a0, value2);
value2.onload = _fun16693;
value2.src = a0.url;
};
const closure = getSrcWithWidthAndHeight;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importDefault(5) /* metro dependency 5 */;
let value = require(661) /* metro dependency 661: Constants */;
const env0_5 = value.NOOP;
const env0_6 = value.MEDIA_PROXY_MAX_TARGET_RESOLUTION;
const env0_7 = RegExp('\\.webp($|\\?|#)', 'i');
const env0_8 = RegExp('\\.avif($|\\?|#)', 'i');
const env0_9 = [16, 20, 22, 24, 28, 32, 40, 44, 48, 56, 60, 64, 80, 96, 100, 128, 160, 240, 256, 300, 320, 480, 512,
600, 640, 1024, 1280, 1536, 2048, 3072, 4096];
value = importDefault(1393) /* metro dependency 1393 */;
value = new value({max: 1000});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image_upload/ImageLoaderUtils.tsx');
exports.getDevicePixelRatio = importDefault(1852) /* metro dependency 1852: getDevicePixelRatioNative */;
exports.isImageLoaded = isImageLoaded;
exports.loadImage = loadImage;
exports.getBestMediaProxySize = getBestMediaProxySize;
exports.getSrcWithWidthAndHeight = closure;
exports.getSizedImageSrc = getSizedImageSrc;
exports.getImageSrc = getImageSrc;
}
function loadImageAsset(a0) { // fn#16688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:359, offset: 0x00e57cd0, size: 84 bytes, params: 2, frame: 14
const env0_0 = a0;
const Image = global.Image;
const image = new Image();
image.onerror = getOnError(a0, image);
image.onload = onload;
image.src = a0.url;
}
function handleImageLoad(a0, a1, a2) { // fn#16694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:707, offset: 0x00e57e66, size: 131 bytes, params: 4, frame: 16
const env0_0 = a0;
const env0_1 = a1;
const callbacks = a1.callbacks;
const url = a1.url;
if (a0) {
env0_10.del(url);
} else {
env0_10.set(url, {url: url, loaded: true, width: a2.width, height: a2.height});
}
if (callbacks != null) {
callbacks.forEach(_fun16695);
}
}
function splitURL(a0) { // fn#16696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:893, offset: 0x00e57f01, size: 95 bytes, params: 2, frame: 15
let value = a0.split('?');
value = env0_3(value, 2);
const property = value[0];
const property2 = value[1];
const items2 = [property];
value = importDefault(1468) /* metro dependency 1468 */;
items2[1] = value.parse(property2);
return items2;
}
function getSrcWithWidthAndHeight({src, sourceWidth, sourceHeight, targetWidth, targetHeight, format, quality, animated, srcIsAnimated}) { // fn#16697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:983, offset: 0x00e57f60, size: 472 bytes, params: 2, frame: 24
var value;
format = format === undefined ? null : format;
quality = quality === undefined ? null : quality;
animated = !(animated === undefined) && animated;
srcIsAnimated = !(srcIsAnimated === undefined) && srcIsAnimated;
if (src.startsWith('data:image')) {
return src;
}
const defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
if (defaultImport.isDiscordCdnUrl(src)) {
return src;
}
const value3 = env0_3(splitURL(src), 2);
const property = value3[0];
const property2 = value3[1];
if (format != null) {
property2.format = format;
}
if (quality != null) {
property2.quality = quality;
}
let r1 = animated && srcIsAnimated && (env0_7.test(src) || env0_8.test(src));
if (r1) {
property2.animated = true;
}
const binding = env0_8;
if (binding.test(src)) {
property2.format = 'webp';
}
const {width, height} = (require(1475) /* metro dependency 1475: ImageUtils */).fit({width: targetWidth,
height: targetHeight, maxWidth: MEDIA_PROXY_MAX_TARGET_RESOLUTION,
maxHeight: MEDIA_PROXY_MAX_TARGET_RESOLUTION});
if (!(width === sourceWidth && height === sourceHeight)) {
property2.width = width | 0;
property2.height = height | 0;
}
const defaultImport2 = importDefault(22) /* metro dependency 22 */;
if (defaultImport2.isEmpty(property2)) {
r1 = property;
} else {
value = importDefault(1468) /* metro dependency 1468 */;
value = value.stringify(property2);
value = property + ('?' + value);
r1 = value;
}
return r1;
}
function isImageLoaded(a0) { // fn#16698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:1679, offset: 0x00e58138, size: 37 bytes, params: 2, frame: 11
const value = env0_10.get(a0);
return value != null && value.loaded;
}
function loadImage(a0, a1) { // fn#16699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:1758, offset: 0x00e5815d, size: 243 bytes, params: 3, frame: 18
var r0;
var object2;
var set;
var callbacks;
var Set;
var value3;
const env0_0 = a0;
var value;
const value2 = env0_10.get(a0);
if (value2 == null) {
if (value2 != null) {
r0 = value2;
} else {
object2 = {url: a0, loaded: false};
env0_10.set(a0, object2);
loadImageAsset(object2);
r0 = object2;
}
if (a1 != null) {
value = a1.bind(null);
callbacks = r0.callbacks;
if (callbacks == null) {
Set = global.Set;
value3 = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set();
r0.callbacks = set instanceof Object ? set : value3;
}
callbacks = r0.callbacks;
callbacks.add(value);
}
r0 = _fun16702;
} else if (value2.loaded) {
if (a1 != null) {
(importDefault(1458) /* metro dependency 1458: NetworkUtils */).awaitOnline().then(_fun16700);
}
r0 = NOOP;
} else {
if (value2 != null) {
r0 = value2;
} else {
object2 = {url: a0, loaded: false};
env0_10.set(a0, object2);
loadImageAsset(object2);
r0 = object2;
}
if (a1 != null) {
value = a1.bind(null);
callbacks = r0.callbacks;
if (callbacks == null) {
Set = global.Set;
value3 = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set();
r0.callbacks = set instanceof Object ? set : value3;
}
callbacks = r0.callbacks;
callbacks.add(value);
}
r0 = _fun16702;
}
return r0;
}
function getBestMediaProxySize(a0) { // fn#16703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:2245, offset: 0x00e58334, size: 132 bytes, params: 2, frame: 13
var environment;
var binding;
var value2;
let value = a1;
const env0_0 = a0;
if (value !== undefined ? value : false) {
binding = env0_9;
value = binding.filter(_fun16704);
value = value.pop();
if (value == null) {
value = environment;
return env0_9.find(_fun16705) ?? env0_9[env0_9.length - 1];
}
if (a0 / value <= 1.25) {
return value;
}
binding = env0_9;
value2 = binding.find(_fun16705);
} else {
value2 = env0_9.find(_fun16705);
}
return value2 ?? env0_9[env0_9.length - 1];
}
function getSizedImageSrc(a0, a1, a2) { // fn#16706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:2482, offset: 0x00e583d8, size: 225 bytes, params: 4, frame: 21
let value = a3;
const r6 = value !== undefined ? value : 'webp';
const value2 = (importDefault(1852) /* metro dependency 1852: getDevicePixelRatioNative */)();
let Math = global.Math;
const value3 = Math.ceil(a1 * value2);
Math = global.Math;
const value4 = Math.ceil(a2 * value2);
value = env0_3(splitURL(a0), 2);
const property = value[0];
const property2 = value[1];
const stringify = (importDefault(1468) /* metro dependency 1468 */).stringify;
const object2 = {};
copyDataProperties(object2, property2, undefined);
object2['width'] = value3 | 0;
object2['height'] = value4 | 0;
object2['format'] = r6;
value = Reflect.apply(stringify, value, [object2]);
return '' + property + '?' + value;
}
function getImageSrc({src, width, height, maxWidth, maxHeight, ratio, format, quality, animated, srcIsAnimated}) { // fn#16707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:2703, offset: 0x00e584b9, size: 294 bytes, params: 2, frame: 26
var r7;
var r14;
var value;
var Math;
ratio = ratio === undefined ? 1 : ratio;
format = format === undefined ? null : format;
quality = quality === undefined ? null : quality;
animated = !(animated === undefined) && animated;
srcIsAnimated = !(srcIsAnimated === undefined) && srcIsAnimated;
if (ratio < 1) {
Math = global.Math;
value = Math.round(width * ratio);
Math = global.Math;
r7 = Math.round(height * ratio);
r14 = value;
} else {
r7 = height;
r14 = width;
}
const r9 = maxWidth == null ? r14 : global.Math.min(r14, maxWidth);
const r8 = maxHeight == null ? r7 : global.Math.min(r7, maxHeight);
const value3 = (importDefault(1852) /* metro dependency 1852: getDevicePixelRatioNative */)();
return getSrcWithWidthAndHeight({src: src, sourceWidth: width, sourceHeight: height, targetWidth: r9 * value3,
targetHeight: r8 * value3, format: format, quality: quality, animated: animated, srcIsAnimated: srcIsAnimated});
}
function getOnError(a0, a1) { // fn#16689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:412, owner: loadImageAsset.getOnError, offset: 0x00e57d24, size: 110 bytes, params: 3, frame: 13
var environment;
var value;
const env0_0 = a0;
const env0_1 = a1;
let backoff = a0.backoff;
if (backoff == null) {
value = environment.__proto__;
value = importDefault(561) /* metro dependency 561: Backoff */;
value = new value();
a0.backoff = value;
}
backoff = a0.backoff;
value = environment.__proto__;
return env1_4(_fun16691);
}
function loadImageAssetOnload() { // fn#16693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:628, owner: loadImageAsset.onload, offset: 0x00e57e2d, size: 57 bytes, params: 1, frame: 15
const backoff = env0_0.backoff;
if (backoff != null) {
backoff.succeed();
}
handleImageLoad(false, env0_0, env0_1);
}
function _fun16700() { // fn#16700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:1862, offset: 0x00e58250, size: 64 bytes, params: 1, frame: 12
if (env0_2 != null && env0_2.callbacks != null) {
env0_2.callbacks.forEach(_fun16701);
}
}
function _fun16702() { // fn#16702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:2116, offset: 0x00e582cd, size: 103 bytes, params: 1, frame: 13
if (env0_1 != null && env0_2 != null) {
if (env0_2.callbacks != null) {
env0_2.callbacks.delete(env0_1);
}
if (env0_2.backoff != null) {
env0_2.backoff.cancel();
}
}
}
function _fun16704(a0) { // fn#16704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:2312, offset: 0x00e583b8, size: 16 bytes, params: 2, frame: 2
return a0 <= env0_0;
}
function* _fun16691() { // fn#16691, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:505, offset: 0x00e57d9b, size: 123 bytes, params: 1, frame: 18
var environment;
if (true) {
value = environment.__proto__.__proto__.__proto__;
var value3 = env3_1(env3_2[5]);
yield value3.isOnline();
if (false) {
return undefined;
}
if (env1_2.fails < 5) {
env1_2.fail(_fun16692);
} else {
env3_12(true, env1_0, env1_1);
}
}
}
function _fun16701(a0) { // fn#16701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:1916, offset: 0x00e58290, size: 61 bytes, params: 2, frame: 14
if (env1_2 != null) {
a0(false, env1_2);
} else {
a0(true, {url: env1_0, loaded: true});
}
}
function _fun16692() { // fn#16692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1584:560, offset: 0x00e57e16, size: 23 bytes, params: 1, frame: 11
env4_11(env2_0);
}
@@ -0,0 +1,11 @@
/* Metro module 4686; source: modules/image_upload/MobileLosslessImageUploadV2Experiment.tsx; dependencies: [1854, 2] */
function _fun40556(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4864:6, offset: 0x01104d09, size: 166 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'kind': 'user',
'name': '2025-12-mobile-lossless-image-upload-v2', defaultConfig: {enabled: false},
variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image_upload/MobileLosslessImageUploadV2Experiment.tsx');
exports.useMobileLosslessImageUploadV2Experiment = useMobileLosslessImageUploadV2Experiment;
}
@@ -0,0 +1,154 @@
/* Metro module 11138; source: modules/image_upload/native/AddImageDescriptionModal.tsx; dependencies: [57, 31, 27, 4645, 4644, 33, 4501, 697, 566, 1478, 1484, 5463, 10302, 9603, 1244, 7879, 11137, 7681, 9883, 2] */
function _fun85186(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11324:6, offset: 0x01f666e1, size: 436 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_5 = value.View;
const env0_6 = value.Image;
const env0_7 = value.ScrollView;
const env0_8 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
const uploadAttachmentStore = importDefault(4644) /* metro dependency 4644: UploadAttachmentStore */;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.contentContainer = {backgroundColor: BACKGROUND_BASE_LOW};
const object5 = {alignItems: 'center'};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.imageContainer = object5;
const object6 = {'width': '100%', 'resizeMode': 'contain'};
object6.height = undefined;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.image = object6;
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
object2.placeholderText = {color: TEXT_MUTED};
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image_upload/native/AddImageDescriptionModal.tsx');
exports.default = AddImageDescriptionModal;
}
function AddDescription({source, channelId, id}) { // fn#85187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11324:516, offset: 0x01f66895, size: 929 bytes, params: 2, frame: 35
const env0_3 = undefined;
let env0_4 = undefined;
const styles = useStyles();
const upload = (require(566) /* metro dependency 566: flux */).useStateFromStores([UploadAttachmentStore],
function() {
return UploadAttachmentStore.getUpload(channelId, id, DraftType.ChannelMessage);
});
const value3 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true});
const width = source.width;
const height = source.height;
const r25 = width != null && height != null ? width === 0 || height === 0 ? 1 : width / height : 1;
const binding = env0_4;
const useState = binding.useState;
const value8 = env0_3(Reflect.apply(useState, binding, [upload?.description ?? '']), 2);
const property = value8[0];
const property2 = value8[1];
env0_4 = env0_4.useRef(property);
const value9 = env0_4.useRef(null);
const value10 = env0_4.useRef(null);
const value11 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
(importDefault(10302) /* metro dependency 10302: useSafeAreaAvoidingInputsNative */)({insets: insets,
inputs: [{ref: value9, offset: {type: 'toBottom'}}], scrollViewRef: value10});
env0_4.useEffect(_fun85189, [property]);
env0_4.useEffect(_fun85190, [channelId, id, upload, value11]);
const object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.padding = PX_16;
const bottom = insets.bottom;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.paddingBottom = bottom + PX_16;
const view = <View style={styles.imageContainer}><Image style={[styles.image, {aspectRatio: r25,
maxHeight: value3.height / 2}]} source={source} /></View>;
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
const object2 = {ref: value9};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.containerStyle = {paddingTop: PX_16};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.eOB2eR]);
string = intl.string;
const RNH1jn = (require(1244) /* metro dependency 1244: indexNative */).t.RNH1jn;
object2.placeholder = Reflect.apply(string, intl, [RNH1jn]);
object2.value = property;
object2.onChange = property2;
object2.placeholderTextColor = styles.placeholderText.color;
object2.maxLength = 1000;
object2.autoFocus = true;
return (
<ScrollView
ref={value10}
style={styles.contentContainer}
contentContainerStyle={object}
>
{view}
<TextArea {...object2} />
</ScrollView>
);
}
function AddImageDescriptionModal({source, channelId, id}) { // fn#85193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11324:1931, offset: 0x01f66d87, size: 149 bytes, params: 2, frame: 19
const ModalStackNavigator = importDefault(9883) /* metro dependency 9883: ModalStackNavigator */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ModalStackNavigator
screenKey="addImageDescriptionModal"
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5S2AK+'])}
render={render_85194}
/>
);
}
function _fun85189() { // fn#85189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11324:1047, offset: 0x01f66c61, size: 21 bytes, params: 1, frame: 2
env0_4.current = env0_3;
}
function _fun85190() { // fn#85190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11324:1084, offset: 0x01f66c76, size: 38 bytes, params: 1, frame: 12
const binding = env0_5;
binding.setOptions({headerRight: headerRight_85191});
}
function AddImageDescriptionModalRender() { // fn#85194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11324:2106, owner: AddImageDescriptionModal.render, offset: 0x01f66e1c, size: 50 bytes, params: 1, frame: 14
return (
<AddDescription
source={source}
channelId={channelId}
id={id}
/>
);
}
function headerRight_85191(a0) { // fn#85191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11324:1115, offset: 0x01f66c9c, size: 112 bytes, params: 2, frame: 17
var environment;
let value = environment.__proto__.__proto__;
const getRenderHeaderTextButton = require(dependencyMap[13]).getRenderHeaderTextButton;
const intl = require(dependencyMap[14]).intl;
value = Reflect.apply(getRenderHeaderTextButton, value, [intl.string(require(dependencyMap[14]).t['R3BPH+']),
_fun85192]);
const object2 = {};
copyDataProperties(object2, a0, dependencyMap);
return value(object2);
}
function _fun85192() { // fn#85192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11324:1197, offset: 0x01f66d0c, size: 123 bytes, params: 1, frame: 22
const value = environment.__proto__.__proto__.__proto__;
const defaultImport = importDefault(7879) /* metro dependency 7879: UploadAttachmentActionCreators */;
const update = defaultImport.update;
const channelIdBinding = channelId;
const idBinding = id;
const ChannelMessage = DraftType.ChannelMessage;
const object2 = {};
copyDataProperties(object2, upload, ChannelMessage);
object2['description'] = env2_4.current;
Reflect.apply(update, defaultImport, [channelIdBinding, idBinding, ChannelMessage, object2]);
(importDefault(11137) /* metro dependency 11137: AddImageDescriptionModalActionCreators */).close();
}
@@ -0,0 +1,24 @@
/* Metro module 11137; source: modules/image_upload/native/AddImageDescriptionModalActionCreators.tsx; dependencies: [4080, 5080, 11138, 1962, 2] */
function _fun85183(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11323:6, offset: 0x01f665d3, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {open: open_85184, close: close_85185};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image_upload/native/AddImageDescriptionModalActionCreators.tsx');
exports.default = object2;
}
function open_85184(a0) { // fn#85184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11323:135, offset: 0x01f6664d, size: 104 bytes, params: 2, frame: 16
importDefault(dependencyMap[0]).hideActionSheet();
const defaultImport2 = importDefault(dependencyMap[1]);
const pushLazy = defaultImport2.pushLazy;
let value = require(dependencyMap[3]);
value = value(dependencyMap[2], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport2, [value, a0, 'ADD_IMAGE_DESCRIPTION_MODAL_KEY']);
}
function close_85185() { // fn#85185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11323:214, offset: 0x01f666b5, size: 44 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('ADD_IMAGE_DESCRIPTION_MODAL_KEY');
}