/* Metro module 6464; source: unknown; dependencies: [6462] */ import * as Module06462Module from './module-06462.js'; /* Metro dependency 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 = (Module06462Module).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 ___5076722; var TypeError; var value3; var typeError; const env0_0 = a0; const ___507672 = ___50767; if (typeof a1 === 'function') { extendStatics_50763(a0, a1); if (a1 === null) { r1 = global.Object.create(a1); } else { prototype = a1.prototype; ___507672.prototype = prototype; prototype = ___507672.prototype; value = Object.create(prototype, {constructor: {value: ___507672}}); ___5076722 = new ___507672(); value = ___5076722 instanceof Object ? ___5076722 : 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; ___507672.prototype = prototype; prototype = ___507672.prototype; value = Object.create(prototype, {constructor: {value: ___507672}}); ___5076722 = new ___507672(); value = ___5076722 instanceof Object ? ___5076722 : value; r1 = value; } a0.prototype = r1; } function ___50767() { // fn#50767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6642:426, offset: 0x0121c997, size: 20 bytes, params: 1, frame: 2 this.constructor = env0_0; } } 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 GridLayoutManager2 = GridLayoutManager; env0_1(GridLayoutManager2, a0); GridLayoutManager2.prototype.overrideLayout = overrideLayout_50770; GridLayoutManager2.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 GridLayoutManager2; 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); } } } global.__d(_fun50762, 6464, [6462]) /* metro module 6464, dependencies: [6462] */;