313 lines
14 KiB
JavaScript
313 lines
14 KiB
JavaScript
/* Metro module 6474; source: unknown; dependencies: [31, 27, 6470, 6475] */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as Module06470Module from './module-06470.js'; /* Metro dependency 6470 */
|
|
|
|
function _fun50933(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:6, offset: 0x01225632, size: 179 bytes, params: 8, frame: 18
|
|
var closure;
|
|
const value = this;
|
|
const env0_0 = require;
|
|
if (value && value.__extends) {
|
|
}
|
|
if (!(value && value.__assign)) {
|
|
closure = function() {
|
|
var r3;
|
|
r3 = global.Object.assign || _fun50940;
|
|
env0_4 = r3;
|
|
return r3.apply(this, arguments);
|
|
};
|
|
}
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = _fun50941((require(6475) /* metro dependency 6475 */).default);
|
|
function extendStatics_50934(a0, a1) { // fn#50934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:78, offset: 0x012256e5, 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 _fun50937(a0, a1) { // fn#50937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:293, offset: 0x01225733, size: 177 bytes, params: 3, frame: 15
|
|
var r1;
|
|
var value;
|
|
var prototype;
|
|
var ___5093822;
|
|
var TypeError;
|
|
var value3;
|
|
var typeError;
|
|
const env0_0 = a0;
|
|
const ___509382 = ___50938;
|
|
if (typeof a1 === 'function') {
|
|
extendStatics_50934(a0, a1);
|
|
if (a1 === null) {
|
|
r1 = global.Object.create(a1);
|
|
} else {
|
|
prototype = a1.prototype;
|
|
___509382.prototype = prototype;
|
|
prototype = ___509382.prototype;
|
|
value = Object.create(prototype, {constructor: {value: ___509382}});
|
|
___5093822 = new ___509382();
|
|
value = ___5093822 instanceof Object ? ___5093822 : 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_50934(a0, a1);
|
|
if (a1 === null) {
|
|
r1 = global.Object.create(a1);
|
|
} else {
|
|
prototype = a1.prototype;
|
|
___509382.prototype = prototype;
|
|
prototype = ___509382.prototype;
|
|
value = Object.create(prototype, {constructor: {value: ___509382}});
|
|
___5093822 = new ___509382();
|
|
value = ___5093822 instanceof Object ? ___5093822 : value;
|
|
r1 = value;
|
|
}
|
|
a0.prototype = r1;
|
|
}
|
|
function ___50938() { // fn#50938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:427, offset: 0x0121c997, size: 20 bytes, params: 1, frame: 2
|
|
this.constructor = env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun50939() { // fn#50939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:564, offset: 0x012257e4, 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 _fun50941(a0) { // fn#50941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:847, offset: 0x01225819, size: 183 bytes, params: 2, frame: 16
|
|
const env0_0 = a0;
|
|
const ScrollComponent2 = ScrollComponent;
|
|
env0_3(ScrollComponent2, a0);
|
|
ScrollComponent2.prototype.scrollTo = function(a0, a1, a2) {
|
|
if (this._scrollViewRef) {
|
|
this._scrollViewRef.scrollTo({x: a0, y: a1, animated: a2});
|
|
}
|
|
};
|
|
ScrollComponent2.prototype.getScrollableNode = function() {
|
|
return this._scrollViewRef && this._scrollViewRef.getScrollableNode ? this._scrollViewRef.getScrollableNode() : null;
|
|
};
|
|
ScrollComponent2.prototype.getNativeScrollRef = function() {
|
|
return this._scrollViewRef;
|
|
};
|
|
ScrollComponent2.prototype.render = render_50949;
|
|
ScrollComponent2.prototype._defaultContainer = _defaultContainer;
|
|
const property = (Module06470Module).default;
|
|
const cast = property.cast;
|
|
const ScrollView = ReactNativeModule.ScrollView;
|
|
ScrollComponent2.defaultProps = {'contentHeight': 0, 'contentWidth': 0, 'externalScrollView': null,
|
|
'isHorizontal': false, 'scrollThrottle': 16, externalScrollView: Reflect.apply(cast, property, [ScrollView])};
|
|
return ScrollComponent2;
|
|
function ScrollComponent(a0) { // fn#50942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:859, offset: 0x012258d0, size: 157 bytes, params: 2, frame: 14
|
|
const value = this;
|
|
const r0 = env0_0.call(value, a0) || value;
|
|
r0._scrollViewRef = null;
|
|
r0._getScrollViewRef = _getScrollViewRef;
|
|
r0._onScroll = _onScroll_50944;
|
|
r0._onLayout = _onLayout_50945;
|
|
let r1 = a0.layoutSize && a0.layoutSize.height;
|
|
r1 = !r1 ? 0 : r1;
|
|
r0._height = r1;
|
|
r1 = a0.layoutSize && a0.layoutSize.width;
|
|
r1 = !r1 ? 0 : r1;
|
|
r0._width = r1;
|
|
r0._offset = 0;
|
|
r0._isSizeChangedCalledOnce = false;
|
|
return r0;
|
|
function _getScrollViewRef(a0) { // fn#50943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:963, owner: ScrollComponent._getScrollViewRef, offset: 0x0122596d, size: 20 bytes, params: 2, frame: 2
|
|
env0_0._scrollViewRef = a0;
|
|
}
|
|
|
|
function ScrollComponent_onScroll(a0) { // fn#50944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:1007, owner: ScrollComponent._onScroll, offset: 0x01225981, size: 93 bytes, params: 2, frame: 16
|
|
var contentOffset;
|
|
var binding;
|
|
var props;
|
|
if (a0) {
|
|
contentOffset = a0.nativeEvent.contentOffset;
|
|
binding = env0_0;
|
|
props = binding.props;
|
|
binding._offset = props.isHorizontal ? contentOffset.x : contentOffset.y;
|
|
props = env0_0.props;
|
|
props.onScroll(contentOffset.x, contentOffset.y, a0);
|
|
}
|
|
}
|
|
|
|
function ScrollComponent_onLayout(a0) { // fn#50945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:1140, owner: ScrollComponent._onLayout, offset: 0x012259de, size: 232 bytes, params: 2, frame: 13
|
|
var binding;
|
|
var props;
|
|
const _height = env0_0._height;
|
|
let nativeEvent = a0.nativeEvent;
|
|
let layout = nativeEvent.layout;
|
|
if (!(_height === layout.height && env0_0._width === a0.nativeEvent.layout.width)) {
|
|
binding = env0_0;
|
|
nativeEvent = a0.nativeEvent;
|
|
layout = nativeEvent.layout;
|
|
binding._height = layout.height;
|
|
binding = env0_0;
|
|
nativeEvent = a0.nativeEvent;
|
|
layout = nativeEvent.layout;
|
|
binding._width = layout.width;
|
|
props = env0_0.props;
|
|
if (props.onSizeChanged) {
|
|
env0_0._isSizeChangedCalledOnce = true;
|
|
props = env0_0.props;
|
|
props.onSizeChanged(a0.nativeEvent.layout);
|
|
}
|
|
}
|
|
if (env0_0.props.onLayout) {
|
|
env0_0.props.onLayout(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function render_50949() { // fn#50949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:2018, offset: 0x01225b3b, size: 482 bytes, params: 1, frame: 26
|
|
const value = environment.__proto__;
|
|
const property = (Module06470Module).default;
|
|
const value2 = property.cast(this.props.externalScrollView);
|
|
const r11 = this.props.renderContentContainer || this._defaultContainer;
|
|
const object = {};
|
|
object.style = {height: this.props.contentHeight, width: this.props.contentWidth};
|
|
object.horizontal = this.props.isHorizontal;
|
|
object.scrollOffset = this._offset;
|
|
object.renderAheadOffset = this.props.renderAheadOffset;
|
|
object.windowSize = (this.props.isHorizontal ? this._width : this._height) + this.props.renderAheadOffset;
|
|
const binding = env1_5;
|
|
const createElement = binding.createElement;
|
|
const value3 = env1_4({ref: this._getScrollViewRef, removeClippedSubviews: false,
|
|
scrollEventThrottle: this.props.scrollThrottle}, this.props, {horizontal: this.props.isHorizontal,
|
|
onScroll: this._onScroll,
|
|
onLayout: this._isSizeChangedCalledOnce ? this.props.canChangeSize ? this._onLayout : this.props.onLayout : this._onLayout});
|
|
const binding3 = env1_5;
|
|
const createElement2 = binding3.createElement;
|
|
const View = env1_6.View;
|
|
return Reflect.apply(createElement, binding, [value2, value3, Reflect.apply(createElement2, binding3, [View,
|
|
{style: {flexDirection: this.props.isHorizontal ? 'row' : 'column'}}, r11(object, this.props.children),
|
|
this.props.renderFooter ? this.props.renderFooter() : null])]);
|
|
}
|
|
|
|
function _defaultContainer(a0, a1) { // fn#50950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:2968, offset: 0x01225d1d, size: 51 bytes, params: 3, frame: 17
|
|
const value = environment.__proto__;
|
|
const binding = env1_5;
|
|
const createElement = binding.createElement;
|
|
const View = env1_6.View;
|
|
return Reflect.apply(createElement, binding, [View, env1_4({}, a0), a1]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun50940(a0) { // fn#50940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6652:599, offset: 0x00dfd74d, size: 114 bytes, params: 2, frame: 25
|
|
var r2;
|
|
var r10;
|
|
var value3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var call;
|
|
var value4;
|
|
const length = arguments.length;
|
|
const value2 = 1;
|
|
if (value2 < length) {
|
|
r2 = value2;
|
|
while (true) {
|
|
value3 = arguments[r2];
|
|
for (propertyName in value3) {
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
call = hasOwnProperty.call;
|
|
if (!Reflect.apply(call, hasOwnProperty, [value3, propertyName])) {
|
|
r10 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = value3[propertyName];
|
|
r10 = propertyName2;
|
|
}
|
|
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value4 < length) {
|
|
r2 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
global.__d(_fun50933, 6474, [31, 27, 6470, 6475]) /* metro module 6474, dependencies: [31, 27, 6470, 6475] */;
|