183 lines
7.0 KiB
React
183 lines
7.0 KiB
React
/* Metro module 6477; source: unknown; dependencies: [6449] */
|
|
function _fun50981(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6655:6, offset: 0x012266b2, size: 116 bytes, params: 8, frame: 16
|
|
const value = this;
|
|
if (value && value.__extends) {
|
|
}
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const ComponentCompat = (require(6449) /* metro dependency 6449 */).ComponentCompat;
|
|
exports.default = _fun50987(ComponentCompat);
|
|
}
|
|
|
|
function extendStatics_50982(a0, a1) { // fn#50982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6655:77, offset: 0x01226726, size: 78 bytes, params: 3, frame: 13
|
|
var r3;
|
|
var Array;
|
|
var value;
|
|
const Object = global.Object;
|
|
const setPrototypeOf = Object.setPrototypeOf;
|
|
if (setPrototypeOf) {
|
|
r3 = setPrototypeOf;
|
|
} else {
|
|
Array = global.Array;
|
|
value = Object.create([]);
|
|
value = value instanceof Array;
|
|
r3 = value && (function(a0, a1) {
|
|
a0.__proto__ = a1;
|
|
});
|
|
}
|
|
r3 = !r3 ? function(a0, a1) {
|
|
var r3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty;
|
|
for (propertyName in a1) {
|
|
hasOwnProperty = global.Object.prototype.hasOwnProperty;
|
|
if (!hasOwnProperty.call(a1, propertyName)) {
|
|
r3 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = a1[propertyName];
|
|
r3 = propertyName2;
|
|
}
|
|
} : r3;
|
|
return r3(a0, a1);
|
|
}
|
|
|
|
function _fun50985(a0, a1) { // fn#50985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6655:292, offset: 0x01226774, size: 177 bytes, params: 3, frame: 15
|
|
var r1;
|
|
var value;
|
|
var prototype;
|
|
var closure2;
|
|
var TypeError;
|
|
var value3;
|
|
var typeError;
|
|
const env0_0 = a0;
|
|
const closure = ___50986;
|
|
if (typeof a1 === 'function') {
|
|
extendStatics_50982(a0, a1);
|
|
if (a1 === null) {
|
|
r1 = global.Object.create(a1);
|
|
} else {
|
|
prototype = a1.prototype;
|
|
closure.prototype = prototype;
|
|
prototype = closure.prototype;
|
|
value = Object.create(prototype, {constructor: {value: closure}});
|
|
closure2 = new closure();
|
|
value = closure2 instanceof Object ? closure2 : value;
|
|
r1 = value;
|
|
}
|
|
a0.prototype = r1;
|
|
} else {
|
|
if (a1 !== null) {
|
|
TypeError = global.TypeError;
|
|
value = global.String(a1);
|
|
value = 'Class extends value ' + value;
|
|
value3 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
|
|
value += ' is not a constructor or null';
|
|
typeError = new TypeError();
|
|
value = typeError instanceof Object ? typeError : value3;
|
|
throw value;
|
|
}
|
|
extendStatics_50982(a0, a1);
|
|
if (a1 === null) {
|
|
r1 = global.Object.create(a1);
|
|
} else {
|
|
prototype = a1.prototype;
|
|
closure.prototype = prototype;
|
|
prototype = closure.prototype;
|
|
value = Object.create(prototype, {constructor: {value: closure}});
|
|
closure2 = new closure();
|
|
value = closure2 instanceof Object ? closure2 : value;
|
|
r1 = value;
|
|
}
|
|
a0.prototype = r1;
|
|
}
|
|
}
|
|
|
|
function _fun50987(a0) { // fn#50987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6655:595, offset: 0x01226825, size: 127 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const closure = BaseViewRenderer;
|
|
env0_1(closure, a0);
|
|
closure.prototype.shouldComponentUpdate = shouldComponentUpdate_50989;
|
|
closure.prototype.componentDidMount = function() {
|
|
this.animatorStyleOverrides = undefined;
|
|
this.props.itemAnimator.animateDidMount(this.props.x, this.props.y, this.getRef(), this.props.index);
|
|
};
|
|
closure.prototype.componentWillMountCompat = function() {
|
|
this.animatorStyleOverrides = this.props.itemAnimator.animateWillMount(this.props.x, this.props.y,
|
|
this.props.index);
|
|
};
|
|
closure.prototype.componentWillUnmount = function() {
|
|
this.isRendererMounted = false;
|
|
this.props.itemAnimator.animateWillUnmount(this.props.x, this.props.y, this.getRef(), this.props.index);
|
|
};
|
|
closure.prototype.componentDidUpdate = function() {
|
|
};
|
|
closure.prototype.renderChild = function() {
|
|
return this.props.childRenderer(this.props.layoutType, this.props.data, this.props.index,
|
|
this.props.extendedState);
|
|
};
|
|
return closure;
|
|
}
|
|
|
|
function BaseViewRenderer() { // fn#50988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6655:607, offset: 0x012268a4, size: 54 bytes, params: 1, frame: 15
|
|
const value = this;
|
|
let r0 = env0_0 !== null && env0_0.apply(value, arguments);
|
|
r0 = !r0 ? value : r0;
|
|
r0.isRendererMounted = true;
|
|
return r0;
|
|
}
|
|
|
|
function shouldComponentUpdate_50989(a0) { // fn#50989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6655:791, offset: 0x012268da, size: 383 bytes, params: 2, frame: 25
|
|
var r0;
|
|
var r5;
|
|
var y;
|
|
var itemAnimator;
|
|
var animateShift;
|
|
var x3;
|
|
var y3;
|
|
var animateWillUpdate;
|
|
let props = this.props;
|
|
let x = props.x;
|
|
const r3 = x !== a0.x || this.props.y !== a0.y;
|
|
let r1 = !a0.forceNonDeterministicRendering && (this.props.width !== a0.width || this.props.height !== a0.height);
|
|
r1 = !r1 ? this.props.layoutProvider !== a0.layoutProvider : r1;
|
|
value = this.props.extendedState !== a0.extendedState;
|
|
const value2 = this.props.internalSnapshot !== a0.internalSnapshot;
|
|
const dataHasChanged = this.props.dataHasChanged;
|
|
if (dataHasChanged) {
|
|
props = this.props;
|
|
r5 = props.dataHasChanged(this.props.data, a0.data);
|
|
} else {
|
|
r5 = dataHasChanged;
|
|
}
|
|
r1 = !r1 ? r5 : r1;
|
|
r1 = !r1 ? value : r1;
|
|
r1 = !r1 ? value2 : r1;
|
|
if (r1) {
|
|
itemAnimator = a0.itemAnimator;
|
|
animateWillUpdate = itemAnimator.animateWillUpdate;
|
|
props = this.props;
|
|
x = props.x;
|
|
props = this.props;
|
|
Reflect.apply(animateWillUpdate, itemAnimator, [x, props.y, a0.x, a0.y, this.getRef(), a0.index]);
|
|
r0 = r1;
|
|
} else if (r3) {
|
|
itemAnimator = a0.itemAnimator;
|
|
animateShift = itemAnimator.animateShift;
|
|
props = this.props;
|
|
x = props.x;
|
|
props = this.props;
|
|
y = props.y;
|
|
x3 = a0.x;
|
|
y3 = a0.y;
|
|
value = this.getRef();
|
|
value = !Reflect.apply(animateShift, itemAnimator, [x, y, x3, y3, value, a0.index]);
|
|
r0 = value;
|
|
} else {
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|