/* Metro module 6447; source: unknown; dependencies: [6448, 6450] */ function _fun50585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6625:6, offset: 0x0121d6fc, size: 123 bytes, params: 8, frame: 18 const value = this; const env0_0 = require; if (value && value.__extends) { } const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.default = _fun50591((require(6448) /* metro dependency 6448 */).default); function extendStatics_50586(a0, a1) { // fn#50586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6625:77, offset: 0x0121d777, 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 _fun50589(a0, a1) { // fn#50589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6625:292, offset: 0x0121d7c5, size: 177 bytes, params: 3, frame: 15 var r1; var value; var prototype; var ___5059022; var TypeError; var value3; var typeError; const env0_0 = a0; const ___505902 = ___50590; if (typeof a1 === 'function') { extendStatics_50586(a0, a1); if (a1 === null) { r1 = global.Object.create(a1); } else { prototype = a1.prototype; ___505902.prototype = prototype; prototype = ___505902.prototype; value = Object.create(prototype, {constructor: {value: ___505902}}); ___5059022 = new ___505902(); value = ___5059022 instanceof Object ? ___5059022 : 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_50586(a0, a1); if (a1 === null) { r1 = global.Object.create(a1); } else { prototype = a1.prototype; ___505902.prototype = prototype; prototype = ___505902.prototype; value = Object.create(prototype, {constructor: {value: ___505902}}); ___5059022 = new ___505902(); value = ___5059022 instanceof Object ? ___5059022 : value; r1 = value; } a0.prototype = r1; } function ___50590() { // fn#50590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6625:426, offset: 0x0121c997, size: 20 bytes, params: 1, frame: 2 this.constructor = env0_0; } } function _fun50591(a0) { // fn#50591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6625:595, offset: 0x0121d876, size: 143 bytes, params: 2, frame: 14 const env0_0 = a0; const StickyHeader2 = StickyHeader; env0_3(StickyHeader2, a0); StickyHeader2.prototype.onScroll = onScroll_50593; StickyHeader2.prototype.initStickyParams = function() { this.stickyType = require(dependencyMap[0]).StickyType.HEADER; this.stickyTypeMultiplier = 1; this.containerPosition = {top: this.getWindowCorrection(this.props).startCorrection}; this.bounceScrolling = true; }; StickyHeader2.prototype.calculateVisibleStickyIndex = calculateVisibleStickyIndex; StickyHeader2.prototype.getNextYd = function(a0, a1) { return a0; }; StickyHeader2.prototype.getCurrentYd = function(a0, a1) { return a0; }; StickyHeader2.prototype.getScrollY = function(a0, a1) { return a0; }; StickyHeader2.prototype.hasReachedBoundary = function(a0, a1) { return false; }; return StickyHeader2; function StickyHeader(a0, a1) { // fn#50592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6625:607, offset: 0x0121d905, size: 36 bytes, params: 3, frame: 15 const value = this; return env0_0.call(value, a0, a1) || value; } function onScroll_50593(a0) { // fn#50593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6625:721, offset: 0x0121d929, size: 83 bytes, params: 2, frame: 15 var r2; let value = a0; const getWindowCorrection = this.getWindowCorrection; const startCorrection = Reflect.apply(getWindowCorrection, this, [this.props]).startCorrection; if (startCorrection) { this.containerPosition = {top: startCorrection}; value += startCorrection; r2 = value; } else { r2 = value; } env0_0.prototype.onScroll.call(this, r2); } function calculateVisibleStickyIndex(a0, a1, a2, a3, a4) { // fn#50595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6625:1148, offset: 0x0121d9de, size: 181 bytes, params: 6, frame: 16 var value; if (a0) { if (a1 !== undefined) { this.bounceScrolling = this.hasReachedBoundary(a3, a4); if (a1 < a0[0]) { this.stickyVisiblity = false; } else if (this.bounceScrolling) { this.stickyVisiblity = false; } else { this.stickyVisiblity = true; value = environment.__proto__; value = (require(6450) /* metro dependency 6450 */).default.findValueSmallerThanTarget(a0, a1); if (value) { this.currentIndex = value.index; value = value.value; this.currentStickyIndex = value; } else { global.console.log('Header sticky index calculation gone wrong.'); } } } } } } } global.__d(_fun50585, 6447, [6448, 6450]) /* metro module 6447, dependencies: [6448, 6450] */;