Files
discord-decomp/sources/by-id/module-00316.js
T
2026-07-28 01:06:53 +03:00

187 lines
9.5 KiB
JavaScript

/* Metro module 316; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 31, 44] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00044 from './module-00044.js'; /* Metro dependency 44 */
import Module00102 from './module-00102.js'; /* Metro dependency 102 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
function _fun4811(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:6, offset: 0x00ccde22, size: 205 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PureComponent = (ReactModule).PureComponent;
exports.default = _fun4817(PureComponent);
function _isNativeReflectConstruct_4812() { // fn#4812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:159, offset: 0x00ccdeef, 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_4812_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_4815(a0, a1, a2, a3) { // fn#4815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:378, offset: 0x00ccdf4d, size: 100 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
value = Module00017(1 & 3 ? value.prototype : value);
value = Module00102(value, 'setState', a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun4816 : value;
function _fun4816(a0) { // fn#4816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:477, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(importDefault, a0);
}
}
function _fun4817(a0) { // fn#4817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:518, offset: 0x00ccdfb1, size: 91 bytes, params: 2, frame: 16
const StateSafePureComponent2 = StateSafePureComponent;
Inherits(StateSafePureComponent2, a0);
return CreateClass(StateSafePureComponent2, [{key: 'setState', value: value_4819}, {key: '_installSetStateHooks',
value: function() {
var env0_0 = this;
var env0_1 = this.props;
var env0_2 = this.state;
var Object = global.Object;
Object.defineProperty(this, 'props', {get: _fun4822, set: _fun4823});
Object = global.Object;
Object.defineProperty(this, 'state', {get: _fun4824, set: _fun4825});
}}]);
function StateSafePureComponent(a0) { // fn#4818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:530, offset: 0x00cce00c, size: 133 bytes, params: 2, frame: 19
let value = environment.__proto__;
env1_2(this, StateSafePureComponent);
const items2 = [a0];
const value3 = env1_5(StateSafePureComponent);
value = env1_4(this, _isNativeReflectConstruct_4812() ? global.Reflect.construct(value3, items2,
env1_5(this).constructor) : value3.apply(this, items2));
value._inAsyncStateUpdate = false;
value._installSetStateHooks();
return value;
}
function value_4819(a0, a1) { // fn#4819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:912, offset: 0x00cce091, size: 139 bytes, params: 3, frame: 20
var environment;
var value;
const env0_0 = a0;
if (typeof a0 === 'function') {
value = environment.__proto__;
value = _superPropGet_4815(StateSafePureComponent, 'setState', this, 3);
value([_fun4820, a1]);
} else {
value = environment.__proto__;
value = _superPropGet_4815(StateSafePureComponent, 'setState', this, 3);
value([a0, a1]);
}
function _fun4820(a0, a1) { // fn#4820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:1024, offset: 0x00cce11c, size: 69 bytes, params: 3, frame: 16
var value;
var binding;
var value2;
var error;
exceptionSkip6: while (true) {
exceptionLanding6: while (true) {
exceptionSkip4: while (true) {
exceptionLanding4: while (true) {
value = environment;
env0_1._inAsyncStateUpdate = true;
try {
try {
binding = env0_0;
} catch (error) {
break exceptionLanding4;
}
} catch (error) {
break exceptionLanding6;
}
try {
try {
value2 = binding(a0, a1);
} catch (error) {
break exceptionLanding4;
}
} catch (error) {
break exceptionLanding6;
}
env0_1._inAsyncStateUpdate = false;
return value2;
break exceptionSkip4;
}
try {
throw error;
} catch (error) {
break exceptionLanding6;
}
break exceptionSkip4;
}
break exceptionSkip6;
}
env0_1._inAsyncStateUpdate = false;
throw error;
break exceptionSkip6;
}
}
}
function value_4821() { // fn#4821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:1246, offset: 0x00cce161, size: 117 bytes, params: 1, frame: 17
let env0_1 = this.props;
let env0_2 = this.state;
let Object = global.Object;
Object.defineProperty(this, 'props', {get: get_4822, set: function(a0) {
env0_1 = a0;
}});
Object = global.Object;
Object.defineProperty(this, 'state', {get: get_4824, set: function(a0) {
env0_2 = a0;
}});
function value_4821Get() { // fn#4822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:1356, owner: value_4821.get, offset: 0x00cce1d6, size: 59 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
(Module00044)(!env0_0._inAsyncStateUpdate,
'"this.props" should not be accessed during state updates');
return props;
}
function value_4821Set(a0) { // fn#4823, owner: value_4821.set, offset: 0x00c381f7, size: 14 bytes, params: 2, frame: 2
env0_1 = a0;
}
function value_4821Get_4824() { // fn#4824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:357:1539, owner: value_4821.get, offset: 0x00cce211, size: 59 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
(Module00044)(!env0_0._inAsyncStateUpdate,
'"this.state" should not be acceessed during state updates');
return state;
}
function value_4821Set_4825(a0) { // fn#4825, owner: value_4821.set, offset: 0x00c6177c, size: 14 bytes, params: 2, frame: 2
env0_2 = a0;
}
}
}
}
global.__d(_fun4811, 316, [6, 7, 15, 17, 102, 18, 31,
44]) /* metro module 316, dependencies: [6, 7, 15, 17, 102, 18, 31, 44] */;