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

+110
View File
@@ -0,0 +1,110 @@
/* Metro module 12530; source: lib/StateManager.tsx; dependencies: [6, 7, 644, 2] */
function _fun95468(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12720:6, offset: 0x0214705e, size: 134 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const value = _fun95469();
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/StateManager.tsx');
exports.default = value;
}
function _fun95469() { // fn#95469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12720:118, offset: 0x021470e4, size: 186 bytes, params: 1, frame: 15
return env0_3(StateManager, [{key: 'shouldCommit', value: function() {
return true;
}}, {key: 'setState', value: function(a0) {
var r2;
var object = {};
copyDataProperties(object, a0, copyDataProperties(object, this.state, r2));
this.state = object;
}}, {key: 'getState', value: function() {
return this.state;
}}, {key: 'reset', value: function() {
this.dirty = false;
this.state = this.getInitialState();
}}, {key: 'update', value: value_95475}, {key: 'forceUpdate', value: function() {
this.dirty = false;
this.didCommit(this.state);
}}]);
}
function StateManager() { // fn#95470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12720:139, offset: 0x0214719e, size: 66 bytes, params: 1, frame: 14
let value = a0;
const r1 = !(value !== undefined) || value;
value = environment.__proto__;
env1_2(this, StateManager);
this.alwaysUpdateState = r1;
this.dirty = false;
const getInitialState = this.getInitialState;
this.state = Reflect.apply(getInitialState, this, []);
}
function value_95475() { // fn#95475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12720:533, offset: 0x02147224, size: 300 bytes, params: 1, frame: 20
var r6;
var value3;
var length;
var value4;
var value5;
var property;
var dirty;
var defaultImport;
var property2;
var value6;
var value7;
var value8;
let value = a0;
const value2 = a1;
const r5 = value !== undefined ? value : {};
let r0 = value2 !== undefined ? value2 : false;
const getNextState = this.getNextState;
const object2 = {};
let state = this.state;
copyDataProperties(object2, state, undefined);
copyDataProperties(object2, r5, undefined);
value = Reflect.apply(getNextState, this, [object2]);
if (r0) {
value8 = environment.__proto__;
this.dirty = !(importDefault(644) /* metro dependency 644 */)(value, this.getInitialState());
} else {
value3 = global.Object.keys(value);
length = value3.length;
value4 = 0;
value5 = environment.__proto__;
if (value4 < length) {
r6 = value4;
while (true) {
property = value3[r6];
dirty = this.dirty;
if (dirty) {
r0 = dirty;
} else {
defaultImport = importDefault(644) /* metro dependency 644 */;
state = this.state;
property2 = state[property];
value6 = !defaultImport(property2, value[property]);
r0 = value6;
}
this.dirty = r0;
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
length = value3.length;
if (value7 < length) {
r6 = value7;
continue;
}
break;
}
}
}
if (this.dirty && this.shouldCommit() || this.alwaysUpdateState) {
this.state = value;
}
if (r0) {
this.dirty = false;
this.didCommit(this.state);
r0 = true;
} else {
r0 = !!r0;
}
return r0;
}