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,225 @@
/* Metro module 11538; source: modules/chat_input/native/ChatInputNativeCommands.tsx; dependencies: [27, 477, 11539, 7142, 1216, 2] */
function _fun88407(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:6, offset: 0x01fe2221, size: 273 bytes, params: 8, frame: 18
var object2;
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.findNodeHandle;
const env0_4 = value.NativeModules;
object2 = {backspace: backspace, blur: blur_88409, closeCustomKeyboard: closeCustomKeyboard_88410,
flushText: flushText, getText: getText_88412, focus: focus_88414, openCustomKeyboard: openCustomKeyboard,
openSystemKeyboard: openSystemKeyboard, setText: setText_88417, setSelectedRange: setSelectedRange,
updateTextBlocks: updateTextBlocks, replaceRange: replaceRange};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/ChatInputNativeCommands.tsx');
exports.default = object2;
}
function backspace(a0) { // fn#88408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:156, offset: 0x01fe2332, size: 120 bytes, params: 2, frame: 14
var moduleValue;
var DCDChatInputManager;
if (a0 != null) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.backspace(a0);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.backspace(findNodeHandle(a0));
}
}
}
function blur_88409(a0) { // fn#88409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:265, offset: 0x01fe23aa, size: 120 bytes, params: 2, frame: 14
var moduleValue;
var DCDChatInputManager;
if (a0 != null) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.blur(a0);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.blur(findNodeHandle(a0));
}
}
}
function closeCustomKeyboard_88410(a0) { // fn#88410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:379, offset: 0x01fe2422, size: 117 bytes, params: 2, frame: 13
if (a0 != null) {
var value;
var moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
throw new global.Error('closeCustomKeyboard is not supported/needed on Android');
}
var DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.closeCustomKeyboard(findNodeHandle(a0));
}
}
function flushText(a0, a1) { // fn#88411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:552, offset: 0x01fe2497, size: 128 bytes, params: 3, frame: 15
if (a0 == null) {
return undefined;
}
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.flushText(a0, a1);
return undefined;
}
const Error = global.Error;
throw new Error('flushText is not supported/needed on iOS');
}
function getText_88412(a0, a1, a2) { // fn#88412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:698, offset: 0x01fe2517, size: 336 bytes, params: 4, frame: 21
var nodeHandle;
var DCDChatInputManager;
var captureException;
var Error;
var value4;
var error;
const env0_0 = a1;
const env0_1 = a2;
if (a0 == null) {
return null;
}
var value;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
value = require(7142) /* metro dependency 7142: createNonce */;
value = value.createNonce();
a1.set(value, _fun88413);
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.flushText(a0, value);
} else {
nodeHandle = findNodeHandle(a0);
if (nodeHandle == null) {
value = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
captureException = value.captureException;
Error = global.Error;
value4 = Object.create(Error.prototype, {constructor: {value: Error}});
error = new Error('inputRef is null');
Reflect.apply(captureException, value, [error instanceof Object ? error : value4]);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.markTextInputChanged(findNodeHandle(a0));
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.getText(nodeHandle).then(a2).catch((importDefault(1216) /* metro dependency 1216: SentryUtilsNative */).captureException);
}
}
}
function focus_88414(a0) { // fn#88414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:1060, offset: 0x01fe268c, size: 120 bytes, params: 2, frame: 14
var moduleValue;
var DCDChatInputManager;
if (a0 != null) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.focus(a0);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.focus(findNodeHandle(a0));
}
}
}
function openCustomKeyboard(a0) { // fn#88415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:1175, offset: 0x01fe2704, size: 124 bytes, params: 2, frame: 14
if (a0 == null) {
return undefined;
}
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.openCustomKeyboard(a0);
return undefined;
}
const Error = global.Error;
throw new Error('openCustomKeyboard is not supported/needed on iOS');
}
function openSystemKeyboard(a0) { // fn#88416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:1344, offset: 0x01fe2780, size: 120 bytes, params: 2, frame: 14
var moduleValue;
var DCDChatInputManager;
if (a0 != null) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.openSystemKeyboard(a0);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.openSystemKeyboard(findNodeHandle(a0));
}
}
}
function setText_88417(a0, a1) { // fn#88417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:1474, offset: 0x01fe27f8, size: 125 bytes, params: 3, frame: 16
var moduleValue;
var DCDChatInputManager;
if (a0 != null) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.setText(a0, a1);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.setText(findNodeHandle(a0), a1);
}
}
}
function setSelectedRange(a0, a1, a2) { // fn#88418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:1599, offset: 0x01fe2875, size: 130 bytes, params: 4, frame: 18
var moduleValue;
var DCDChatInputManager;
if (a0 != null) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
(require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands.setSelectedRange(a0, a1,
a2);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.setSelectedRange(findNodeHandle(a0), a1, a2);
}
}
}
function updateTextBlocks(a0, a1, a2) { // fn#88419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:1748, offset: 0x01fe28f7, size: 164 bytes, params: 4, frame: 19
var value3;
var moduleValue;
var DCDChatInputManager;
var Commands;
const value = a2;
if (a0 != null) {
value3 = undefined;
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
Commands = (require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands;
Commands.updateTextBlocks(a0, global.JSON.stringify(a1), value ?? value3);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.updateTextBlocks(findNodeHandle(a0), a1, value);
}
}
}
function replaceRange(a0, {location, length, text, nodes = [], keepCursorPosition, editId}) { // fn#88420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:1924, offset: 0x01fe299b, size: 230 bytes, params: 3, frame: 26
var moduleValue;
var DCDChatInputManager;
var replaceRange;
var Commands;
var JSON;
keepCursorPosition = !(keepCursorPosition === undefined) && keepCursorPosition;
if (a0 != null) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
Commands = (require(11539) /* metro dependency 11539: ChatInputNativeComponent */).Commands;
replaceRange = Commands.replaceRange;
JSON = global.JSON;
Reflect.apply(replaceRange, Commands, [a0, location, length, text, JSON.stringify(nodes),
keepCursorPosition,
editId]);
} else {
DCDChatInputManager = NativeModules.DCDChatInputManager;
DCDChatInputManager.replaceRange(findNodeHandle(a0), location, length, text, nodes, keepCursorPosition,
editId);
}
}
}
function _fun88413(a0) { // fn#88413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11724:792, offset: 0x01fe2667, size: 37 bytes, params: 2, frame: 12
require.delete(env0_2);
importDefault(a0);
}