decord/source/406__isNativeReflectConstruct.js

158 lines
4.6 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 406
// Function ID: 407
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-29 08:29:29 +00:00
// Dependencies: [109, 41, 42, 93, 95, 98, 19, 21, 312]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 406 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import closure_3 from "_objectWithoutProperties" /* 109 */;
import closure_4 from "_classCallCheck" /* 41 */;
import closure_5 from "_possibleConstructorReturn" /* 93 */;
import closure_6 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
import importDefaultResult1 from "_inherits" /* 98 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const SectionList = importDefault;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
2026-08-24 06:08:38 +00:00
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
return closure_0;
2026-08-24 06:08:38 +00:00
};
2026-07-29 08:29:29 +00:00
return _isNativeReflectConstruct();
} catch (err) {
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
let closure_2 = ["stickySectionHeadersEnabled"];
2026-07-29 08:29:29 +00:00
class SectionList {
constructor() {
self = this;
items = [...arguments];
2026-08-24 06:08:38 +00:00
closure_0 = undefined;
tmp = closure_4(this, closure_0);
2026-07-29 08:29:29 +00:00
items1 = [...items];
2026-08-24 06:08:38 +00:00
tmp2 = closure_6;
obj = closure_6(closure_0);
tmp3 = closure_5;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp3Result = tmp3(self, constructResult);
2026-08-24 06:08:38 +00:00
closure_0 = tmp3Result;
2026-07-29 08:29:29 +00:00
tmp3Result._captureRef = (_wrapperListRef) => {
2026-08-24 06:08:38 +00:00
closure_0._wrapperListRef = _wrapperListRef;
2026-07-29 08:29:29 +00:00
};
return tmp3Result;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
importDefaultResult1(SectionList, noopAll.PureComponent);
2026-07-29 08:29:29 +00:00
let items = [
{
2026-07-20 16:05:17 +00:00
key: "scrollToLocation",
value: function scrollToLocation(arg0) {
if (null != this._wrapperListRef) {
2026-07-29 08:29:29 +00:00
const _wrapperListRef = tmp._wrapperListRef;
2026-07-20 16:05:17 +00:00
_wrapperListRef.scrollToLocation(arg0);
}
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "recordInteraction",
value: function recordInteraction() {
let _wrapperListRef = this._wrapperListRef;
if (_wrapperListRef) {
const _wrapperListRef2 = this._wrapperListRef;
_wrapperListRef = _wrapperListRef2.getListRef();
}
if (_wrapperListRef) {
_wrapperListRef.recordInteraction();
}
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "flashScrollIndicators",
value: function flashScrollIndicators() {
let _wrapperListRef = this._wrapperListRef;
if (_wrapperListRef) {
const _wrapperListRef2 = this._wrapperListRef;
_wrapperListRef = _wrapperListRef2.getListRef();
}
if (_wrapperListRef) {
const result = _wrapperListRef.flashScrollIndicators();
}
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "getScrollResponder",
value: function getScrollResponder() {
let _wrapperListRef = this._wrapperListRef;
if (_wrapperListRef) {
const _wrapperListRef2 = this._wrapperListRef;
_wrapperListRef = _wrapperListRef2.getListRef();
}
return _wrapperListRef ? _wrapperListRef.getScrollResponder() : undefined;
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "getScrollableNode",
value: function getScrollableNode() {
let _wrapperListRef = this._wrapperListRef;
if (_wrapperListRef) {
const _wrapperListRef2 = this._wrapperListRef;
_wrapperListRef = _wrapperListRef2.getListRef();
}
return _wrapperListRef ? _wrapperListRef.getScrollableNode() : undefined;
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "setNativeProps",
value: function setNativeProps(arg0) {
let _wrapperListRef = this._wrapperListRef;
if (_wrapperListRef) {
const _wrapperListRef2 = this._wrapperListRef;
_wrapperListRef = _wrapperListRef2.getListRef();
}
if (_wrapperListRef) {
_wrapperListRef.setNativeProps(arg0);
}
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "render",
value: function render() {
const props = this.props;
2026-07-29 08:29:29 +00:00
let flag = props.stickySectionHeadersEnabled;
if (flag == null) {
flag = false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj = {};
const merged = Object.assign(callback(props, closure_2));
obj.stickySectionHeadersEnabled = flag;
obj.ref = this._captureRef;
obj.getItemCount = function getItemCount(arg0) {
return arg0.length;
};
obj.getItem = function getItem(arg0, arg1) {
return arg0[arg1];
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
return jsx(SectionList(312).VirtualizedSectionList, {});
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
];
export default importDefaultResult(SectionList, items);