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,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');
}