decord/source/10808__isNativeReflectConstruct.js

93 lines
2.6 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 10808
2026-07-27 11:26:19 +00:00
// Function ID: 83827
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-27 11:26:19 +00:00
// Dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 3959]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 10808 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import getActivityIndicator from "get ActivityIndicator";
2026-07-27 11:26:19 +00:00
import jsxProd from "jsxProd";
2026-07-23 10:11:24 +00:00
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
2026-07-27 11:26:19 +00:00
import _inherits from "_inherits";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
2026-07-27 11:26:19 +00:00
require("get ActivityIndicator").BackHandler;
2026-07-22 07:54:56 +00:00
2026-07-23 10:11:24 +00:00
export default ((Component) => {
2026-07-27 11:26:19 +00:00
class BackButton {
2026-07-20 16:05:17 +00:00
constructor() {
self = this;
2026-07-27 11:26:19 +00:00
tmp = outer1_2(this, apply);
2026-07-20 16:05:17 +00:00
length = arguments.length;
array = new Array(length);
for (let num = 0; num < length; num = num + 1) {
array[num] = arguments[num];
}
items = [];
combined = items.concat(array);
2026-07-27 11:26:19 +00:00
obj = outer1_5(apply);
tmp3 = outer1_4;
if (outer1_9()) {
2026-07-20 16:05:17 +00:00
if (!combined) {
combined = [];
}
2026-07-27 11:26:19 +00:00
tmp5 = outer1_5;
constructResult = Reflect.construct(obj, combined, outer1_5(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj.apply(self, combined);
}
tmp3Result = tmp3(self, constructResult);
2026-07-22 07:54:56 +00:00
apply = tmp3Result;
2026-07-27 11:26:19 +00:00
tmp3Result.handleBack = () => {
let flag = 0 !== tmp3Result.history.index;
if (flag) {
const history = tmp3Result.history;
history.goBack();
flag = true;
}
return flag;
2026-07-20 16:05:17 +00:00
};
return tmp3Result;
}
}
2026-07-27 11:26:19 +00:00
callback2(BackButton, Component);
2026-07-22 07:54:56 +00:00
let obj = {
2026-07-27 11:26:19 +00:00
key: "componentDidMount",
value: function componentDidMount() {
const listener = outer1_7.addEventListener("hardwareBackPress", this.handleBack);
2026-07-20 16:05:17 +00:00
}
2026-07-22 07:54:56 +00:00
};
2026-07-27 11:26:19 +00:00
let items = [obj, , ];
2026-07-22 07:54:56 +00:00
obj = {
key: "componentWillUnmount",
value: function componentWillUnmount() {
2026-07-27 11:26:19 +00:00
const removed = outer1_7.removeEventListener("hardwareBackPress", this.handleBack);
2026-07-22 07:54:56 +00:00
}
};
2026-07-27 11:26:19 +00:00
items[1] = obj;
obj = {
2026-07-22 07:54:56 +00:00
key: "render",
value: function render() {
2026-07-23 10:11:24 +00:00
const self = this;
2026-07-27 11:26:19 +00:00
return outer1_8(BackButton(outer1_1[8]).__HistoryContext.Consumer, {
2026-07-22 07:54:56 +00:00
children(history) {
self.history = history;
return self.props.children || null;
}
});
}
};
2026-07-27 11:26:19 +00:00
items[2] = obj;
return callback(BackButton, items);
2026-07-23 10:11:24 +00:00
})(require("result").Component);