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,96 @@
/* Metro module 10329; source: modules/user_profile/notes/NoteStore.tsx; dependencies: [6, 7, 15, 17, 18, 1419, 1868, 1870, 2] */
function _fun80082(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10515:6, offset: 0x01e6c35c, size: 387 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
let value = require(1419) /* metro dependency 1419: PlainRecord */;
value.TypeTag;
const env0_5 = value.constructInPlace;
const LibdiscoreStore = (require(1868) /* metro dependency 1868: LibdiscoreStore */).LibdiscoreStore;
_fun80086(LibdiscoreStore).displayName = 'NoteStore';
const LibdiscoreBatchStoreRefactorExperiment = (require(1870) /* metro dependency 1870: libdiscoreExperiments */).LibdiscoreBatchStoreRefactorExperiment;
value = new value({LOGOUT: function(a0, a1) {
return a1.clear();
}, RESET_SOCKET: function(a0, a1) {
return a1.clear();
}, CONNECTION_OPEN: function(a0, a1) {
return a1.clear();
}, OVERLAY_INITIALIZE: function(a0, a1) {
return a1.clear();
}, USER_NOTE_UPDATE: function(a0, a1) {
a1.set(a0.id, constructInPlace('Note', {loading: false, note: a0.note}));
}, USER_NOTE_LOAD_START: function({userId}, a1) {
a1.set(userId, constructInPlace('Note', {'loading': true, 'note': null}));
}}, LibdiscoreBatchStoreRefactorExperiment.getCachedBridgedStoreMode());
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/notes/NoteStore.tsx');
exports.default = value;
exports.NoteRecordTypeTag = 'Note';
}
function _isNativeReflectConstruct_80083() { // fn#80083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10515:217, offset: 0x01e6c4df, size: 98 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_80083_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun80086(a0) { // fn#80086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10515:425, offset: 0x01e6c541, size: 99 bytes, params: 2, frame: 16
const closure = NoteStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'getNote', value: function(a0) {
return this.database.get(a0);
}}, {key: 'stateWrapper', value: function() {
return this.database;
}}]);
}
function NoteStore(a0) { // fn#80087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10515:437, offset: 0x01e6c5a4, size: 147 bytes, params: 2, frame: 19
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_0;
binding(this, NoteStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_3(NoteStore);
binding = env1_2;
if (_isNativeReflectConstruct_80083()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.database = value.addKVDatabase('notes');
return value;
}