decord/source/10796__isNativeReflectConstruct.js

92 lines
2.6 KiB
JavaScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 10796
2026-07-22 07:54:56 +00:00
// Function ID: 83839
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
// Dependencies: []
2026-07-21 06:55:02 +00:00
// Module 10796 (_isNativeReflectConstruct)
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();
}
let closure_2 = importDefault(dependencyMap[0]);
let closure_3 = importDefault(dependencyMap[1]);
let closure_4 = importDefault(dependencyMap[2]);
let closure_5 = importDefault(dependencyMap[3]);
let closure_6 = importDefault(dependencyMap[4]);
2026-07-22 07:54:56 +00:00
arg1(dependencyMap[6]).BackHandler;
const jsx = arg1(dependencyMap[7]).jsx;
2026-07-20 16:05:17 +00:00
export default (Component) => {
2026-07-22 07:54:56 +00:00
class BackButton {
2026-07-20 16:05:17 +00:00
constructor() {
self = this;
2026-07-22 07:54:56 +00:00
tmp = closure_2(this, BackButton);
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-22 07:54:56 +00:00
obj = closure_5(BackButton);
tmp3 = closure_4;
if (closure_9()) {
2026-07-20 16:05:17 +00:00
if (!combined) {
combined = [];
}
2026-07-22 07:54:56 +00:00
tmp5 = closure_5;
constructResult = Reflect.construct(obj, combined, closure_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
BackButton = tmp3Result;
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-22 07:54:56 +00:00
const arg1 = BackButton;
callback2(BackButton, Component);
2026-07-20 16:05:17 +00:00
let obj = {
2026-07-22 07:54:56 +00:00
key: "componentDidMount",
value: function componentDidMount() {
const listener = closure_7.addEventListener("hardwareBackPress", this.handleBack);
2026-07-20 16:05:17 +00:00
}
};
2026-07-22 07:54:56 +00:00
const items = [obj, , ];
2026-07-20 16:05:17 +00:00
obj = {
key: "componentWillUnmount",
value: function componentWillUnmount() {
2026-07-22 07:54:56 +00:00
const removed = closure_7.removeEventListener("hardwareBackPress", this.handleBack);
2026-07-20 16:05:17 +00:00
}
};
2026-07-22 07:54:56 +00:00
items[1] = obj;
obj = {
2026-07-20 16:05:17 +00:00
key: "render",
value: function render() {
2026-07-22 07:54:56 +00:00
const BackButton = this;
return callback3(BackButton(closure_1[8]).__HistoryContext.Consumer, {
2026-07-20 16:05:17 +00:00
children(history) {
self.history = history;
return self.props.children || null;
}
});
}
};
2026-07-22 07:54:56 +00:00
items[2] = obj;
return callback(BackButton, items);
}(importDefault(dependencyMap[5]).Component);