160 lines
6.4 KiB
React
160 lines
6.4 KiB
React
/* Metro module 6461; source: unknown; dependencies: [6462] */
|
|
function _fun50711(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6639:6, offset: 0x0121fb77, size: 134 bytes, params: 8, frame: 16
|
|
let value = this;
|
|
const env0_0 = require;
|
|
if (value && value.__extends) {
|
|
}
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.BaseLayoutProvider = undefined;
|
|
exports.LayoutProvider = undefined;
|
|
value = (() => {
|
|
var closure = _fun50718;
|
|
closure.prototype.createLayoutManager = _fun50719;
|
|
closure.prototype.getLayoutManager = _fun50720;
|
|
return closure;
|
|
})();
|
|
exports.BaseLayoutProvider = value;
|
|
exports.LayoutProvider = _fun50721(value);
|
|
}
|
|
|
|
function extendStatics_50712(a0, a1) { // fn#50712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6639:77, offset: 0x0121fbfd, 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 _fun50715(a0, a1) { // fn#50715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6639:292, offset: 0x0121fc4b, 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 = ___50716;
|
|
if (typeof a1 === 'function') {
|
|
extendStatics_50712(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_50712(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 _fun50717() { // fn#50717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6639:640, offset: 0x0121fcfc, size: 41 bytes, params: 1, frame: 4
|
|
const closure = function() {
|
|
this.shouldRefreshWithAnchoring = true;
|
|
};
|
|
closure.prototype.createLayoutManager = function(a0, a1, a2) {
|
|
this._lastLayoutManager = this.newLayoutManager(a0, a1, a2);
|
|
return this._lastLayoutManager;
|
|
};
|
|
closure.prototype.getLayoutManager = function() {
|
|
return this._lastLayoutManager;
|
|
};
|
|
return closure;
|
|
}
|
|
|
|
function _fun50721(a0) { // fn#50721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6639:1013, offset: 0x0121fd66, size: 95 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const closure = LayoutProvider;
|
|
env0_3(closure, a0);
|
|
closure.prototype.newLayoutManager = newLayoutManager;
|
|
closure.prototype.getLayoutTypeForIndex = function(a0) {
|
|
return this._getLayoutTypeForIndex(a0);
|
|
};
|
|
closure.prototype.setComputedLayout = function(a0, a1, a2) {
|
|
return this._setLayoutForType(a0, a1, a2);
|
|
};
|
|
closure.prototype.checkDimensionDiscrepancy = function(a0, a1, a2) {
|
|
this.setComputedLayout(a1, this._tempDim, a2);
|
|
var _tempDim = this._tempDim;
|
|
var value = this.getLayoutManager();
|
|
if (value) {
|
|
value.setMaxBounds(_tempDim);
|
|
}
|
|
return a0.height !== _tempDim.height || a0.width !== _tempDim.width;
|
|
};
|
|
return closure;
|
|
}
|
|
|
|
function LayoutProvider(a0, a1) { // fn#50722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6639:1025, offset: 0x0121fdc5, size: 62 bytes, params: 3, frame: 11
|
|
const value = this;
|
|
const r0 = env0_0.call(value) || value;
|
|
r0._getLayoutTypeForIndex = a0;
|
|
r0._setLayoutForType = a1;
|
|
r0._tempDim = {'height': 0, 'width': 0};
|
|
return r0;
|
|
}
|
|
|
|
function newLayoutManager(a0, a1, a2) { // fn#50723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6639:1236, offset: 0x0121fe03, size: 64 bytes, params: 4, frame: 17
|
|
let value = environment.__proto__;
|
|
const WrapGridLayoutManager = (require(6462) /* metro dependency 6462 */).WrapGridLayoutManager;
|
|
value = Object.create(WrapGridLayoutManager.prototype, {constructor: {value: WrapGridLayoutManager}});
|
|
const wrapGridLayoutManager = new WrapGridLayoutManager(this, a0, a1, a2);
|
|
return wrapGridLayoutManager instanceof Object ? wrapGridLayoutManager : value;
|
|
}
|
|
|