Files
2026-07-28 01:06:53 +03:00

190 lines
8.0 KiB
JavaScript

/* Metro module 6477; source: unknown; dependencies: [6449] */
import * as ComponentCompatModule from './module-06449-ComponentCompat.js'; /* Metro dependency 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 = (ComponentCompatModule).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 ___5098622;
var TypeError;
var value3;
var typeError;
const env0_0 = a0;
const ___509862 = ___50986;
if (typeof a1 === 'function') {
extendStatics_50982(a0, a1);
if (a1 === null) {
r1 = global.Object.create(a1);
} else {
prototype = a1.prototype;
___509862.prototype = prototype;
prototype = ___509862.prototype;
value = Object.create(prototype, {constructor: {value: ___509862}});
___5098622 = new ___509862();
value = ___5098622 instanceof Object ? ___5098622 : 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;
___509862.prototype = prototype;
prototype = ___509862.prototype;
value = Object.create(prototype, {constructor: {value: ___509862}});
___5098622 = new ___509862();
value = ___5098622 instanceof Object ? ___5098622 : value;
r1 = value;
}
a0.prototype = r1;
}
function ___50986() { // fn#50986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6655:426, offset: 0x0121c997, size: 20 bytes, params: 1, frame: 2
this.constructor = env0_0;
}
}
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 BaseViewRenderer2 = BaseViewRenderer;
env0_1(BaseViewRenderer2, a0);
BaseViewRenderer2.prototype.shouldComponentUpdate = shouldComponentUpdate_50989;
BaseViewRenderer2.prototype.componentDidMount = function() {
this.animatorStyleOverrides = undefined;
this.props.itemAnimator.animateDidMount(this.props.x, this.props.y, this.getRef(), this.props.index);
};
BaseViewRenderer2.prototype.componentWillMountCompat = function() {
this.animatorStyleOverrides = this.props.itemAnimator.animateWillMount(this.props.x, this.props.y,
this.props.index);
};
BaseViewRenderer2.prototype.componentWillUnmount = function() {
this.isRendererMounted = false;
this.props.itemAnimator.animateWillUnmount(this.props.x, this.props.y, this.getRef(), this.props.index);
};
BaseViewRenderer2.prototype.componentDidUpdate = function() {
};
BaseViewRenderer2.prototype.renderChild = function() {
return this.props.childRenderer(this.props.layoutType, this.props.data, this.props.index,
this.props.extendedState);
};
return BaseViewRenderer2;
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;
}
global.__d(_fun50981, 6477, [6449]) /* metro module 6477, dependencies: [6449] */;