165 lines
7.5 KiB
React
165 lines
7.5 KiB
React
/* Metro module 399; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 303] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import Module00303 from './module-00303.js'; /* Metro dependency 303 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun5769(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:440:6, offset: 0x00ce51c7, size: 234 bytes, params: 8, frame: 18
|
|
const env0_2 = ['stickySectionHeadersEnabled'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const PureComponent = ReactModule.PureComponent;
|
|
exports.default = _fun5773(PureComponent);
|
|
function _isNativeReflectConstruct_5770() { // fn#5770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:440:220, offset: 0x00ce52b1, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_5770_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun5773(a0) { // fn#5773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:440:445, offset: 0x00ce530f, size: 206 bytes, params: 2, frame: 16
|
|
const SectionList2 = SectionList;
|
|
Inherits(SectionList2, a0);
|
|
return CreateClass(SectionList2, [{key: 'scrollToLocation', value: function(a0) {
|
|
if (this._wrapperListRef != null) {
|
|
this._wrapperListRef.scrollToLocation(a0);
|
|
}
|
|
}}, {key: 'recordInteraction', value: function() {
|
|
var r1;
|
|
r1 = this._wrapperListRef && this._wrapperListRef.getListRef();
|
|
if (r1) {
|
|
r1.recordInteraction();
|
|
}
|
|
}}, {key: 'flashScrollIndicators', value: function() {
|
|
var r1;
|
|
r1 = this._wrapperListRef && this._wrapperListRef.getListRef();
|
|
if (r1) {
|
|
r1.flashScrollIndicators();
|
|
}
|
|
}}, {key: 'getScrollResponder', value: function() {
|
|
var r1;
|
|
r1 = this._wrapperListRef && this._wrapperListRef.getListRef();
|
|
if (r1) {
|
|
return r1.getScrollResponder();
|
|
}
|
|
}}, {key: 'getScrollableNode', value: function() {
|
|
var r1;
|
|
r1 = this._wrapperListRef && this._wrapperListRef.getListRef();
|
|
if (r1) {
|
|
return r1.getScrollableNode();
|
|
}
|
|
}}, {key: 'setNativeProps', value: function(a0) {
|
|
var r2;
|
|
r2 = this._wrapperListRef && this._wrapperListRef.getListRef();
|
|
if (r2) {
|
|
r2.setNativeProps(a0);
|
|
}
|
|
}}, {key: 'render', value: value_5782}]);
|
|
function SectionList() { // fn#5774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:440:457, offset: 0x00ce53dd, size: 204 bytes, params: 1, frame: 21
|
|
var environment;
|
|
var r2;
|
|
var r6;
|
|
var r0;
|
|
var value7;
|
|
var Reflect;
|
|
var construct;
|
|
let value = environment.__proto__;
|
|
let binding = env1_4;
|
|
binding(this, SectionList);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value6 = 0;
|
|
if (value6 < length) {
|
|
r2 = value6;
|
|
reducibleLoop1: while (true) {
|
|
array[r2] = arguments[r2];
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value7 < length) {
|
|
r2 = value7;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const value8 = [].concat(array);
|
|
const value9 = env1_7(SectionList);
|
|
binding = env1_6;
|
|
if (_isNativeReflectConstruct_5770()) {
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
reducibleJoin6: while (true) {
|
|
if (value8) {
|
|
r6 = value8;
|
|
break reducibleJoin6;
|
|
}
|
|
r6 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
r0 = Reflect.apply(construct, Reflect, [value9, r6, env1_7(this).constructor]);
|
|
} else {
|
|
r0 = value9.apply(this, value8);
|
|
}
|
|
value = binding(this, r0);
|
|
value._captureRef = _captureRef_5775;
|
|
return value;
|
|
function SectionList_captureRef(a0) { // fn#5775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:440:763, owner: SectionList._captureRef, offset: 0x00ce54a9, size: 20 bytes, params: 2, frame: 2
|
|
env0_0._wrapperListRef = a0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_5782() { // fn#5782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:440:1758, offset: 0x00ce55cd, size: 144 bytes, params: 1, frame: 20
|
|
const props = this.props;
|
|
const stickySectionHeadersEnabled = props.stickySectionHeadersEnabled;
|
|
const value2 = env1_3(props, env1_2);
|
|
const r9 = stickySectionHeadersEnabled != null && stickySectionHeadersEnabled;
|
|
const VirtualizedSectionList = (Module00303).VirtualizedSectionList;
|
|
const Object = global.Object;
|
|
return (
|
|
<VirtualizedSectionList
|
|
{...Object.assign({}, value2, {stickySectionHeadersEnabled: r9, ref: this._captureRef,
|
|
getItemCount: function(a0) {
|
|
return a0.length;
|
|
}, getItem: function(a0, a1) {
|
|
return a0[a1];
|
|
}})}
|
|
/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun5769, 399, [29, 6, 7, 15, 17, 18, 31, 33,
|
|
303]) /* metro module 399, dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 303] */;
|