315 lines
12 KiB
React
315 lines
12 KiB
React
/* Metro module 6476; source: unknown; dependencies: [31, 27, 6477] */
|
|
function _fun50961(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:6, offset: 0x01225f02, size: 171 bytes, params: 8, frame: 18
|
|
var closure;
|
|
const value = this;
|
|
if (value && value.__extends) {
|
|
}
|
|
if (!(value && value.__assign)) {
|
|
closure = function() {
|
|
var r3;
|
|
r3 = global.Object.assign || _fun50968;
|
|
env0_2 = r3;
|
|
return r3.apply(this, arguments);
|
|
};
|
|
}
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = require(31) /* metro dependency 31 */;
|
|
const env0_4 = require(27) /* metro dependency 27 */;
|
|
exports.default = _fun50969((require(6477) /* metro dependency 6477 */).default);
|
|
}
|
|
|
|
function extendStatics_50962(a0, a1) { // fn#50962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:78, offset: 0x01225fad, 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 _fun50965(a0, a1) { // fn#50965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:293, offset: 0x01225ffb, 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 = ___50966;
|
|
if (typeof a1 === 'function') {
|
|
extendStatics_50962(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_50962(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 _fun50967() { // fn#50967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:564, offset: 0x012260ac, size: 53 bytes, params: 1, frame: 13
|
|
const Object = global.Object;
|
|
return (Object.assign || (function(a0) {
|
|
var r2;
|
|
var r10;
|
|
var value3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty;
|
|
var value4;
|
|
var value = arguments.length;
|
|
var value2 = 1;
|
|
if (value2 < value) {
|
|
r2 = value2;
|
|
while (true) {
|
|
value3 = arguments[r2];
|
|
for (propertyName in value3) {
|
|
hasOwnProperty = global.Object.prototype.hasOwnProperty;
|
|
if (!hasOwnProperty.call(value3, propertyName)) {
|
|
r10 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = value3[propertyName];
|
|
r10 = propertyName2;
|
|
}
|
|
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value4 < value) {
|
|
r2 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return a0;
|
|
})).apply(this, arguments);
|
|
}
|
|
|
|
function _fun50969(a0) { // fn#50969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:847, offset: 0x012260e1, size: 111 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const closure = ViewRenderer;
|
|
env0_1(closure, a0);
|
|
closure.prototype.renderCompat = renderCompat_50976;
|
|
closure.prototype.componentDidUpdate = componentDidUpdate_50977;
|
|
closure.prototype.componentDidMount = componentDidMount_50978;
|
|
closure.prototype.getRef = function() {
|
|
return this._viewRef;
|
|
};
|
|
closure.prototype._renderItemContainer = _renderItemContainer;
|
|
return closure;
|
|
}
|
|
|
|
function ViewRenderer() { // fn#50970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:859, offset: 0x01226150, size: 118 bytes, params: 1, frame: 17
|
|
const value = this;
|
|
let r0 = env0_0 !== null && env0_0.apply(value, arguments);
|
|
r0 = !r0 ? value : r0;
|
|
r0._dim = {'width': 0, 'height': 0};
|
|
r0._viewRef = null;
|
|
r0._setRef = _setRef;
|
|
r0._onLayout = _onLayout;
|
|
r0._scheduleForceSizeUpdateTimer = _scheduleForceSizeUpdateTimer;
|
|
r0._forceSizeUpdate = _forceSizeUpdate;
|
|
return r0;
|
|
}
|
|
|
|
function renderCompat_50976() { // fn#50976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:1835, offset: 0x0122644b, size: 307 bytes, params: 1, frame: 17
|
|
var r3;
|
|
var object4;
|
|
var value;
|
|
var binding;
|
|
var object5;
|
|
var object6;
|
|
var isHorizontal;
|
|
let props = this.props;
|
|
if (props.forceNonDeterministicRendering) {
|
|
object4 = {};
|
|
object4.ref = this._setRef;
|
|
object4.onLayout = this._onLayout;
|
|
value = environment.__proto__;
|
|
binding = env1_2;
|
|
object6 = {};
|
|
props = this.props;
|
|
isHorizontal = props.isHorizontal;
|
|
value = 'row';
|
|
object6.flexDirection = isHorizontal ? 'column' : value;
|
|
props = this.props;
|
|
object6.left = props.x;
|
|
object6.position = 'absolute';
|
|
props = this.props;
|
|
object6.top = props.y;
|
|
props = this.props;
|
|
value = binding(object6, props.styleOverrides);
|
|
object4.style = binding(value, this.animatorStyleOverrides);
|
|
r3 = object4;
|
|
} else {
|
|
object4 = {};
|
|
object4.ref = this._setRef;
|
|
value = environment.__proto__;
|
|
binding = env1_2;
|
|
object5 = {};
|
|
props = this.props;
|
|
object5.left = props.x;
|
|
object5.position = 'absolute';
|
|
props = this.props;
|
|
object5.top = props.y;
|
|
props = this.props;
|
|
object5.height = props.height;
|
|
props = this.props;
|
|
object5.width = props.width;
|
|
props = this.props;
|
|
value = binding(object5, props.styleOverrides);
|
|
object4.style = binding(value, this.animatorStyleOverrides);
|
|
r3 = object4;
|
|
}
|
|
return this._renderItemContainer(r3, this.props, this.renderChild());
|
|
}
|
|
|
|
function componentDidUpdate_50977() { // fn#50977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:2412, offset: 0x0122657e, size: 129 bytes, params: 1, frame: 12
|
|
var value;
|
|
env0_0.prototype.componentDidUpdate.call(this);
|
|
let layoutProvider = this.props.layoutProvider;
|
|
let r0 = layoutProvider && this._layoutManagerRef;
|
|
if (r0) {
|
|
value = this.props.layoutProvider.getLayoutManager();
|
|
value = value !== this._layoutManagerRef;
|
|
r0 = value;
|
|
}
|
|
if (r0) {
|
|
layoutProvider = this.props.layoutProvider;
|
|
this._layoutManagerRef = layoutProvider.getLayoutManager();
|
|
this._scheduleForceSizeUpdateTimer();
|
|
}
|
|
}
|
|
|
|
function componentDidMount_50978() { // fn#50978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:2736, offset: 0x012265ff, size: 76 bytes, params: 1, frame: 11
|
|
env0_0.prototype.componentDidMount.call(this);
|
|
let layoutProvider = this.props.layoutProvider;
|
|
if (layoutProvider) {
|
|
layoutProvider = this.props.layoutProvider;
|
|
this._layoutManagerRef = layoutProvider.getLayoutManager();
|
|
}
|
|
}
|
|
|
|
function _renderItemContainer(a0, a1, a2) { // fn#50980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:2993, offset: 0x01226656, size: 92 bytes, params: 4, frame: 19
|
|
var value;
|
|
var binding;
|
|
let r0 = this.props.renderItemContainer && this.props.renderItemContainer(a0, a1, a2);
|
|
if (!r0) {
|
|
value = environment.__proto__;
|
|
binding = env1_3;
|
|
value = binding.createElement(env1_4.View, env1_2({}, a0), a2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function ViewRenderer_onLayout(a0) { // fn#50972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:1026, owner: ViewRenderer._onLayout, offset: 0x012261c6, size: 396 bytes, params: 2, frame: 16
|
|
var _dim;
|
|
let Math = global.Math;
|
|
const abs = Math.abs;
|
|
let props = env0_0.props;
|
|
const x = props.x;
|
|
let nativeEvent = a0.nativeEvent;
|
|
let layout = nativeEvent.layout;
|
|
const value2 = Reflect.apply(abs, Math, [x - layout.x]);
|
|
Math = global.Math;
|
|
if (value2 < 1 && Math.abs(env0_0.props.y - a0.nativeEvent.layout.y) < 1 && (env0_0.props.height !== a0.nativeEvent.layout.height || env0_0.props.width !== a0.nativeEvent.layout.width)) {
|
|
_dim = env0_0._dim;
|
|
nativeEvent = a0.nativeEvent;
|
|
layout = nativeEvent.layout;
|
|
_dim.height = layout.height;
|
|
_dim = env0_0._dim;
|
|
nativeEvent = a0.nativeEvent;
|
|
layout = nativeEvent.layout;
|
|
_dim.width = layout.width;
|
|
props = env0_0.props;
|
|
if (props.onSizeChanged) {
|
|
props = env0_0.props;
|
|
props.onSizeChanged(env0_0._dim, env0_0.props.index);
|
|
}
|
|
}
|
|
if (env0_0.props.onItemLayout) {
|
|
props = env0_0.props;
|
|
props.onItemLayout(env0_0.props.index);
|
|
}
|
|
}
|
|
|
|
function _scheduleForceSizeUpdateTimer() { // fn#50973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:1476, owner: ViewRenderer._scheduleForceSizeUpdateTimer, offset: 0x01226352, size: 80 bytes, params: 1, frame: 14
|
|
var environment;
|
|
var value2;
|
|
if (env0_0Binding.props.forceNonDeterministicRendering) {
|
|
value2 = environment.__proto__.__proto__;
|
|
var env0_0Binding = env2_2({}, env0_0._dim);
|
|
global.setTimeout(_fun50974, 32);
|
|
}
|
|
}
|
|
|
|
function _forceSizeUpdate(a0) { // fn#50975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:1621, owner: ViewRenderer._forceSizeUpdate, offset: 0x012263bf, size: 140 bytes, params: 2, frame: 13
|
|
var props;
|
|
if (a0.width === env0_0._dim.width && a0.height === env0_0._dim.height && env0_0.isRendererMounted && env0_0.props.onSizeChanged) {
|
|
props = env0_0.props;
|
|
props.onSizeChanged(env0_0._dim, env0_0.props.index);
|
|
}
|
|
}
|
|
|
|
function _fun50974() { // fn#50974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6654:1561, offset: 0x012263a2, size: 29 bytes, params: 1, frame: 11
|
|
env1_0._forceSizeUpdate(env0_0);
|
|
}
|
|
|