169 lines
6.6 KiB
React
169 lines
6.6 KiB
React
/* Metro module 6464; source: unknown; dependencies: [6462] */
|
|
function _fun50762(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6642:6, offset: 0x01220b21, size: 122 bytes, params: 8, frame: 16
|
|
const value = this;
|
|
if (value && value.__extends) {
|
|
}
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.GridLayoutManager = undefined;
|
|
const WrapGridLayoutManager = (require(6462) /* metro dependency 6462 */).WrapGridLayoutManager;
|
|
exports.GridLayoutManager = _fun50768(WrapGridLayoutManager);
|
|
}
|
|
|
|
function extendStatics_50763(a0, a1) { // fn#50763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6642:77, offset: 0x01220b9b, 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 _fun50766(a0, a1) { // fn#50766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6642:292, offset: 0x01220be9, 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 = ___50767;
|
|
if (typeof a1 === 'function') {
|
|
extendStatics_50763(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_50763(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 _fun50768(a0) { // fn#50768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6642:622, offset: 0x01220c9a, size: 63 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const closure = GridLayoutManager;
|
|
env0_1(closure, a0);
|
|
closure.prototype.overrideLayout = overrideLayout_50770;
|
|
closure.prototype.getStyleOverridesForIndex = function(a0) {
|
|
var value = this._getSpan(a0);
|
|
var property = this._isGridHorizontal;
|
|
var object = {};
|
|
var _renderWindowSize = this._renderWindowSize;
|
|
if (property) {
|
|
object.height = _renderWindowSize.height / this._maxSpan * value;
|
|
} else {
|
|
object.width = _renderWindowSize.width / this._maxSpan * value;
|
|
}
|
|
return object;
|
|
};
|
|
return closure;
|
|
}
|
|
|
|
function GridLayoutManager(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6642:634, offset: 0x01220cd9, size: 172 bytes, params: 8, frame: 21
|
|
const value = this;
|
|
const r0 = env0_0.call(value, global, require, exports, dependencyMap) || value;
|
|
r0._getSpan = importDefault;
|
|
r0._isGridHorizontal = exports;
|
|
r0._renderWindowSize = require;
|
|
if (module < 0) {
|
|
throw new global.Error('acceptableRelayoutDelta cannot be less than 0');
|
|
}
|
|
r0._acceptableRelayoutDelta = module;
|
|
if (importAll <= 0) {
|
|
throw new global.Error('Max Column Span cannot be less than or equal to 0');
|
|
}
|
|
r0._maxSpan = importAll;
|
|
return r0;
|
|
}
|
|
|
|
function overrideLayout_50770(a0, a1) { // fn#50770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6642:1039, offset: 0x01220d85, size: 189 bytes, params: 3, frame: 19
|
|
var _isGridHorizontal;
|
|
var _acceptableRelayoutDelta;
|
|
const getLayouts = this.getLayouts;
|
|
const property = Reflect.apply(getLayouts, this, [])[a0];
|
|
let Math = global.Math;
|
|
let value = Math.abs(a1.height - property.height);
|
|
Math = global.Math;
|
|
const value2 = Math.abs(a1.width - property.width);
|
|
if (property) {
|
|
_isGridHorizontal = this._isGridHorizontal;
|
|
_acceptableRelayoutDelta = this._acceptableRelayoutDelta;
|
|
if (_isGridHorizontal) {
|
|
if (value < _acceptableRelayoutDelta) {
|
|
if (value2 === 0) {
|
|
return false;
|
|
}
|
|
a1.height = property.height;
|
|
return env0_0.prototype.overrideLayout.call(this, a0, a1);
|
|
}
|
|
value = environment;
|
|
return env0_0.prototype.overrideLayout.call(this, a0, a1);
|
|
}
|
|
if (value2 < _acceptableRelayoutDelta) {
|
|
if (value === 0) {
|
|
return false;
|
|
}
|
|
a1.width = property.width;
|
|
return env0_0.prototype.overrideLayout.call(this, a0, a1);
|
|
}
|
|
}
|
|
return env0_0.prototype.overrideLayout.call(this, a0, a1);
|
|
}
|
|
|