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

+141
View File
@@ -0,0 +1,141 @@
/* Metro module 7075; source: stores/EditMessageStore.tsx; dependencies: [6, 7, 15, 17, 18, 4814, 3829, 7076, 7079, 566, 694, 2] */
function _fun56398(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:6, offset: 0x013c6bf0, size: 343 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
let env0_9 = {};
let env0_10 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
let value = _fun56402(Store);
value.displayName = 'EditMessageStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{MESSAGE_START_EDIT: MESSAGE_START_EDIT, MESSAGE_UPDATE_EDIT: MESSAGE_UPDATE_EDIT,
MESSAGE_END_EDIT: MESSAGE_END_EDIT, MESSAGE_DELETE: MESSAGE_DELETE_56415, LOGOUT: function() {
env0_9 = {};
env0_10 = {};
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/EditMessageStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_56399() { // fn#56399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:158, offset: 0x013c6d47, 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_56399_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun56402(a0) { // fn#56402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:371, offset: 0x013c6da5, size: 237 bytes, params: 2, frame: 16
const closure = EditMessageStore;
env0_7(closure, a0);
return env0_4(closure, [{key: 'initialize', value: function() {
this.waitFor(MessageStore);
}}, {key: 'isEditing', value: value_56405}, {key: 'isEditingAny', value: value_56406}, {key: 'getEditingTextValue',
value: value_56407}, {key: 'getEditingRichValue', value: value_56408}, {key: 'getEditingMessageId',
value: value_56409}, {key: 'getEditingMessage', value: value_56410}, {key: 'getEditActionSource',
value: value_56411}]);
}
function MESSAGE_START_EDIT({channelId, messageId, content, source}) { // fn#56412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:1415, offset: 0x013c6f6f, size: 159 bytes, params: 2, frame: 22
const UseLegacyChatInput = (require(3829) /* metro dependency 3829: UserSettings */).UseLegacyChatInput;
const setting = UseLegacyChatInput.getSetting();
const value3 = (importDefault(7076) /* metro dependency 7076: MessageParser */).unparse(content, channelId);
const binding = env0_9;
const object2 = {channelId: channelId, messageId: messageId, textValue: value3};
const slateUtilsModule = require(7079) /* metro dependency 7079: SlateUtils */;
object2.richValue = slateUtilsModule.toRichValue(setting ? value3 : content);
binding[channelId] = object2;
env0_10[channelId] = source;
}
function MESSAGE_UPDATE_EDIT({channelId, textValue, richValue}) { // fn#56413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:1670, offset: 0x013c700e, size: 83 bytes, params: 2, frame: 15
const property = env0_9[channelId];
if (property == null) {
return false;
}
const binding = env0_9;
const object2 = {};
copyDataProperties(object2, property, textValue);
object2['textValue'] = textValue;
object2['richValue'] = richValue;
binding[channelId] = object2;
}
function MESSAGE_END_EDIT({channelId}) { // fn#56414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:1827, offset: 0x013c7061, size: 53 bytes, params: 2, frame: 4
if (channelId == null) {
return false;
}
if (env0_9[channelId] == null) {
return false;
}
delete env0_9[channelId];
delete env0_10[channelId];
}
function MESSAGE_DELETE_56415({channelId, id}) { // fn#56415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:1944, offset: 0x013c7096, size: 64 bytes, params: 2, frame: 7
if (env0_9[channelId]?.messageId === id) {
delete env0_9[channelId];
delete env0_10[channelId];
}
}
function value_56405(a0, a1) { // fn#56405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:733, offset: 0x013c6e92, size: 39 bytes, params: 3, frame: 3
const value = environment.__proto__;
return env1_9[a0]?.messageId === a1;
}
function value_56406(a0) { // fn#56406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:827, offset: 0x013c6eb9, size: 22 bytes, params: 2, frame: 2
return env1_9[a0] != null;
}
function value_56407(a0) { // fn#56407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:892, offset: 0x013c6ecf, size: 33 bytes, params: 2, frame: 3
const value = environment.__proto__;
return env1_9[a0]?.textValue;
}
function value_56408(a0) { // fn#56408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:986, offset: 0x013c6ef0, size: 33 bytes, params: 2, frame: 3
const value = environment.__proto__;
return env1_9[a0]?.richValue;
}
function value_56409(a0) { // fn#56409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:1080, offset: 0x013c6f11, size: 32 bytes, params: 2, frame: 3
const value = environment.__proto__;
return env1_9[a0]?.messageId;
}
function value_56410(a0) { // fn#56410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7253:1172, offset: 0x013c6f31, size: 62 bytes, params: 2, frame: 15
const value = environment.__proto__;
const property = env1_9[a0];
const value2 = null;
return value2 != property && value2 != property.messageId ? MessageStore.getMessage(a0, property.messageId) : value2;
}