170 lines
7.4 KiB
React
170 lines
7.4 KiB
React
/* Metro module 316; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 31, 44] */
|
|
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 env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(102) /* metro dependency 102 */;
|
|
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
|
const PureComponent = (importAll(31) /* metro dependency 31 */).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(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;
|
|
const binding = env0_6;
|
|
value = env0_5(1 & 3 ? value.prototype : value);
|
|
value = binding(value, 'setState', a2);
|
|
return 2 & 3 ? typeof value !== 'function' ? value : _fun4816 : value;
|
|
}
|
|
|
|
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 closure = StateSafePureComponent;
|
|
env0_7(closure, a0);
|
|
return env0_3(closure, [{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(StateSafePureComponent, 'setState', this, 3);
|
|
value([_fun4820, a1]);
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = _superPropGet(StateSafePureComponent, 'setState', this, 3);
|
|
value([a0, a1]);
|
|
}
|
|
}
|
|
|
|
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 _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_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__;
|
|
(importDefault(44) /* metro dependency 44 */)(!env0_0._inAsyncStateUpdate,
|
|
'"this.props" should not be accessed during state updates');
|
|
return props;
|
|
}
|
|
|
|
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__;
|
|
(importDefault(44) /* metro dependency 44 */)(!env0_0._inAsyncStateUpdate,
|
|
'"this.state" should not be acceessed during state updates');
|
|
return state;
|
|
}
|
|
|